[go: up one dir, main page]

CN107102801A - Terminal screen spinning solution and device - Google Patents

Terminal screen spinning solution and device Download PDF

Info

Publication number
CN107102801A
CN107102801A CN201710193481.6A CN201710193481A CN107102801A CN 107102801 A CN107102801 A CN 107102801A CN 201710193481 A CN201710193481 A CN 201710193481A CN 107102801 A CN107102801 A CN 107102801A
Authority
CN
China
Prior art keywords
terminal
facial image
terminal screen
screen
active user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710193481.6A
Other languages
Chinese (zh)
Inventor
熊裕聪
潘双全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710193481.6A priority Critical patent/CN107102801A/en
Publication of CN107102801A publication Critical patent/CN107102801A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开是关于终端屏幕旋转方法及装置。涉及智能终端技术领域。该方法包括:当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,当需要获取当前用户的人脸图像时,对人脸图像进行人脸识别,获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,根据角度关系确定是否触发终端屏幕旋转。本公开实施例提供的上述技术方案,能够在放置状态变化时,不立即触发转屏操作,而是通过获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,来确定是否触发转屏,从而可以避免用户在不希望转屏时终端自动转屏的问题,提升了用户的使用体验。

The present disclosure relates to a terminal screen rotation method and device. It involves the field of intelligent terminal technology. The method includes: when it is detected that the placement state of the terminal changes, judging whether it is necessary to obtain the face image of the current user, and when it is necessary to obtain the face image of the current user, performing face recognition on the face image to obtain the face image The angular relationship between the line between the eyes and the current screen display direction of the terminal screen, and determine whether to trigger the terminal screen rotation according to the angular relationship. The above technical solution provided by the embodiments of the present disclosure can not trigger the screen switching operation immediately when the placement state changes, but determines whether to trigger it by obtaining the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen. Rotate the screen, so as to avoid the problem that the terminal automatically changes the screen when the user does not want to change the screen, and improves the user experience.

Description

终端屏幕旋转方法及装置Terminal screen rotation method and device

技术领域technical field

本公开涉及智能终端技术领域,尤其涉及终端屏幕旋转方法及装置。The present disclosure relates to the technical field of smart terminals, and in particular, to a method and device for rotating a terminal screen.

背景技术Background technique

手机等终端设备通过所带有的加速度传感器来感知手机的姿势状态。对于一个固定的参考坐标系来说,加速度传感器相对稳定的数据可以被用来计算手机当前的姿态信息,比如手机屏幕的朝向,手机处于水平状态或者是垂直状态等等。Terminal devices such as mobile phones sense the posture state of the mobile phone through the accelerometer. For a fixed reference coordinate system, the relatively stable data of the acceleration sensor can be used to calculate the current attitude information of the mobile phone, such as the orientation of the mobile phone screen, whether the mobile phone is horizontal or vertical, and so on.

加速度传感器的稳定数据可以检测手机姿态的特性,在手机中一般被用来作为检测手机自动转屏的方法,当手机相对于地面为水平状态时,屏幕显示会根据加速度上报的数据变为相对应的横屏显示状态,而当手机恢复垂直于地面的状态时,屏幕显示又会回归竖屏的状态进行显示。这种通过加速度传感器实现的手机姿态检测进而使屏幕显示在不同的方向上的功能叫做自动转屏的功能。The stable data of the acceleration sensor can detect the characteristics of the attitude of the mobile phone. It is generally used in mobile phones as a method to detect the automatic screen rotation of the mobile phone. When the mobile phone is in a horizontal state relative to the ground, the screen display will change according to the data reported by the acceleration. The horizontal screen display state, and when the mobile phone returns to the state perpendicular to the ground, the screen display will return to the vertical screen state for display. This function of detecting the attitude of the mobile phone through the acceleration sensor and then making the screen display in different directions is called the function of automatic screen rotation.

手机操作系统现有的自动转屏功能仅仅通过使用加速度传感器来实现。通过加速度传感器数据来计算手机的屏幕所在的平面和重力加速度方向之间的夹角,来决定手机此时的姿态信息,进一步决定手机在水平状态下,显示是否转为横屏显示,或者当转为竖直状态时,是否恢复竖屏显示。The existing automatic screen switching function of the mobile phone operating system is only realized by using the acceleration sensor. Use the acceleration sensor data to calculate the angle between the plane where the screen of the mobile phone is located and the direction of gravitational acceleration to determine the attitude information of the mobile phone at this time, and further determine whether the display of the mobile phone is turned into a horizontal screen display when the mobile phone is in a horizontal state, or when it is rotated Whether to restore the vertical screen display when it is in the vertical state.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种终端屏幕旋转方法及装置。所述技术方案如下:In order to overcome the problems existing in related technologies, the present disclosure provides a terminal screen rotation method and device. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供一种终端屏幕旋转方法,包括:According to a first aspect of an embodiment of the present disclosure, a terminal screen rotation method is provided, including:

当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像;When it is detected that the placement state of the terminal changes, it is judged whether it is necessary to obtain the face image of the current user;

当需要获取当前用户的人脸图像时,对所述人脸图像进行人脸识别,获得所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向的角度关系;When it is necessary to obtain the face image of the current user, perform face recognition on the face image, and obtain the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen;

根据所述角度关系确定是否触发所述终端屏幕旋转。Determine whether to trigger screen rotation of the terminal according to the angular relationship.

可选地,所述当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,可包括:Optionally, when it is detected that the placement state of the terminal changes, judging whether to acquire the face image of the current user may include:

当监测到所述终端的放置状态由竖直状态变化为水平状态时,确定需要获取当前用户的人脸图像。When it is detected that the placement state of the terminal changes from a vertical state to a horizontal state, it is determined that the face image of the current user needs to be acquired.

可选地,所述当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,可包括:Optionally, when it is detected that the placement state of the terminal changes, judging whether to acquire the face image of the current user may include:

当监测到所述终端的放置状态由水平状态变化为竖直状态时,确定不需要获取当前用户的人脸图像。When it is detected that the placement state of the terminal changes from a horizontal state to a vertical state, it is determined that it is not necessary to acquire the face image of the current user.

可选地,所述根据所述角度关系确定是否触发所述终端屏幕旋转,可包括:Optionally, the determining whether to trigger the terminal screen rotation according to the angular relationship may include:

当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发所述终端屏幕旋转;When the angle between the line connecting the eyes in the face image and the current display direction of the terminal screen is smaller than a preset threshold, triggering the rotation of the terminal screen is prohibited;

当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角大于或者等于所述预设阈值时,触发所述终端屏幕旋转。When the angle between the line connecting the two eyes in the face image and the current screen display direction of the terminal screen is greater than or equal to the preset threshold, the terminal screen is triggered to rotate.

可选地,所述当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,可包括:Optionally, when it is detected that the placement state of the terminal changes, judging whether to acquire the face image of the current user may include:

当确定需要获取当前用户的人脸图像时,触发所述终端的摄像装置对当前用户进行拍摄,获得当前用户的人脸图像。When it is determined that the face image of the current user needs to be acquired, the camera device of the terminal is triggered to take a picture of the current user to obtain the face image of the current user.

根据本公开实施例的第二方面,提供一种终端屏幕旋转装置,包括:According to a second aspect of an embodiment of the present disclosure, there is provided a device for rotating a terminal screen, including:

判断模块,被配置为当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像;The judging module is configured to judge whether it is necessary to obtain the face image of the current user when it is detected that the placement state of the terminal changes;

识别模块,被配置为当需要获取当前用户的人脸图像时,对所述人脸图像进行人脸识别,获得所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向的角度关系;The recognition module is configured to perform face recognition on the face image when it is necessary to obtain the face image of the current user, and obtain the angular relationship between the line connecting the eyes in the face image and the display direction of the current screen of the terminal screen ;

确定模块,被配置为根据所述角度关系确定是否触发所述终端屏幕旋转。The determination module is configured to determine whether to trigger the rotation of the terminal screen according to the angle relationship.

可选地,所述判断模块,可包括:Optionally, the judging module may include:

第一确定子模块,被配置为当监测到所述终端的放置状态由竖直状态变化为水平状态时,确定需要获取当前用户的人脸图像。The first determination sub-module is configured to determine that the face image of the current user needs to be acquired when it is detected that the placement state of the terminal changes from a vertical state to a horizontal state.

可选地,所述判断模块还可包括:Optionally, the judging module may also include:

第二确定子模块,被配置为当监测到所述终端的放置状态由水平状态变化为竖直状态时,确定不需要获取当前用户的人脸图像。The second determining submodule is configured to determine that it is not necessary to acquire the face image of the current user when it is detected that the placement state of the terminal changes from a horizontal state to a vertical state.

可选地,所述确定模块,可包括:Optionally, the determination module may include:

禁止子模块,被配置为当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发所述终端屏幕旋转;The prohibition submodule is configured to prohibit triggering of the terminal screen rotation when the angle between the line connecting the eyes in the face image and the current screen display direction of the terminal screen is smaller than a preset threshold;

触发子模块,被配置为当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角大于或者等于所述预设阈值时,触发所述终端屏幕旋转。The triggering submodule is configured to trigger the rotation of the terminal screen when the angle between the line connecting the eyes in the face image and the current screen display direction of the terminal screen is greater than or equal to the preset threshold.

可选地,所述判断模块,可包括:Optionally, the judging module may include:

拍摄子模块,被配置为当确定需要获取当前用户的人脸图像时,触发所述终端的摄像装置对当前用户进行拍摄,获得当前用户的人脸图像。The photographing sub-module is configured to trigger the camera of the terminal to photograph the current user when it is determined that the face image of the current user needs to be obtained, so as to obtain the face image of the current user.

根据本公开实施例的第三方面,提供一种终端屏幕旋转装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a device for rotating a terminal screen, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像;When it is detected that the placement state of the terminal changes, it is judged whether it is necessary to obtain the face image of the current user;

当需要获取当前用户的人脸图像时,对所述人脸图像进行人脸识别,获得所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向的角度关系;When it is necessary to obtain the face image of the current user, perform face recognition on the face image, and obtain the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen;

根据所述角度关系确定是否触发所述终端屏幕旋转。Determine whether to trigger screen rotation of the terminal according to the angular relationship.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开的实施例提供的技术方案,通过当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,当需要获取当前用户的人脸图像时,对人脸图像进行人脸识别,获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,根据角度关系确定是否触发终端屏幕旋转。从而可以在放置状态变化时,不立即触发转屏操作,而是通过获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,来确定是否触发转屏,从而可以避免用户在不希望转屏时终端自动转屏的问题,提升了用户的使用体验。In the technical solution provided by the embodiments of the present disclosure, when it is detected that the placement state of the terminal changes, it is judged whether it is necessary to obtain the face image of the current user, and when the face image of the current user needs to be obtained, the face image is processed. Face recognition, to obtain the angular relationship between the line connecting the eyes in the face image and the current screen display direction of the terminal screen, and determine whether to trigger the terminal screen rotation according to the angular relationship. Therefore, when the placement state changes, the screen-turning operation is not triggered immediately, but by obtaining the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen to determine whether to trigger the screen-turning, thereby preventing the user from It is hoped that the terminal will automatically change the screen when the screen is changed, so as to improve the user experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种终端屏幕旋转方法的流程图。Fig. 1 is a flow chart showing a method for rotating a terminal screen according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种终端屏幕旋转方法中步骤S103的流程图。Fig. 2 is a flow chart of step S103 in a method for rotating a terminal screen according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种终端屏幕旋转装置的框图。Fig. 3 is a block diagram showing a device for rotating a terminal screen according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种终端屏幕旋转装置中确定模块33的框图。Fig. 4 is a block diagram of a determination module 33 in an apparatus for rotating a terminal screen according to an exemplary embodiment.

图5是根据一示例性实施例示出的适用于终端屏幕旋转装置的框图。Fig. 5 is a block diagram showing a device suitable for rotating a terminal screen according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

当用户手持终端比如手机时,会有一些情况下出现手机处于水平状态,同时使用者也处于水平状态的情况,比如,有人如果平躺使用手机时,当使用者侧身,这时,手机相对于地面处于水平状态,自动转屏功能会将显示设置为横屏状态,但是使用者并不希望使用横屏状态显示,而是依然竖屏显示。When a user holds a terminal such as a mobile phone, in some cases, the mobile phone is in a horizontal state and the user is also in a horizontal state. The ground is in a horizontal state, and the automatic screen rotation function will set the display to a landscape state, but the user does not want to use the landscape state display, but still displays the vertical screen.

单一的通过加速度传感器来判定手机状态进行转屏有时候会影响使用者的使用感受,在一些使用者不预期发生转屏的情况下,进行转屏操作,从而带来不好的使用体验。为克服上述问题,本公开实施例提供了一种终端屏幕旋转方法,其增加对用户的人脸进行识别结果作为判定是否进行转屏的另一个前提条件,结合加速度传感器来增强转屏条件的判定,从而解决某些情况下使用者不希望进行转屏,但是却触发转屏的问题。Simply using the acceleration sensor to determine the state of the mobile phone to switch the screen sometimes affects the user's experience. In the case of some users who do not expect the screen to change, they perform the screen switch operation, which brings a bad user experience. In order to overcome the above problems, an embodiment of the present disclosure provides a terminal screen rotation method, which adds the recognition result of the user's face as another prerequisite for judging whether to turn the screen, and combines the acceleration sensor to enhance the judgment of the screen turn condition , so as to solve the problem that in some cases the user does not want to perform screen transfer, but triggers screen transfer.

图1是本公开实施例示出的一种终端屏幕旋转方法,用于手机、PAD等具有显示屏幕的终端设备。如图1所示,该方法包括步骤S101-S103:FIG. 1 is a terminal screen rotation method shown in an embodiment of the present disclosure, which is used for terminal devices with display screens such as mobile phones and PADs. As shown in Figure 1, the method includes steps S101-S103:

在步骤S101中,当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像。In step S101, when it is detected that the placement state of the terminal changes, it is judged whether it is necessary to acquire the face image of the current user.

在步骤S102中,当需要获取当前用户的人脸图像时,对人脸图像进行人脸识别,获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系。In step S102, when it is necessary to obtain the face image of the current user, face recognition is performed on the face image to obtain the angular relationship between the line connecting the eyes in the face image and the current display direction of the terminal screen.

在步骤S103中,根据角度关系确定是否触发终端屏幕旋转。In step S103, it is determined whether to trigger the rotation of the terminal screen according to the angle relationship.

本公开实施例的上述方法,通过当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,当需要获取当前用户的人脸图像时,对人脸图像进行人脸识别,获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,根据角度关系确定是否触发终端屏幕旋转。从而可以在放置状态变化时,不立即触发转屏操作,而是通过获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,来确定是否触发转屏,从而可以避免用户在不希望转屏时终端自动转屏的问题,提升了用户的使用体验。In the above method of the embodiment of the present disclosure, when it is detected that the placement state of the terminal changes, it is judged whether it is necessary to obtain the face image of the current user, and when the face image of the current user needs to be obtained, face recognition is performed on the face image , obtain the angular relationship between the line connecting the eyes in the face image and the current screen display direction of the terminal screen, and determine whether to trigger the terminal screen rotation according to the angular relationship. Therefore, when the placement state changes, the screen-turning operation is not triggered immediately, but by obtaining the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen to determine whether to trigger the screen-turning, thereby preventing the user from It is hoped that the terminal will automatically change the screen when the screen is changed, so as to improve the user experience.

需要补充说明的是,步骤S101可以实施为以下步骤A:It should be added that step S101 can be implemented as the following step A:

步骤A,当监测到终端的放置状态由竖直状态变化为水平状态时,确定需要获取当前用户的人脸图像。Step A, when it is detected that the placement state of the terminal has changed from a vertical state to a horizontal state, it is determined that the face image of the current user needs to be acquired.

本实施例中,当监测到终端的放置状态由竖直状态变化为水平状态时,此时有两种情况,一种情况是用户需要看视频,此时需要横屏观看;另一种情况是,用户躺着看手机时,此时并不希望使用横屏状态显示,而是依然保持竖屏显示。此时,需要进一步判断是哪种情况。因此需要获取当前用户的人脸图像。从而能够准确明白用户意图,使自动转屏的触发条件更加合理,避免在不希望转屏时自动转屏。In this embodiment, when it is monitored that the placement state of the terminal changes from a vertical state to a horizontal state, there are two situations at this time. One situation is that the user needs to watch the video, and at this time it needs to be viewed on a horizontal screen; the other situation is , when the user is lying down and looking at the mobile phone, he does not want to use the horizontal screen display at this time, but still maintains the vertical screen display. At this point, it is necessary to further determine which situation is the case. Therefore, it is necessary to obtain the face image of the current user. In this way, it is possible to accurately understand the user's intention, make the triggering conditions for automatic screen transfer more reasonable, and avoid automatic screen transfer when the screen transfer is not desired.

需要补充说明的是,步骤S101还可以实施为以下步骤B:It should be added that step S101 can also be implemented as the following step B:

步骤B,当监测到终端的放置状态由水平状态变化为竖直状态时,确定不需要获取当前用户的人脸图像。Step B, when it is detected that the placement state of the terminal changes from a horizontal state to a vertical state, it is determined that it is not necessary to acquire the face image of the current user.

本实施例中当监测到终端的放置状态由水平状态变化为竖直状态时,不需要获取当前用户的人脸图像,而是根据加速度传感器的数据直接计算得到当前是否需要触发转为竖屏显示的动作,从而减少了终端的处理步骤。In this embodiment, when it is detected that the placement state of the terminal changes from a horizontal state to a vertical state, it is not necessary to obtain the face image of the current user, but to directly calculate whether it is necessary to trigger a switch to a vertical screen display based on the data of the acceleration sensor action, thereby reducing the processing steps of the terminal.

需要补充说明的第二点是,如图2所示,步骤S103可以实施为如下步骤S1031-S1032:The second point that needs to be supplemented is that, as shown in Figure 2, step S103 can be implemented as the following steps S1031-S1032:

在步骤S1031中,当人脸图像中双眼连线与终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发终端屏幕旋转。In step S1031, when the angle between the line connecting the two eyes in the face image and the current display direction of the terminal screen is smaller than a preset threshold, triggering the rotation of the terminal screen is prohibited.

在步骤S1032中,当人脸图像中双眼连线与终端屏幕当前画面显示方向之间的夹角大于或者等于预设阈值时,触发终端屏幕旋转。In step S1032, when the angle between the line connecting the eyes in the face image and the current display direction of the terminal screen is greater than or equal to a preset threshold, the terminal screen rotation is triggered.

本实施例中,当人脸图像中双眼连线与终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发终端屏幕旋转,当二者之间的夹角大于或者等于预设阈值时,触发终端屏幕旋转。将人脸识别中的双眼识别技术和加速度传感器进行融合,增强自动转屏的控制方法,提升用户体验。In this embodiment, when the angle between the line connecting the eyes in the face image and the current screen display direction of the terminal screen is less than a preset threshold, triggering the rotation of the terminal screen is prohibited; when the angle between the two is greater than or equal to the preset When the threshold is reached, the terminal screen rotation is triggered. Integrate the binocular recognition technology and acceleration sensor in face recognition to enhance the control method of automatic screen rotation and improve user experience.

需要补充说明的第三点是,步骤S101还可以实施为以下步骤C:The third point that needs to be supplemented is that step S101 can also be implemented as the following step C:

步骤C,当确定需要获取当前用户的人脸图像时,触发终端的摄像装置对当前用户进行拍摄,获得当前用户的人脸图像。Step C, when it is determined that the face image of the current user needs to be acquired, the camera device of the terminal is triggered to take a picture of the current user to obtain the face image of the current user.

终端的摄像装置例如可以是前置摄像头,利用前置摄像头对用户进行拍摄,获得当前用户的人脸图像。从而可以方便的获得当前用户的人脸图像,进而进行人脸识别。The camera device of the terminal may be, for example, a front camera, and the user is photographed by the front camera to obtain a face image of the current user. Therefore, the face image of the current user can be obtained conveniently, and then the face recognition can be performed.

下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.

图3是根据一示例性实施例示出的一种终端屏幕旋转装置的框图,如图3所示,该终端屏幕旋转装置可以包括但不限于判断模块31、识别模块32以及确定模块33,其中:Fig. 3 is a block diagram of a device for rotating a terminal screen according to an exemplary embodiment. As shown in Fig. 3, the device for rotating a terminal screen may include but not limited to a judgment module 31, an identification module 32, and a determination module 33, wherein:

判断模块31,被配置为当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像;The judging module 31 is configured to judge whether it is necessary to acquire the face image of the current user when it is detected that the placement state of the terminal changes;

识别模块32,被配置为当需要获取当前用户的人脸图像时,对人脸图像进行人脸识别,获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系;The recognition module 32 is configured to perform face recognition on the face image when it is necessary to obtain the face image of the current user, and obtain the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen;

确定模块33,被配置为根据角度关系确定是否触发终端屏幕旋转。The determination module 33 is configured to determine whether to trigger the rotation of the terminal screen according to the angle relationship.

可选地,判断模块31,可包括:Optionally, the judging module 31 may include:

第一确定子模块,被配置为当监测到终端的放置状态由竖直状态变化为水平状态时,确定需要获取当前用户的人脸图像。The first determination sub-module is configured to determine that it is necessary to obtain the face image of the current user when it is detected that the placement state of the terminal changes from a vertical state to a horizontal state.

可选地,判断模块31还可包括:Optionally, the judging module 31 may also include:

第二确定子模块,被配置为当监测到终端的放置状态由水平状态变化为竖直状态时,确定不需要获取当前用户的人脸图像。The second determining submodule is configured to determine that it is not necessary to acquire the face image of the current user when it is detected that the placement state of the terminal changes from a horizontal state to a vertical state.

可选地,如图4所示,确定模块33,可包括:Optionally, as shown in Figure 4, the determining module 33 may include:

禁止子模块331,被配置为当人脸图像中双眼连线与终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发终端屏幕旋转;The prohibition sub-module 331 is configured to prohibit the triggering of terminal screen rotation when the angle between the line between the eyes in the face image and the current screen display direction of the terminal screen is smaller than a preset threshold;

触发子模块332,被配置为当人脸图像中双眼连线与终端屏幕当前画面显示方向之间的夹角大于或者等于预设阈值时,触发终端屏幕旋转。The triggering sub-module 332 is configured to trigger the rotation of the terminal screen when the angle between the line connecting the eyes in the face image and the current display direction of the terminal screen is greater than or equal to a preset threshold.

可选地,判断模块31,可包括:Optionally, the judging module 31 may include:

拍摄子模块,被配置为当确定需要获取当前用户的人脸图像时,触发终端的摄像装置对当前用户进行拍摄,获得当前用户的人脸图像。The photographing sub-module is configured to trigger the camera of the terminal to photograph the current user when it is determined that the face image of the current user needs to be obtained, so as to obtain the face image of the current user.

本公开实施例的上述装置,通过当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,当需要获取当前用户的人脸图像时,对人脸图像进行人脸识别,获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,根据角度关系确定是否触发终端屏幕旋转。从而可以在放置状态变化时,不立即触发转屏操作,而是通过获得人脸图像中双眼连线与终端屏幕当前画面显示方向的角度关系,来确定是否触发转屏,从而可以避免用户在不希望转屏时终端自动转屏的问题,提升了用户的使用体验。The above-mentioned device in the embodiment of the present disclosure judges whether it is necessary to obtain the face image of the current user when it is detected that the placement state of the terminal changes, and performs face recognition on the face image when it is necessary to obtain the face image of the current user , obtain the angular relationship between the line connecting the eyes in the face image and the current screen display direction of the terminal screen, and determine whether to trigger the terminal screen rotation according to the angular relationship. Therefore, when the placement state changes, the screen-turning operation is not triggered immediately, but by obtaining the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen to determine whether to trigger the screen-turning, thereby preventing the user from It is hoped that the terminal will automatically change the screen when the screen is changed, so as to improve the user experience.

本公开实施例还提供一种终端屏幕旋转装置,包括:An embodiment of the present disclosure also provides a terminal screen rotation device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像;When it is detected that the placement state of the terminal changes, it is judged whether it is necessary to obtain the face image of the current user;

当需要获取当前用户的人脸图像时,对所述人脸图像进行人脸识别,获得所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向的角度关系;When it is necessary to obtain the face image of the current user, perform face recognition on the face image, and obtain the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen;

根据所述角度关系确定是否触发所述终端屏幕旋转。Determine whether to trigger screen rotation of the terminal according to the angular relationship.

上述处理器还被配置为:The above processor is also configured to:

当监测到所述终端的放置状态由竖直状态变化为水平状态时,确定需要获取当前用户的人脸图像。When it is detected that the placement state of the terminal changes from a vertical state to a horizontal state, it is determined that the face image of the current user needs to be acquired.

上述处理器还被配置为:The above processor is also configured to:

当监测到所述终端的放置状态由水平状态变化为竖直状态时,确定不需要获取当前用户的人脸图像。When it is detected that the placement state of the terminal changes from a horizontal state to a vertical state, it is determined that it is not necessary to acquire the face image of the current user.

上述处理器还被配置为:The above processor is also configured to:

当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发所述终端屏幕旋转;When the angle between the line connecting the eyes in the face image and the current display direction of the terminal screen is smaller than a preset threshold, triggering the rotation of the terminal screen is prohibited;

当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角大于或者等于所述预设阈值时,触发所述终端屏幕旋转。When the angle between the line connecting the two eyes in the face image and the current screen display direction of the terminal screen is greater than or equal to the preset threshold, the terminal screen is triggered to rotate.

上述处理器还被配置为:The above processor is also configured to:

当确定需要获取当前用户的人脸图像时,触发所述终端的摄像装置对当前用户进行拍摄,获得当前用户的人脸图像。When it is determined that the face image of the current user needs to be acquired, the camera device of the terminal is triggered to take a picture of the current user to obtain the face image of the current user.

图5是根据一示例性实施例示出的一种用于终端屏幕旋转装置的框图,该装置适用于终端设备。例如,装置1200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 5 is a block diagram showing a device for rotating a terminal screen according to an exemplary embodiment, and the device is suitable for a terminal device. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。Apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communication component 1216 .

处理组件1202通常控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the device 1200, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .

存储器1204被配置为存储各种类型的数据以支持在装置1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the device 1200 . Examples of such data include instructions for any application or method operating on device 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1206为装置1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为装置1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the device 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1200 .

多媒体组件1208包括在所述装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当装置1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive external audio signals when the device 1200 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 . In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到装置1200的打开/关闭状态,组件的相对定位,例如所述组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing status assessments of various aspects of device 1200 . For example, the sensor component 1214 can detect the open/closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, and the sensor component 1214 can also detect a change in the position of the device 1200 or a component of the device 1200 , the presence or absence of user contact with the device 1200 , the device 1200 orientation or acceleration/deceleration and the temperature change of the device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件1216被配置为便于装置1200和其他设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the apparatus 1200 and other devices. The device 1200 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1200 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器1220执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1220 of the device 1200 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由上述装置1200的处理器执行时,使得上述装置1200能够执行一种终端屏幕旋转方法,包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the above-mentioned device 1200, the above-mentioned device 1200 can execute a terminal screen rotation method, including:

当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像;When it is detected that the placement state of the terminal changes, it is judged whether it is necessary to obtain the face image of the current user;

当需要获取当前用户的人脸图像时,对所述人脸图像进行人脸识别,获得所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向的角度关系;When it is necessary to obtain the face image of the current user, perform face recognition on the face image, and obtain the angular relationship between the line between the eyes in the face image and the current screen display direction of the terminal screen;

根据所述角度关系确定是否触发所述终端屏幕旋转。Determine whether to trigger screen rotation of the terminal according to the angular relationship.

可选地,所述当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,可包括:Optionally, when it is detected that the placement state of the terminal changes, judging whether to acquire the face image of the current user may include:

当监测到所述终端的放置状态由竖直状态变化为水平状态时,确定需要获取当前用户的人脸图像。When it is detected that the placement state of the terminal changes from a vertical state to a horizontal state, it is determined that the face image of the current user needs to be acquired.

可选地,所述当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,可包括:Optionally, when it is detected that the placement state of the terminal changes, judging whether to acquire the face image of the current user may include:

当监测到所述终端的放置状态由水平状态变化为竖直状态时,确定不需要获取当前用户的人脸图像。When it is detected that the placement state of the terminal changes from a horizontal state to a vertical state, it is determined that it is not necessary to acquire the face image of the current user.

可选地,所述根据所述角度关系确定是否触发所述终端屏幕旋转,可包括:Optionally, the determining whether to trigger the terminal screen rotation according to the angular relationship may include:

当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角小于预设阈值时,禁止触发所述终端屏幕旋转;When the angle between the line connecting the eyes in the face image and the current display direction of the terminal screen is smaller than a preset threshold, triggering the rotation of the terminal screen is prohibited;

当所述人脸图像中双眼连线与所述终端屏幕当前画面显示方向之间的夹角大于或者等于所述预设阈值时,触发所述终端屏幕旋转。When the angle between the line connecting the two eyes in the face image and the current screen display direction of the terminal screen is greater than or equal to the preset threshold, the terminal screen is triggered to rotate.

可选地,所述当监测到终端的放置状态发生变化时,判断是否需要获取当前用户的人脸图像,可包括:Optionally, when it is detected that the placement state of the terminal changes, judging whether to acquire the face image of the current user may include:

当确定需要获取当前用户的人脸图像时,触发所述终端的摄像装置对当前用户进行拍摄,获得当前用户的人脸图像。When it is determined that the face image of the current user needs to be acquired, the camera device of the terminal is triggered to take a picture of the current user to obtain the face image of the current user.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. a kind of terminal screen spinning solution, it is characterised in that including:
When the laying state for monitoring terminal changes, judge whether the facial image for needing to obtain active user;
When needing to obtain the facial image of active user, recognition of face is carried out to the facial image, the face figure is obtained The angular relationship of eyes line and the terminal screen current picture display direction as in;
Determined whether to trigger the terminal screen rotation according to the angular relationship.
2. according to the method described in claim 1, it is characterised in that described when the laying state for monitoring terminal changes When, judge whether the facial image for needing to obtain active user, including:
When the laying state for monitoring the terminal is become by vertical state turns to horizontality, it is determined that needing to obtain active user Facial image.
3. according to the method described in claim 1, it is characterised in that described when the laying state for monitoring terminal changes When, judge whether the facial image for needing to obtain active user, including:
When the laying state for monitoring the terminal is become by horizontality turns to vertical state, it is determined that current use need not be obtained The facial image at family.
4. according to the method described in claim 1, it is characterised in that described according to the angular relationship determines whether triggering Terminal screen rotates, including:
Preset when the angle between eyes line in the facial image and the terminal screen current picture display direction is less than During threshold value, forbid triggering the terminal screen rotation;
Be more than when the angle between eyes line in the facial image and the terminal screen current picture display direction or During equal to the predetermined threshold value, the terminal screen rotation is triggered.
5. method according to claim 1 or 2, it is characterised in that described when the laying state for monitoring terminal becomes During change, judge whether the facial image for needing to obtain active user, including:
When it is determined that needing to obtain the facial image of active user, the camera device for triggering the terminal is clapped active user Take the photograph, obtain the facial image of active user.
6. a kind of terminal screen rotating device, it is characterised in that including:
Judge module, when being configured as monitoring that the laying state of terminal changes, judges whether to need to obtain current use The facial image at family;
Identification module, when being configured as needing to obtain the facial image of active user, face knowledge is carried out to the facial image Not, the angular relationship of eyes line and the terminal screen current picture display direction in the facial image is obtained;
Determining module, is configured as being determined whether to trigger the terminal screen rotation according to the angular relationship.
7. device according to claim 6, it is characterised in that the judge module, including:
First determination sub-module, is configured as monitoring that the laying state of the terminal turns to horizontality by vertical state change When, it is determined that needing to obtain the facial image of active user.
8. device according to claim 6, it is characterised in that the judge module also includes:
Second determination sub-module, is configured as monitoring that the laying state of the terminal turns to vertical state by horizontality change When, it is determined that the facial image of active user need not be obtained.
9. device according to claim 6, it is characterised in that the determining module, including:
Forbid submodule, be configured as eyes line and the terminal screen current picture display direction in the facial image Between angle when being less than predetermined threshold value, forbid triggering the terminal screen rotation;
Submodule is triggered, eyes line and the terminal screen current picture display direction in the facial image is configured as Between angle when being more than or equal to the predetermined threshold value, trigger terminal screen rotation.
10. the device according to claim 6 or 7, it is characterised in that the judge module, including:
Shooting submodule, when being configured as determining to need to obtain the facial image of active user, triggers the shooting of the terminal Device is shot to active user, obtains the facial image of active user.
11. a kind of terminal screen rotating device, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When the laying state for monitoring terminal changes, judge whether the facial image for needing to obtain active user;
When needing to obtain the facial image of active user, recognition of face is carried out to the facial image, the face figure is obtained The angular relationship of eyes line and the terminal screen current picture display direction as in;
Determined whether to trigger the terminal screen rotation according to the angular relationship.
CN201710193481.6A 2017-03-28 2017-03-28 Terminal screen spinning solution and device Pending CN107102801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710193481.6A CN107102801A (en) 2017-03-28 2017-03-28 Terminal screen spinning solution and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710193481.6A CN107102801A (en) 2017-03-28 2017-03-28 Terminal screen spinning solution and device

Publications (1)

Publication Number Publication Date
CN107102801A true CN107102801A (en) 2017-08-29

Family

ID=59675757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710193481.6A Pending CN107102801A (en) 2017-03-28 2017-03-28 Terminal screen spinning solution and device

Country Status (1)

Country Link
CN (1) CN107102801A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540718A (en) * 2018-04-08 2018-09-14 Oppo广东移动通信有限公司 Shooting method and device, mobile terminal and storage medium
CN111464698A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for controlling electronic equipment
CN111880710A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen rotation method and related product
CN111885265A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen interface adjusting method and related device
CN112121415A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Method, device and equipment for controlling interface display and storage medium
CN112379778A (en) * 2020-11-24 2021-02-19 惠州Tcl移动通信有限公司 Display adjusting method and device, storage medium and terminal
CN112667327A (en) * 2019-10-15 2021-04-16 深圳市万普拉斯科技有限公司 Screen-turning picture display method and device, computer equipment and storage medium
CN113194165A (en) * 2021-04-13 2021-07-30 Oppo广东移动通信有限公司 Method for determining direction of electronic equipment, electronic equipment and readable storage medium
CN113760156A (en) * 2021-02-08 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for adjusting terminal screen display

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130234927A1 (en) * 2012-03-08 2013-09-12 Samsung Electronics Co., Ltd Electronic device for measuring angle of face and rotating screen thereof and method thereof
CN103412647A (en) * 2013-08-13 2013-11-27 广东欧珀移动通信有限公司 Face recognition page display control method and mobile terminal
CN103631467A (en) * 2012-08-20 2014-03-12 华为终端有限公司 Method for regulating display content and mobile terminal
CN106293303A (en) * 2015-05-12 2017-01-04 中兴通讯股份有限公司 The spinning solution of terminal screen display picture and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130234927A1 (en) * 2012-03-08 2013-09-12 Samsung Electronics Co., Ltd Electronic device for measuring angle of face and rotating screen thereof and method thereof
CN103631467A (en) * 2012-08-20 2014-03-12 华为终端有限公司 Method for regulating display content and mobile terminal
CN103412647A (en) * 2013-08-13 2013-11-27 广东欧珀移动通信有限公司 Face recognition page display control method and mobile terminal
CN106293303A (en) * 2015-05-12 2017-01-04 中兴通讯股份有限公司 The spinning solution of terminal screen display picture and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540718A (en) * 2018-04-08 2018-09-14 Oppo广东移动通信有限公司 Shooting method and device, mobile terminal and storage medium
CN112667327A (en) * 2019-10-15 2021-04-16 深圳市万普拉斯科技有限公司 Screen-turning picture display method and device, computer equipment and storage medium
CN112667327B (en) * 2019-10-15 2024-05-28 深圳市万普拉斯科技有限公司 Screen rotation display method, device, computer equipment and storage medium
CN111464698A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for controlling electronic equipment
CN111885265A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen interface adjusting method and related device
CN111885265B (en) * 2020-07-31 2022-06-24 Oppo广东移动通信有限公司 Screen interface adjusting method and related device
CN111880710A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen rotation method and related product
CN112121415A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Method, device and equipment for controlling interface display and storage medium
CN112121415B (en) * 2020-09-30 2025-06-27 腾讯科技(深圳)有限公司 A method, device, equipment and storage medium for controlling interface display
US12478872B2 (en) 2020-09-30 2025-11-25 Tencent Technology (Shenzhen) Company Limited Method and apparatus for controlling interface display, device, and storage medium
CN112379778A (en) * 2020-11-24 2021-02-19 惠州Tcl移动通信有限公司 Display adjusting method and device, storage medium and terminal
CN113760156A (en) * 2021-02-08 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for adjusting terminal screen display
CN113194165A (en) * 2021-04-13 2021-07-30 Oppo广东移动通信有限公司 Method for determining direction of electronic equipment, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN107102801A (en) Terminal screen spinning solution and device
CN105159640B (en) Display interface rotating method and device and mobile terminal
CN109557999B (en) Bright screen control method and device and storage medium
CN104182313B (en) Be delayed the method and apparatus taken pictures
CN106548764A (en) Screen brightness control method and device
CN105260732A (en) Image processing method and device
CN107426428A (en) Electronic equipment and display lightness regulating method
CN106375676A (en) Camera control method and device for terminal equipment, and terminal equipment
CN106020649B (en) Picture rotation control method and device
CN106055144B (en) Control method and device, the electronic equipment of touch screen state
CN106598429A (en) Method and device for adjusting window of mobile terminal
CN108462833A (en) Image pickup method, device and computer readable storage medium
CN107295190A (en) Working mode switching method, device and protective case
CN106547462B (en) Photographing control method and device and mobile terminal
CN107529699A (en) Control method of electronic device and device
CN106534649A (en) Composing method and device for double rotary cameras and mobile terminal
CN108398845A (en) Projection device control method and projection device control device
CN107132983B (en) Split screen window operation method and device
CN108124058A (en) information display control method and device
CN107133059A (en) Camera control method, device and mobile terminal
CN108111751A (en) Shooting angle method of adjustment and device
CN105100135A (en) Network sharing setting method and device
CN106055093A (en) Method and device for picture rotation
CN108962189A (en) Luminance regulating method and device
CN108877742A (en) Luminance regulating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170829

RJ01 Rejection of invention patent application after publication