CN109445735A - Control method, mobile terminal and the computer storage medium of display direction - Google Patents

Control method, mobile terminal and the computer storage medium of display direction Download PDF

Info

Publication number
CN109445735A
CN109445735A CN201811231638.0A CN201811231638A CN109445735A CN 109445735 A CN109445735 A CN 109445735A CN 201811231638 A CN201811231638 A CN 201811231638A CN 109445735 A CN109445735 A CN 109445735A
Authority
CN
China
Prior art keywords
mobile terminal
display direction
angle
facial
correct
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.)
Withdrawn
Application number
CN201811231638.0A
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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201811231638.0A priority Critical patent/CN109445735A/en
Publication of CN109445735A publication Critical patent/CN109445735A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Abstract

This application provides the control method of display direction, mobile terminal and computer storage medium, which includes: acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics;Mobile terminal obtains and the matched correct display direction of at least two facial characteristics, wherein correct display direction includes transverse extension direction and vertically extending direction;Mobile terminal is shown with correct display direction.The application is by matching the display direction of mobile terminal at least two facial characteristics of facial image, so that the display direction of mobile terminal is correct display direction as expected.

Description

Control method, mobile terminal and the computer storage medium of display direction
Technical field
This application involves technical field of mobile terminals, control method, mobile terminal more particularly to a kind of display direction And computer storage medium.
Background technique
With the rapid development of electronic technology, the portable mobile equipments such as smart phone, tablet computer greatly change people Life and work mode, user, can be to mobile terminal screen according to different usage scenarios when using mobile terminal Picture display direction has different needs.
Currently, the picture display direction of mobile terminal screen is typically all to pass through the controls such as gravity sensor, gyroscope, The case where " out of control " is easy to appear under some usage scenarios.For example, user shoots (horizontal positioned) text using mobile terminal When shelves, it is often necessary to picture when controlling mobile terminal and be in horizontal or near-horizontal state to increase shooting effect, but shooting Display direction can not control through the above way;For another example when mobile terminal is placed in (level) desktop, the picture of screen Display direction can keep placing before deflection state or the signal that is obtained for gravity sensor can not determine horizontal direction and Random variation display direction, in addition, picture could be made by needing to readjust mobile terminal if the position of user changes Display direction is consistent with the view direction of user, brings inconvenience to the user's use in this way.
Summary of the invention
The application is mainly to provide control method, mobile terminal and the computer storage medium of display direction, it is intended to improve The single problem of the mode of prior art control mobile terminal display direction.
In order to solve the above technical problems, this application provides a kind of control method of display direction, this method comprises: mobile Terminal obtains facial image, wherein facial image includes at least two facial characteristics;Mobile terminal obtains and at least two faces The correct display direction of characteristic matching, wherein correct display direction includes transverse extension direction and vertically extending direction;It is mobile whole End is shown with correct display direction.
In order to solve the above technical problems, the mobile terminal includes sensor, place present invention also provides a kind of mobile terminal Device and memory are managed, processor and sensor, memory couple;Wherein, for obtaining facial image, memory is used for sensor Store computer program, processor executes computer program at work to obtain correct display direction, and control sensor with Realize the above method.
In order to solve the above technical problems, being stored thereon with computer present invention also provides a kind of computer storage medium Program, the program are executed by processor to realize the above method.
The beneficial effect of the application is: being in contrast to the prior art, this application provides a kind of controls of display direction Method processed, comprising: acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics;Mobile terminal obtains And the matched correct display direction of at least two facial characteristics, wherein correct display direction includes transverse extension direction and perpendicular To extending direction;Mobile terminal is shown with correct display direction.The application is by by the display direction of mobile terminal and people At least two facial characteristics of face image match, so that the display direction of mobile terminal is correct display direction as expected.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, to this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is the flow diagram of the control method first embodiment of display direction provided by the present application;
Fig. 2 is the schematic diagram that mobile terminal is shown in first embodiment with correct display direction;
Fig. 3 is the flow diagram of an embodiment of step S12 in Fig. 1;
Fig. 4 is the schematic diagram of the relativeness in the direction and transverse extension direction of reference line in first embodiment;
Fig. 5 is the signal of four kinds of possible situations of transverse extension direction when mobile terminal is horizontal positioned in first embodiment Figure;
Fig. 6 is the flow diagram of the control method second embodiment of display direction provided by the present application;
Fig. 7 is the facial image schematic diagram corresponding with the facial image of user in second embodiment in image content;
Fig. 8 is the flow diagram of the control method 3rd embodiment of display direction provided by the present application;
Fig. 9 is the schematic diagram of one embodiment of mobile terminal provided by the present application;
Figure 10 is the schematic diagram of one embodiment of computer storage medium provided by the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is only a part of the embodiment of the application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
With the rapid development of electronic technology, the portable mobile equipments such as smart phone, tablet computer greatly change people Life and work mode, user, can be to mobile terminal screen according to different usage scenarios when using mobile terminal Picture display direction has different needs.Currently, the picture display direction of mobile terminal screen is typically all to pass through gravity sensitive The controls such as device, gyroscope, it the case where " out of control " is easy to appear under some usage scenarios, is brought not to the use of user Just.In order to solve the above-mentioned technical problem, this application provides following examples.
Mobile terminal in the embodiment of the present application can be the portable mobile equipments such as smart phone, tablet computer, ultrabook, With basic structures such as front camera, display screen, shells, it may have it is hand-holdable, portable the advantages that, be suitble to user in any position Set viewing.
Refering to fig. 1, Fig. 1 is the flow diagram of the control method first embodiment of display direction provided by the present application, should Method includes:
Step S11: acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics.
Optionally, at least two facial characteristics include first facial feature, the second facial characteristics and third facial characteristics, In, first facial feature and the second facial characteristics can be eyes or ear, and third facial characteristics can be nose or mouth.
Optionally, mobile terminal obtains facial image by opening front camera.
Optionally, mobile terminal obtains facial image according to predetermined period, for example, setting detection cycle as 5s, 10s, 15s Deng certain detection cycle value can freely be set by user.
Optionally, when in the facial image that this step obtains including the human face image information of multiple users, with face figure As foundation of the facial image as subsequent step of that maximum user of information accounting.For example, including A, B two in facial image The human face image information of position user, if the human face image information of party A-subscriber includes complete face feature (a such as face), party B-subscriber Human face image information only include part face feature (such as half face), at this point, the human face image information accounting of party A-subscriber compared with B use Family it is bigger, then using the human face image information of party A-subscriber as above-mentioned facial image.
Step S12: mobile terminal obtains and the matched correct display direction of at least two facial characteristics, wherein correct aobvious Show that direction includes transverse extension direction and vertically extending direction.
For the ease of user's operation, check mobile terminal, the display direction direction for generally requiring mobile terminal display screen is used Family that is to say that the display direction of mobile terminal display screen meets the general custom that normal person operated, checked mobile terminal.Currently, Generally by the display direction of the control mobile terminal display screen such as gravity sensor, gyroscope, to reach the display of display screen Direction meets the purpose of user's normal use.
In the present embodiment, correct display direction can refer to the general custom for meeting normal person's operation, checking mobile terminal Display direction.For example, the display direction of display screen is generally vertically displaying when user's single hand operation of mobile phone browses webpage;User When game is played in both hands operation, the display direction of display screen is generally laterally shown.
Further, mobile terminal is in (vertical or laterally) display content, generally comprise along transverse extension direction and Vertically extending direction both direction is shown, in order to which user checks the display content of mobile terminal, wherein transverse extension direction one As for direction from left to right, vertically extending direction is generally direction from top to bottom.For example, transverse extension direction generally with use The line direction of family eyes is corresponding in order to which user checks display content from left to right, and vertically extending direction is generally double with user Eye is corresponding in order to which user checks display content from top to bottom towards the direction of nose.
It, certainly also can be because it should be noted that correct display direction in the embodiment of the present application has certain generality The different use habits of different user and slightly difference.
Step S13: mobile terminal is shown with correct display direction.
As described above, user is shown mobile terminal with correct display direction during using mobile terminal, It can operate, check in order to user, it is existing by the control such as gravity sensor, gyroscope so as to assist or replace The mode of display direction.
It is illustrated below with an actual example:
It takes the mobile phone as an example, for user when operating, checking mobile phone, face feature (for example, eyes, nose etc.) and mobile phone are aobvious Show that the relative position of content is usually relatively-stationary, for example, display content transverse extension direction generally with user's eyes Line direction is corresponding in order to which user checks display content from left to right, shows the vertically extending direction of content generally and user The direction of eyes towards nose is corresponding in order to which user checks display content from top to bottom, as shown in Figure 2;It is possible to logical The front camera for crossing mobile phone obtains user's facial image, and mobile phone is shown the face that the display direction of content and facial image include Portion's feature is corresponding, so that the display direction of mobile terminal is correct display direction as expected, consequently facilitating user grasps Make, check.
It is in contrast to the prior art, this application provides a kind of control methods of display direction, comprising: mobile terminal Obtain facial image, wherein facial image includes at least two facial characteristics;Mobile terminal obtains and at least two facial characteristics Matched correct display direction, wherein correct display direction includes transverse extension direction and vertically extending direction;Mobile terminal with Correct display direction is shown.The application passes through at least two faces of the display direction of mobile terminal and facial image are special Sign matching, so that the display direction of mobile terminal is correct display direction as expected.
It is the flow diagram of an embodiment of step S12 in Fig. 1 refering to Fig. 3, Fig. 3.
Step S121: first facial feature is connect to form reference line with the second facial characteristics, according to third facial characteristics The direction of reference line is determined on the basis of the direction of reference line with the relativeness of first facial feature and the second facial characteristics With the relativeness of transverse extension direction, and revolved clockwise as forward direction when the display content for setting mobile terminal rotates counterclockwise It is negative sense when turning.
Optionally, after acquisition for mobile terminal facial image, by facial image left eye (or left ear) and right eye it is (or right Ear) connection forms reference line, and according to the relativeness of nose (or mouth) and left eye (or left ear) and right eye (or auris dextra), example Such as, nose is located at the lower section of reference line (left eye and right eye) in facial image, as shown in figure 4, the extension of reference line can be determined Direction is from left to right.
Further, on the basis of the direction of reference line, and the transverse extension direction that mobile terminal shows content is obtained, really The direction of reference line and the relativeness of transverse extension direction are determined, so that it is determined that the direction of rotation of transverse extension direction is aobvious to control As forward direction when the display content shown the direction of rotation of content, and set mobile terminal rotates counterclockwise, it is negative when rotating clockwise To as shown in Figure 4.
Step S122: according to the relativeness in the direction of reference line and transverse extension direction, determine the direction of reference line with Angle between the current display direction of mobile terminal is located in (0 ° ,+180 °) or (- 180 °, 0 °) range.
In the present embodiment, when transverse extension direction is located at the top in the direction of reference line, above-mentioned angle be located at (0 ° ,+ 180 °) in range;When transverse extension direction is located at the lower section in the direction of reference line, above-mentioned angle is located at (- 180 °, 0 °) range It is interior, as shown in Figure 5.
By taking mobile terminal (mobile phone) is horizontal or level of approximation is placed as an example, mobile terminal shows the current display direction of content Be arbitrary, wherein transverse extension direction may include horizontally to the right (I), (II), horizontal (III) to the left and hang down vertically upward Straight (IV) four kinds of possible situations downwards, as shown in figure 5, wherein only at transverse extension direction (I) horizontally to the right, it is current aobvious Show that direction is just consistent with the direction of reference line, it is, only in this case, the display direction of mobile terminal is only expection Correct display direction.
If above-mentioned angle is located in (0 ° ,+180 °) range, S123 is thened follow the steps;If above-mentioned angle be located at (- 180 °, 0 °) in range, then follow the steps S124.
Step S123: the display content of mobile terminal rotates clockwise.
Step S124: the display content of mobile terminal rotates counterclockwise.
As described above, the transverse extension direction in current display direction is one in the case where tri- kinds of II, III and IV possible Kind when, need rotational display content so that transverse extension direction is consistent with the direction of reference line so that mobile terminal with Correct display direction is shown.
In the present embodiment, according to the relativeness in the direction of reference line and transverse extension direction, so that it is determined that between the two Angle locating for range, then select different rotation modes (maximum rotation 180 °), avoid display content toward a side To rotation (maximum is rotated by 360 °), the flexibility of display content rotation is increased, and the power consumption of mobile terminal can be reduced.
In this step, direction and the angle of display content rotation can also be further determined that according to the size of above-mentioned angle. It is specific as follows:
When above-mentioned angle is located in (0 ° ,+180 °) range, shape between transverse extension direction and the direction of reference line is judged At angle and the first angle threshold value range size relation;
If angle is less than or equal to the minimum value of the first angle threshold value range, using current display direction as correct display Direction;
If angle is located within the scope of the first angle threshold value, as correct after current display direction is rotated clockwise 90 ° Display direction;
If angle is greater than or equal to the maximum value of the first angle threshold value range, current display direction is rotated clockwise Correct display direction is used as after 180 °.
When above-mentioned angle is located in (- 180 °, 0 °) range, shape between transverse extension direction and the direction of reference line is judged At angle and the second angle threshold value range size relation;
If angle is greater than or equal to the maximum value of the second angle threshold value range, using current display direction as correct display Direction;
If angle is located within the scope of the second angle threshold value, as correct after current display direction is rotated by 90 ° counterclockwise Display direction;
If angle is less than or equal to the minimum value of the second angle threshold value range, current display direction is rotated counterclockwise Correct display direction is used as after 180 °.
It should be noted that since the display content of mobile terminal corresponds to a variety of possible current display directions, and it is aobvious Show that content finally needs to be shown with correct display direction, for this purpose, rotating the description such as current display direction and rotation in the application Turn the display descriptions such as content can be it is equivalent.
With the first angle threshold value range be (+45 ° ,+135 °), the second angle threshold value range be (- 135 °, -45 °) for, And set the θ of the angle between the direction of reference line and the display direction of current mobile terminal.According to transverse extension direction and ginseng The angled relationships between the direction of line are examined, the current display direction of control display content carries out the rotation of different directions and angle, So that current display direction is expected correct display direction, shown in table specific as follows.
In some embodiments, the midpoint of reference line and third facial characteristics can also be connected to form a ray, The extending direction of the ray is the midpoint of reference line towards the direction of third facial characteristics, for example, can be the place between the eyebrows court of user To the direction of nose;Correspondingly, according to the relativeness in the direction of the ray and vertically extending direction come moving in rotation terminal Current display direction, to obtain expected correct display direction.
Specific embodiment is similar with step S12, and details are not described herein, is illustrated below with an actual example:
By taking mobile terminal (mobile phone) is horizontal or level of approximation is placed as an example, mobile terminal shows the current display direction of content It is arbitrary, wherein vertically extending direction also may include (I) horizontally to the right as shown in Figure 5, vertically upward (II), level Four kinds of possible situations to the left (III) and vertically downward (IV), wherein only at vertically extending direction (IV) vertically downward, when Preceding display direction is just consistent with the direction of the ray, it is, only in this case, the display direction of mobile terminal is only Expected correct display direction.Correspondingly, if the vertically extending direction of current display direction is I, by current display direction Correct display direction is used as after rotating clockwise 90 °;If the vertically extending direction of current display direction is II, will currently it show Show and is used as correct display direction after direction rotates 180 ° counterclockwise (or clockwise);If the vertically extending direction of current display direction When for III, then correct display direction is used as after being rotated by 90 ° current display direction counterclockwise.
It is the flow diagram of the control method second embodiment of display direction provided by the present application refering to Fig. 6, Fig. 6, it should Method includes:
Step S21: acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics.
Step S22: whether the display content for judging mobile terminal includes face information.
In the present embodiment, display content can be the image content including face information, for example, display content can be The portrait photographs completed through shooting, are also possible to the portrait photographs shot, can also be video pictures etc., face information can To be some facial characteristics of face, for example, eyes, ear, nose, mouth etc..
When the judging result of step S22 is to be, step S23 to step S25 is successively executed;Conversely, sentencing in step S22 When disconnected result is no, step S26 is executed.
Step S23: the first face characteristic, the second face characteristic and the third face characteristic in face information are obtained.
Wherein, the first face characteristic and the second face characteristic are eyes or ear, and third face characteristic is nose or mouth.
Step S24: by the first face characteristic, the second face characteristic and third face characteristic respectively with first facial feature, Second facial characteristics and third facial characteristics are corresponding to obtain correct display direction.
In the present embodiment, when showing in content includes face information, for example, user checks oneself takes pictures, personage is shone etc. When picture or Video chat, it will show that the face information for including in content is corresponding with the facial image of user, for example, will display The face characteristics such as eyes, the nose of content are corresponding with the facial characteristics such as the eyes of user, nose to obtain correct display side respectively To as shown in fig. 7, in order to which user checks.
Step S25: mobile terminal is shown with correct display direction.
Step S26: mobile terminal issues prompt information.
Optionally, prompt information is to play frame, sound, vibration etc., may not include people for reminding user to show in content Face information.
Optionally, further judge whether the display content of mobile terminal further includes text information, and compare text information Screen ratio is accounted in mobile terminal with face information, and to account for screen than high information as above-mentioned display content;Or according to setting in advance It is selected calmly using text information or face information as above-mentioned display content, so that mobile terminal is come based on the display content Its display direction is controlled, and display content is shown with correct display direction, consequently facilitating user checks display content.
In the present embodiment, text information can individually be come across in display content, can also be occurred simultaneously with face information In display content, so that display is abundant in content, various.
It is the flow diagram of the control method 3rd embodiment of display direction provided by the present application refering to Fig. 8, Fig. 8, it should Method includes:
Step S31: judge whether mobile terminal is in horizontality.
In the present embodiment, the horizontality of mobile terminal can refer to that user's hand-held mobile terminal makes mobile terminal keep water Flat or level of approximation, or mobile terminal is placed in horizontal or desktop of level of approximation etc., for example, flat where the display screen of mobile phone When face is parallel with horizontal plane (approximate), it is believed that mobile phone is in above-mentioned horizontality at this time.
However, gravity sensor, gyroscope etc. can not work normally to control mobile terminal display screen under horizontality Display direction, or even will appear the phenomenon that display direction frequently jumps, cause user experience ineffective.
For example, user is placed on the document of desktop using mobile phone shooting, user needs in hand-held mobile phone under this usage scenario Mobile phone is horizontally arranged or level of approximation is placed, so that the rear camera of mobile phone can take document as much as possible Content, to increase shooting effect;In shooting process, user may need the display effect of real time inspection shooting picture with certainly It is fixed whether to complete shooting (for example, using the shooting modes such as virtual key or acoustic control " eggplant " are touched), shooting picture is needed thus Display direction is checked towards user.
For another example tablet computer is placed on conference table in the usage scenarios such as certain meetings to pass round data document, The display direction of data document may be needed to be adapted to the different direction of multiple users (participant) and change.
Under such as above-mentioned some scenes, mobile terminal can not be accurate by usual manners such as gravity sensor, gyroscopes Its display direction is controlled as correct display direction as expected.For this purpose, the present embodiment proposes a solution, it is specific real It is similar with above-mentioned the first embodiment or the second embodiment to apply mode, in the present embodiment by taking above-mentioned first embodiment as an example, herein not It repeats again.
When the judging result of step S31 is to be, step S32 to step S34 is successively executed;Conversely, sentencing in step S31 When disconnected result is no, step S35 is executed.
Step S32: acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics.
Step S33: mobile terminal obtains and the matched correct display direction of at least two facial characteristics, wherein correct aobvious Show that direction includes transverse extension direction and vertically extending direction.
Step S34: mobile terminal is shown with correct display direction.
Step S35: mobile terminal issues prompt information.
Optionally, prompt information is to play frame, sound, vibration etc., for reminding gravity sensor, the top of customer mobile terminal Spiral shell instrument etc. can work normally.
As described above, it is when in a horizontal state in mobile terminal, mobile terminal is shown with correct display direction, it can It is existing aobvious by controls such as gravity sensor, gyroscopes so as to assist or replace in order to which user operates, checks Show the mode in direction.
It is illustrated below with an actual example:
By taking mobile phone shooting is placed on the document of desktop as an example, user's held by both hands mobile phone simultaneously makes mobile phone in horizontal or level of approximation State, gravity sensor, gyroscope etc. can not work normally to meet the shooting demand of user at this time;Face feature is (for example, eye Eyeball, nose etc.) it is usually relatively-stationary with the relative position of mobile phone display content, for example, the side of being laterally extended of display content To generally corresponding with the line direction of user's eyes in order to which user checks display content from left to right, the vertical of content is shown Extending direction is generally corresponding with the direction of user's eyes towards nose in order to which user checks display content from top to bottom, such as schemes Shown in 2;It is possible to which the front camera by mobile phone obtains user's facial image, mobile phone is shown to the display direction of content It is corresponding with the face feature that facial image includes, for example, the company of the transverse extension direction of setting display content and user's eyes Line direction is corresponding, and vertically extending direction is corresponding with the direction of user's eyes towards nose, so that shooting picture is aobvious Show direction towards user, consequently facilitating the display effect of user's real time inspection shooting picture is to decide whether to complete shooting.Into one Step ground, can also preserve the display direction of above-mentioned shooting picture as a part of file content, that is to say, that shooting The default display direction and the display direction of (real time inspection) in shooting process of picture file or video file after the completion etc. be It is consistent, in order to which user's later period such as checks to picture file, video file etc., handles at the operation, for example, user can will Above-mentioned picture file or video file etc. copy the terminals such as computer to, and display direction when these files are to shoot is shown, It can be convenient user and carry out the operations such as U.S. figure, editing.
Fig. 9 is the schematic diagram of one embodiment of mobile terminal provided by the present application.
The mobile terminal 40 of the present embodiment includes sensor 41, processor 42 and memory 43, processor 42 and sensor 41, memory 43 can be of coupled connections by data/address bus.
Wherein, sensor 41 is used to obtain the facial image of user, and memory 43 is for storing computer program, processor 42 execute computer program at work to obtain correct display direction, and control sensor to realize following method and step:
Acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics;Mobile terminal obtain with The matched correct display direction of at least two facial characteristics, wherein correct display direction includes transverse extension direction and vertically prolongs Stretch direction;Mobile terminal is shown with correct display direction.
Mobile terminal 40 provided in this embodiment is the entity terminal based on above method embodiment, implementation principle and Step is similar, and therefore, computer program can also realize its other party provided in above-described embodiment when being executed by processor 41 Method step, details are not described herein.
Figure 10 is the schematic diagram of one embodiment of computer storage medium provided by the present application.
The computer storage medium 50 of the present embodiment is for storing computer program 51, and the computer program 51 is processed When device executes, for realizing following method and step:
Acquisition for mobile terminal facial image, wherein facial image includes at least two facial characteristics;Mobile terminal obtain with The matched correct display direction of at least two facial characteristics, wherein correct display direction includes transverse extension direction and vertically prolongs Stretch direction;Mobile terminal is shown with correct display direction.
Method and step performed by computer program 51 in the present embodiment is implemented based on above method embodiment Principle is similar with step, and therefore, computer program 51 can also be realized and be provided in above-described embodiment when being executed by processor Other methods step, details are not described herein.
Embodiments herein is realized in the form of SFU software functional unit and when sold or used as an independent product, can To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute each implementation of the application The all or part of the steps of mode the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field similarly includes in the scope of patent protection of the application.

Claims (10)

1. a kind of control method of display direction characterized by comprising
Acquisition for mobile terminal facial image, wherein the facial image includes at least two facial characteristics;
The mobile terminal obtains and the matched correct display direction of at least two facial characteristics, wherein described correct aobvious Show that direction includes transverse extension direction and vertically extending direction;
The mobile terminal is shown with the correct display direction.
2. the method according to claim 1, wherein at least two facial characteristics includes first facial spy Sign, the second facial characteristics and third facial characteristics, wherein the first facial feature and second facial characteristics be eyes or Ear, the third facial characteristics are nose or mouth.
3. according to the method described in claim 2, it is characterized in that, the mobile terminal obtains and at least two faces spy The step of levying matched correct display direction, comprising:
The first facial feature is connect to form reference line with second facial characteristics, according to the third facial characteristics with The relativeness of the first facial feature and second facial characteristics determines institute on the basis of the direction of the reference line The direction of reference line and the relativeness of the transverse extension direction are stated, and the display content for setting the mobile terminal is counterclockwise It is forward direction when rotation, is negative sense when rotating clockwise;
According to the relativeness in the direction of the reference line and the transverse extension direction, direction and the institute of the reference line are determined The angle between the current display direction of mobile terminal is stated to be located in (0 ° ,+180 °) or (- 180 °, 0 °) range;
If the angle is located in (0 ° ,+180 °) range, then the display content of the mobile terminal rotates clockwise;
If the angle is located in (- 180 °, 0 °) range, then the display content of the mobile terminal rotates counterclockwise.
If 4. according to the method described in claim 3, it is characterized in that, the angle is located in (0 ° ,+180 °) range, The step of then the display content of the mobile terminal rotates clockwise further comprises:
Judge the angle formed between the transverse extension direction and the direction of the reference line and the first angle threshold value range Size relation;
If the angle be less than or equal to the first angle threshold value range minimum value, using the current display direction as The correct display direction;
If the angle is located within the scope of first angle threshold value, after the current display direction is rotated clockwise 90 ° As the correct display direction;
If the angle is greater than or equal to the maximum value of the first angle threshold value range, by the current display direction up time Needle is used as the correct display direction after rotating 180 °.
If 5. according to the method described in claim 3, it is characterized in that, the angle is located in (- 180 °, 0 °) range, The step of then the display content of the mobile terminal rotates counterclockwise further comprises:
Judge the angle formed between the transverse extension direction and the direction of the reference line and the second angle threshold value range Size relation;
If the angle be greater than or equal to the second angle threshold value range maximum value, using the current display direction as The correct display direction;
If the angle is located within the scope of second angle threshold value, after the current display direction is rotated by 90 ° counterclockwise As the correct display direction;
If the angle is less than or equal to the minimum value of the second angle threshold value range, by the current display direction inverse time Needle is used as the correct display direction after rotating 180 °.
6. according to the method described in claim 2, it is characterized in that, the mobile terminal obtains and at least two faces spy Before the step of levying matched correct display direction, comprising:
Whether the display content for judging the mobile terminal includes face information;
If it has, then the first face characteristic in the face information, the second face characteristic and third face characteristic are obtained, In, first face characteristic and second face characteristic are eyes or ear, and the third face characteristic is nose or mouth Bar;
First face characteristic, second face characteristic and the third face characteristic is special with the first facial respectively Sign, second facial characteristics and the third facial characteristics are corresponding to obtain the correct display direction.
7. according to the method described in claim 6, it is characterized in that, the mobile terminal obtains and at least two faces spy Before the step of levying matched correct display direction, further comprise:
Whether the display content for judging the mobile terminal further includes text information;
If it has, then the text information and the face information account for screen ratio in the mobile terminal, and to account for screen ratio High information is as the display content;Or
It selects according to presetting using the text information or the face information as the display content.
8. the method according to claim 1, wherein before the step of acquisition for mobile terminal facial image, Include:
Judge whether the mobile terminal is in horizontality;
If it is, just executing the movement of facial image described in the acquisition for mobile terminal.
9. a kind of mobile terminal, which is characterized in that the mobile terminal sensor packet, processor and memory, the processor It is coupled with the sensor and the memory;
Wherein, the sensor is for obtaining facial image, and for storing computer program, the processor exists the memory The computer program is executed when work to obtain correct display direction, and controls the sensor to realize such as claim The described in any item methods of 1-8.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor To realize the method according to claim 1.
CN201811231638.0A 2018-10-22 2018-10-22 Control method, mobile terminal and the computer storage medium of display direction Withdrawn CN109445735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811231638.0A CN109445735A (en) 2018-10-22 2018-10-22 Control method, mobile terminal and the computer storage medium of display direction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811231638.0A CN109445735A (en) 2018-10-22 2018-10-22 Control method, mobile terminal and the computer storage medium of display direction

Publications (1)

Publication Number Publication Date
CN109445735A true CN109445735A (en) 2019-03-08

Family

ID=65547271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811231638.0A Withdrawn CN109445735A (en) 2018-10-22 2018-10-22 Control method, mobile terminal and the computer storage medium of display direction

Country Status (1)

Country Link
CN (1) CN109445735A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118347A (en) * 2019-06-20 2020-12-22 中兴通讯股份有限公司 Head portrait processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049084A (en) * 2012-12-18 2013-04-17 深圳国微技术有限公司 Electronic device and method for adjusting display direction according to face direction
CN103970259A (en) * 2013-01-31 2014-08-06 华为技术有限公司 Screen mode switching method and terminal equipment
CN104679225A (en) * 2013-11-28 2015-06-03 上海斐讯数据通信技术有限公司 Method and device for adjusting screen of mobile terminal and mobile terminal
EP3015956A2 (en) * 2014-10-30 2016-05-04 Samsung Electronics Co., Ltd. Method and apparatus for controlling screen display on electronic devices
CN105630140A (en) * 2014-10-30 2016-06-01 深圳富泰宏精密工业有限公司 Interface rotating system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049084A (en) * 2012-12-18 2013-04-17 深圳国微技术有限公司 Electronic device and method for adjusting display direction according to face direction
CN103970259A (en) * 2013-01-31 2014-08-06 华为技术有限公司 Screen mode switching method and terminal equipment
CN104679225A (en) * 2013-11-28 2015-06-03 上海斐讯数据通信技术有限公司 Method and device for adjusting screen of mobile terminal and mobile terminal
EP3015956A2 (en) * 2014-10-30 2016-05-04 Samsung Electronics Co., Ltd. Method and apparatus for controlling screen display on electronic devices
CN105630140A (en) * 2014-10-30 2016-06-01 深圳富泰宏精密工业有限公司 Interface rotating system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118347A (en) * 2019-06-20 2020-12-22 中兴通讯股份有限公司 Head portrait processing method and device
WO2020253755A1 (en) * 2019-06-20 2020-12-24 中兴通讯股份有限公司 Profile picture processing method and device

Similar Documents

Publication Publication Date Title
US10171729B2 (en) Directional adjustment for a camera based on exposure quality information
US8059917B2 (en) 3-D modeling
CN110337023B (en) Animation display method, device, terminal and storage medium
WO2019148968A1 (en) Mobile terminal, facial unlocking method, and related product
US11778263B2 (en) Live streaming video interaction method and apparatus, and computer device
CN105808997B (en) A kind of control method and electronic equipment
CN109621425B (en) Video generation method, device, equipment and storage medium
CN108495032A (en) Image processing method, device, storage medium and electronic equipment
CN105657500B (en) A kind of video playing control method and device
CN105653032A (en) Display adjustment method and apparatus
US11878240B2 (en) Method, apparatus, device, and storage medium for perspective rotation
KR20180073330A (en) Method and apparatus for creating user-created sticker, system for sharing user-created sticker
CN107153444A (en) A kind of intelligent terminal and its method for displaying projection
CN111857910A (en) Information display method and device and electronic equipment
WO2019133872A1 (en) Process for capturing content from a document
WO2022247204A1 (en) Game display control method, non-volatile storage medium and electronic device
CN109445735A (en) Control method, mobile terminal and the computer storage medium of display direction
WO2020019133A1 (en) Method and device for determining shadow effect and electronic device
WO2020019132A1 (en) Method and apparatus for rendering virtual object on the basis of light information, and electronic device
CN106131421A (en) The method of adjustment of a kind of video image and electronic equipment
CN107864333A (en) Image processing method, device, terminal and storage medium
WO2023083279A1 (en) Photographing method and apparatus
JP5936670B2 (en) Experience-type video game device
CN110428390B (en) Material display method and device, electronic equipment and storage medium
CN107395980A (en) A kind of photographic method, terminal and computer-readable recording medium

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
CB02 Change of applicant information

Address after: 518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Our Internet Network Technology (Shenzhen) Co., Ltd.

Address before: 518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Shenzhen City, Guangdong Province

Applicant before: Our Internet Network Technology (Shenzhen) Co., Ltd.

CB02 Change of applicant information
WW01 Invention patent application withdrawn after publication

Application publication date: 20190308

WW01 Invention patent application withdrawn after publication