CN106303029A - The method of controlling rotation of a kind of picture, device and mobile terminal - Google Patents

The method of controlling rotation of a kind of picture, device and mobile terminal Download PDF

Info

Publication number
CN106303029A
CN106303029A CN201610670895.9A CN201610670895A CN106303029A CN 106303029 A CN106303029 A CN 106303029A CN 201610670895 A CN201610670895 A CN 201610670895A CN 106303029 A CN106303029 A CN 106303029A
Authority
CN
China
Prior art keywords
facial image
current picture
face
picture
feature information
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.)
Granted
Application number
CN201610670895.9A
Other languages
Chinese (zh)
Other versions
CN106303029B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610670895.9A priority Critical patent/CN106303029B/en
Publication of CN106303029A publication Critical patent/CN106303029A/en
Application granted granted Critical
Publication of CN106303029B publication Critical patent/CN106303029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses the method for controlling rotation of a kind of picture, device and mobile terminal.The method includes: when comprising facial image in current picture being detected, obtains the facial feature information of facial image;The direction of facial image is determined according to facial feature information;If the direction of facial image is more than predetermined angle threshold value with the angle of the display direction of current picture, then controls current picture and rotate, so that the angle of the display direction of the direction of facial image and current picture is less than or equal to predetermined angle threshold value.The embodiment of the present invention is by using technique scheme, mobile terminal can automatically control picture and rotate, the direction of facial image is allowed to be less than or equal to predetermined angle threshold value with the angle of the display direction of current picture, user is made to meet, without oneself manually adjusting i.e. to can watch, the picture comprising face that self viewing is accustomed to, watch picture for user and bring facility, thus promote Consumer's Experience.

Description

The method of controlling rotation of a kind of picture, device and mobile terminal
Technical field
The present embodiments relate to technical field of mobile terminals, particularly relate to the method for controlling rotation of a kind of picture, device And mobile terminal.
Background technology
At present, the mobile terminal such as mobile phone and panel computer generally supports picture browsing function and video playback etc., makes shifting Dynamic terminal use can check photo and other various types of pictures of storage in mobile terminal the most at any time, Also may be viewed by various video pictures.
User, when using mobile terminal viewing picture, is frequently encountered following situation: the court of character facial in picture To the angle with the display direction of picture more than predetermined angle threshold value.Fig. 1 is the display schematic diagram of existing a kind of picture, such as figure Shown in 1, the display direction 101 of current picture is straight up, and the direction 102 of the facial image in picture be level to the left , do not meet the viewing custom of the mankind, so user in order to more comfortable viewing picture be accomplished by adjusting oneself head or Mobile terminal towards, or call the picture editing's function in mobile terminal to rotate the display direction of picture, operate numerous Trivial.Additionally, present mobile terminal the most all can support screen automatic rotation function, this function can according to mobile terminal towards Adjust the display direction of screen median surface, if situation about occurring in Fig. 1, user want by adjust mobile terminal towards When (vertically changing into mobile terminal laterally towards by original) adjusts the display direction of picture, if the automatic rotational work of screen Opening can be in, then the display direction of picture also can adjust therewith, aobvious towards with picture of character facial in picture Show that direction angle still more than predetermined angle threshold value, at this moment also needs to user's manual-lock screen automatic rotation function, for The use at family brings great inconvenience.
Summary of the invention
The purpose of the embodiment of the present invention is to provide the method for controlling rotation of a kind of picture, device and mobile terminal, to solve Mobile terminal comprises the problem that the display direction of picture of face is more than predetermined angle threshold value with the angle of facial orientation.
First aspect, embodiments provides the method for controlling rotation of a kind of picture, including:
When comprising facial image in current picture being detected, obtain the facial feature information of described facial image;
The direction of described facial image is determined according to described facial feature information;
If the direction of described facial image is more than predetermined angle threshold value, then with the angle of the display direction of described current picture Control described current picture to rotate, so that the angle of the display direction of the direction of described facial image and described current picture Less than or equal to described predetermined angle threshold value.
Second aspect, embodiments provides the rotating control assembly of a kind of picture, including:
Facial feature information acquisition module, in time comprising facial image in current picture being detected, obtains described people The facial feature information of face image;
Facial image direction determines module, for determining the direction of described facial image according to described facial feature information;
Picture Spin Control module, for the folder in the direction of described facial image Yu the display direction of described current picture When angle is more than predetermined angle threshold value, controls described current picture and rotate, so that the direction of described facial image is worked as with described The angle of the display direction of front picture is less than or equal to described predetermined angle threshold value.
The third aspect, embodiments provides a kind of mobile terminal, and described mobile terminal is integrated with the present invention to be implemented The rotating control assembly of the picture described in example.
The Spin Control scheme of the picture provided in the embodiment of the present invention, comprises facial image in current picture being detected Time, the direction of facial image is determined according to the facial feature information of facial image, if the direction of facial image and current picture The angle of display direction be more than predetermined angle threshold value, then control current picture rotate so that the direction of facial image with work as The angle of the display direction of front picture is less than or equal to described predetermined angle threshold value.By using technique scheme, mobile whole End can automatically control picture and rotate, and allows the direction of facial image and the angle of the display direction of current picture less than or equal to presetting Angle threshold, makes user meet, without oneself manually adjusting i.e. to can watch, the picture comprising face that self viewing is accustomed to, for User watches picture and brings facility, thus promotes Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the display schematic diagram of existing a kind of picture;
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 2 provides for the embodiment of the present invention one;
The display schematic diagram of a kind of postrotational picture that Fig. 3 provides for the embodiment of the present invention one;
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 4 provides for the embodiment of the present invention two;
The display schematic diagram of a kind of postrotational picture that Fig. 5 provides for the embodiment of the present invention two;
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 6 provides for the embodiment of the present invention three;
A kind of facial image direction that Fig. 7 provides for the embodiment of the present invention three determines schematic diagram;
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 8 provides for the embodiment of the present invention four;
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 9 provides for the embodiment of the present invention five;
The structured flowchart of the rotating control assembly of a kind of picture that Figure 10 provides for the embodiment of the present invention six;
The structural representation of a kind of mobile terminal that Figure 11 provides for the embodiment of the present invention seven.
Detailed description of the invention
Further illustrate technical scheme below in conjunction with the accompanying drawings and by detailed description of the invention.May be appreciated It is that specific embodiment described herein is used only for explaining the present invention, rather than limitation of the invention.Further need exist for explanation , for the ease of describing, accompanying drawing illustrate only part related to the present invention rather than entire infrastructure.
It should be mentioned that, some exemplary embodiments are described as before being discussed in greater detail exemplary embodiment The process described as flow chart or method.Although flow chart each step is described as order process, but many of which Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When it operates When completing, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process is permissible Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 2 provides for the embodiment of the present invention one, the method can To be performed by the rotating control assembly of picture, wherein this device can be realized by software and/or hardware, typically can be integrated in mobile whole In end.As in figure 2 it is shown, the method includes:
Step 201, when comprising facial image in current picture being detected, obtain the facial feature information of facial image.
Exemplary, the mobile terminal concretely mobile phone in the present embodiment, intelligent watch, panel computer, digital photographing The equipment such as machine, personal digital assistant and digital multimedia player.It is understood that for the dress performing the present embodiment method Put and also can be integrated in as in the terminals such as desk computer, be typically integrated in mobile terminal and be because brought beneficial effect more Add substantially, so the embodiment of the present invention only illustrates as a example by being integrated in mobile terminal.
Exemplary, that current picture concretely mobile terminal screen is showing picture.Concrete, this picture can Picture including picture, video pictures and other forms.Whether people can be comprised in current picture by face recognition technology Face is identified, and concrete recognition method is not especially limited by the present embodiment.Such as, being identified by image recognition technology ought Front picture comprises facial contour or some feature (such as eyes, nose and face etc.) etc. comprising in face's face, then may be used Think and current picture comprises facial image.
Exemplary, after comprising facial image in confirming current picture, the facial feature information of facial image can be obtained, For the follow-up direction confirming facial image.The facial feature information of facial image can include face characteristic information, hair The information such as profile and hair line, wherein, face characteristic information specifically can include in face the shape of certain or certain several organs Shape information and positional information etc..
Exemplary, picture intelligent rotating function can be increased in the terminal, mobile terminal enters graphic image and browses Automatically turn on this function when device etc. are for browsing the interface of picture or when entering the interfaces such as video player, and perform this step Suddenly, when mobile terminal exits picture browsing or closes video player, close this function, to reduce power consumption, reach power saving Purpose.
Step 202, determine the direction of facial image according to facial feature information.
Exemplary, after getting facial feature information, the direction of facial image can be further determined that.Such as, can root The direction of facial image is determined according to the shape information of certain organ in face, concrete, can come according to the shape information of nose Determine the positive direction (chin that can be regarded as head refers to vertexal direction) of face, this positive direction is defined as facial image Direction.And for example, the direction of facial image can be determined according to information such as hair profile and hair lines.For another example, can be according in face The relative position relation of at least two organ determines the direction etc. of facial image.
If the direction of step 203 facial image is more than predetermined angle threshold value, then with the angle of the display direction of current picture Control current picture to rotate, so that the angle of the display direction of the direction of facial image and current picture is less than or equal to institute State predetermined angle threshold value.
Exemplary, the display direction of current picture may correspond to active user's view direction.Such as: for screen interface For the mobile terminal that display direction is fixing, the length direction that screen interface display direction is mobile terminal of general acquiescence, use Family the most also can vertically grip mobile terminal, and now, the display direction of current picture is the length direction of mobile terminal;Right For the mobile terminal of support screen automatic rotation function, screen automatic rotation function can according to mobile terminal towards adjusting Whole screen interface display direction, typically can switch between the length direction and width of mobile terminal, and keep It is interior (such as 45 degree) that screen interface display direction and the angle of vertical direction are in certain scope, now, and the display of current picture Direction is length direction or the width of mobile terminal, specifically can be determined by the testing result of screen automatic rotation function; For supporting the mobile terminal of other screen rotation control strategies, display direction can be determined as the case may be.
Exemplary, predetermined angle threshold value can be arranged by system default, it is possible to is carried out according to personal use custom by user Autonomous setting.Such as, predetermined angle threshold value can be arranged to 30 degree or 0 degree etc..Direction and current picture when facial image When the angle of display direction is more than predetermined angle threshold value, the direction of facial image and the display direction gap of current picture can be described Relatively big, user can be very uncomfortable when watching picture, needs to be adjusted.
Exemplary, when controlling current picture and rotating, can aobvious according to the direction of facial image and current picture Showing that the angle in direction and the difference of predetermined angle threshold value determine the anglec of rotation, this anglec of rotation can be equal to this difference, it is possible to is more than This difference, but the anglec of rotation is preferably less than or equal to this difference, controls current picture according to the anglec of rotation subsequently and draws to current The display direction in face rotates.
Exemplary, if predetermined angle threshold value is 0 degree, as a example by Fig. 1, the display direction 101 of the current picture in Fig. 1 is Straight up, and the direction 102 of facial image be level to the left, so in current picture the direction 102 of facial image with The display direction 101 of current picture is 90 degree, more than predetermined angle threshold value 0 degree, does not meets the viewing custom of the mankind, needs to carry out Adjust.The display schematic diagram of a kind of postrotational picture that Fig. 3 provides for the embodiment of the present invention one, as it is shown on figure 3, according to this step Suddenly, the current picture 90-degree rotation counterclockwise in controlled drawing 1, allow the direction 302 of postrotational facial image and current picture Display direction 101 consistent (angle is 0 degree).Now, the current picture that user watches on mobile terminals meets viewing to be practised Used.
It is understood that when controlling current picture and rotating, in order to ensure that the content in current picture is not lost And in order to make current picture obtain maximizing display, current picture reasonably can be scaled.
The method of controlling rotation of the picture that the embodiment of the present invention one provides, comprises facial image in current picture being detected Time, the direction of facial image is determined according to the facial feature information of facial image, if the direction of facial image and current picture The angle of display direction be more than predetermined angle threshold value, then control current picture rotate so that the direction of facial image with work as The angle of the display direction of front picture is less than or equal to described predetermined angle threshold value.By using technique scheme, mobile whole End can automatically control picture and rotate, and allows the direction of facial image be less than or equal to described with the angle of the display direction of current picture Predetermined angle threshold value, makes user meet, without oneself manually adjusting i.e. to can watch, the picture comprising face that self viewing is accustomed to Face, watches picture for user and brings facility, thus promote Consumer's Experience.
Embodiment two
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 4 provides for the embodiment of the present invention two, the present embodiment It is optimized based on above-described embodiment, in the present embodiment, " if the direction of facial image and the display side of current picture To angle more than predetermined angle threshold value, then control current picture and rotate " before, add step: automatic according to screen The testing result of spinfunction and/or the testing result of active user's view direction determine the display direction of current picture.
Accordingly, the method for the present embodiment comprises the steps:
Step 401, when comprising facial image in current picture being detected, obtain the facial feature information of facial image.
Step 402, determine the direction of facial image according to facial feature information.
Step 403, according to the testing result of screen automatic rotation function and/or the testing result of active user's view direction Determine the display direction of current picture.
Exemplary, the most a lot of mobile terminal support screen automatic rotation functions, this function typically can be passed by gravity The sensing data of sensor (G-sensor) and gyroscope determine mobile terminal towards, and automatic according to default screen Rotate strategy and adjust screen interface display direction, to facilitate user to watch screen interface, so can be according to screen in this step The testing result of automatic rotation function determines the display direction of current picture, the i.e. testing result pair of screen automatic rotation function The display direction of the screen interface answered is the display direction of current picture.
Exemplary, determine the display direction of current picture according to the testing result of active user's view direction, specifically Comprise the steps that the screen forward image obtaining mobile terminal shooting;True according to the user's facial image comprised in screen forward image Determine the testing result of active user's view direction;Testing result according to active user's view direction determines the aobvious of current picture Show direction.
Such as, user is when using mobile terminal viewing picture, and mobile terminal by opening front-facing camera or can be worked as Front position is in the rotatable camera above screen, by photographic head photographed screen forward image, in this screen forward image Typically can comprise the facial image of active user, by the facial image of active user is identified, available active user Head pose, and then obtain active user's view direction (chin that can be regarded as active user's head refers to vertexal side To), finally, active user's view direction projecting direction on mobile terminal screen can be defined as the display side of current picture To.
Additionally, also can come according to the testing result of the testing result of screen automatic rotation function and active user's view direction Determine the display direction of current picture.Such as, first current picture can be determined according to the testing result of screen automatic rotation function Display direction, but when the testing result of screen automatic rotation function comprising mobile terminal and being in horizontal positioned state, can To determine that according to the testing result of active user's view direction the display direction of current picture triggers as supplementary means, As opened photographic head, the face in the range of detection photographic head, and carry out recognition of face, observe the direction of user's face, by this Mode determines that user watches the angle of mobile phone, further determines that the display direction of current picture.
Step 404, judge that whether the angle of the direction of facial image and the display direction of current picture is more than predetermined angle Threshold value, the most then perform step 405;Otherwise, execution step 403 is returned.
Step 405, control current picture rotate, so that the display direction of the direction of facial image and current picture Angle is less than or equal to predetermined angle threshold value.
Exemplary, the display schematic diagram of a kind of postrotational picture that Fig. 5 provides for the embodiment of the present invention two, if according to The display direction of current picture determined by the testing result of active user's view direction is not the length direction of mobile terminal, It not the width of mobile terminal, but when there is the direction of certain angle with the length direction of mobile terminal, in Fig. 5 The display direction 501 of current picture, there is angle α with the vertical direction of mobile terminal in the direction, now, controls current picture and enter Row rotates, so that the direction 502 of facial image is consistent with the display direction 501 of current picture.It is understood that in order to ensure Content in current picture is not lost and in order to make current picture obtain maximizing display, can carry out current picture reasonably Scaling.Certainly, if the edge content of current picture is inessential, then former ratio rotation can be carried out, specifically can be by user according to individual Hobby is configured.
The embodiment of the present invention two, on the basis of above-described embodiment, adds display direction relevant determining current picture Step, reasonably determines the display direction of current picture, and rotates the direction of the facial image in picture to this display direction, Watch picture for user further and bring facility, thus promote Consumer's Experience.
Embodiment three
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 6 provides for the embodiment of the present invention three, the present embodiment It is optimized based on above-described embodiment, in the present embodiment, " side of facial image will be determined according to facial feature information To " it is optimized for: obtain the left eye position of face, right eye position and face position in facial feature information;Determine left eye position Point midway with right eye position line;The direction that face position is pointed to described point midway is defined as the side of facial image To.
Accordingly, the method for the present embodiment comprises the steps:
Step 601, judge whether current picture comprises facial image, the most then perform step 602;Otherwise, stream is terminated Journey.
Step 602, the facial feature information of acquisition facial image.
In step 603, acquisition facial feature information, the left eye position of face, right eye position and face position, determine a left side Eye position and the point midway of right eye position line, be defined as facial image by the direction that described point midway is pointed in face position Direction.
Exemplary, a kind of facial image direction that Fig. 7 provides for the embodiment of the present invention three determines schematic diagram, such as Fig. 7 institute Showing, in facial image, the line two-by-two of the left eye position of face, right eye position and face position constitutes an inverted triangle Geometric figure, the direction that face position can be pointed to described point midway is defined as the direction of facial image.
Step 604, the gravity sensor reading mobile terminal and/or gyro data, open front-facing camera, obtains screen Curtain forward image, determines the display direction of current picture.
If the direction of step 605 facial image is more than predetermined angle threshold value, then with the angle of the display direction of current picture Control current picture to rotate, so that the direction of facial image and the angle of the display direction of current picture are less than or equal to pre- If angle threshold.
The step being defined as facial image direction, on the basis of above-described embodiment, has been carried out carefully by the embodiment of the present invention three Change, by the analysis of inverted triangle figure being determined accurately the direction of facial image, the rotation of further conservative control picture.
Embodiment four
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 8 provides for the embodiment of the present invention four, the present embodiment It is optimized based on above-described embodiment, is particularly suited in current picture comprising the application scenarios of multiple face, the method Comprise the steps:
Step 801, comprise time facial image and facial image comprise multiple faces in current picture being detected, obtain The facial feature information of multiple faces in facial image.
Step 802, facial feature information according to multiple faces in facial image determine the direction of every face, will be with The direction of the immediate face in direction of other faces is defined as the direction of facial image.
Exemplary, when comprising multiple faces in facial image, the direction difference of general most of faces is less, may Indivedual face directions are relatively big with the direction difference of other faces, for every face, can calculate respectively the direction of this face and its The angle in his face direction, and calculate angle meansigma methods, the direction of face corresponding for minimum angle meansigma methods is determined for people The direction of face image.The purpose of this step is that the direction by most of faces is defined as the direction of facial image, above-mentioned calculating Method is only used as schematically illustrating, and the present embodiment is also not especially limited.
If the direction of step 803 facial image is more than predetermined angle threshold value, then with the angle of the display direction of current picture Control current picture to rotate, so that the direction of facial image and the angle of the display direction of current picture are less than or equal to pre- If angle threshold.
The situation comprising multiple faces in facial image, on the basis of above-described embodiment, is carried out by the embodiment of the present invention Refinement, makes the direction of most of face corresponding with the view direction of user, the rotation of further conservative control picture.
Embodiment five
The schematic flow sheet of the method for controlling rotation of a kind of picture that Fig. 9 provides for the embodiment of the present invention five, the present embodiment It is optimized based on above-described embodiment, is particularly suited in current picture comprising the application scenarios of multiple face, the method Comprise the steps:
Step 901, comprise time facial image and facial image comprise multiple faces in current picture being detected, obtain The facial feature information of target face.
Wherein, described target face is the face or the face of face area maximum that definition is the highest.
Exemplary, when picture comprises multiple faces, face that definition is the highest or the maximum people of face area Face is sockdolager's face, is typically regarded as topmost personage in picture, is also the main viewing object of active user, institute So that the facial feature information of target face can be obtained for the direction determining facial image.
Step 902, facial feature information according to target face determine the direction of facial image.
Exemplary, the direction of target face can be determined according to the facial feature information of target face, and by target face Direction be defined as the direction of facial image.
If the direction of step 903 facial image is more than predetermined angle threshold value, then with the angle of the display direction of current picture Control current picture to rotate, so that the direction of facial image and the angle of the display direction of current picture are less than or equal to pre- If angle threshold.
The situation comprising multiple faces in facial image, on the basis of above-described embodiment, is carried out by the embodiment of the present invention Refinement, makes the direction of sockdolager's face and the view direction of user corresponding, the rotation of further conservative control picture.
Embodiment six
The structured flowchart of the rotating control assembly of a kind of picture that Figure 10 provides for the embodiment of the present invention six, such as Figure 10 institute Showing, this device includes that facial feature information acquisition module 1001, facial image direction determine module 1002 and picture Spin Control Module 1003.
Wherein, facial feature information acquisition module 1001, in time comprising facial image in current picture being detected, obtains Take the facial feature information of described facial image;Facial image direction determines module 1002, for believing according to described face feature Breath determines the direction of described facial image;Picture Spin Control module 1003, is used in the direction of described facial image with described When the angle of the display direction of current picture is more than predetermined angle threshold value, controls described current picture and rotate, so that described The direction of facial image is less than or equal to described predetermined angle threshold value with the angle of the display direction of described current picture.
The rotating control assembly of picture that the embodiment of the present invention six provides, can automatically control picture and rotate, and allows facial image The angle of display direction of direction and current picture less than or equal to described predetermined angle threshold value, make user manual without oneself Adjust and i.e. can watch the picture comprising face meeting self viewing custom, watch picture for user and bring facility, thus Promote Consumer's Experience.
On the basis of above-described embodiment, this device may also include that picture display direction determines module, for described people When the angle of the display direction of the direction of face image and described current picture is more than predetermined angle threshold value, control described current picture Before rotating, come according to the testing result of screen automatic rotation function and/or the testing result of active user's view direction Determine the display direction of described current picture.
On the basis of above-described embodiment, described picture display direction determine module specifically for: obtain mobile terminal clap The screen forward image taken the photograph;User's facial image according to comprising in described screen forward image determines active user's view direction Testing result;Testing result according to described active user's view direction determines the display direction of described current picture.
On the basis of above-described embodiment, described picture display direction determine module specifically for: obtain described face special The left eye position of face, right eye position and face position in reference breath;Determine described left eye position and described right eye position even The point midway of line;The direction that described face position is pointed to described point midway is defined as the direction of described facial image.
On the basis of above-described embodiment, described facial feature information acquisition module specifically for: current picture detected Face comprises time facial image and described facial image comprise multiple faces, obtain multiple faces in described facial image Facial feature information;Described facial image direction determine module specifically for: according to multiple faces in described facial image Facial feature information determines the direction of every face, is defined as in the direction of face immediate with the direction of other faces described The direction of facial image.
On the basis of above-described embodiment, described facial feature information acquisition module specifically for: current picture detected Face comprises time facial image and described facial image comprise multiple faces, obtain the facial feature information of target face, its In, described target face is the face or the face of face area maximum that definition is the highest;Described facial image direction determines Module specifically for: determine the direction of described facial image according to the facial feature information of described target face.
Embodiment seven
The present embodiment seven provides a kind of terminal, and this terminal can include the rotation of the picture that any embodiment of the present invention provides Rotation control apparatus.Illustrate as a example by mobile terminal below.A kind of mobile terminal that Figure 11 provides for the embodiment of the present invention seven Structural representation, as shown in figure 11, this mobile terminal may include that memorizer 1101, central processing unit (Central Processing Unit, hereinafter referred to as CPU) 1102, Peripheral Interface 1103, RF (Radio Frequency, radio frequency) circuit 1105, voicefrequency circuit 1106, speaker 1111, power management chip 1108, input/output (I/O) subsystem 1109, touch screen 1112, other input/control devicess 1110 and outside port 1104, these parts pass through one or more communication bus or letter Number line 11011 communicates.
It should be understood that diagram mobile terminal 1100 is only an example of mobile terminal, and mobile terminal 1100 can have than the more or less parts shown in figure, can combine two or more parts, or Can have different parts configurations.Various parts shown in figure can include one or more signal processing and/or Special IC realizes in the combination of interior hardware, software or hardware and software.
The mobile terminal being used for carrying out picture Spin Control provided with regard to the present embodiment below is described in detail, should Mobile terminal is as a example by mobile phone.
Memorizer 1101, described memorizer 1101 can be accessed by CPU1102, Peripheral Interface 1103 etc., described memorizer 1101 can include high-speed random access memory, it is also possible to include nonvolatile memory, and the most one or more disks are deposited Memory device, flush memory device or other volatile solid-state parts.
Peripheral Interface 1103, the input of equipment and output peripheral hardware can be connected to CPU1102 by described Peripheral Interface 1103 With memorizer 1101.
I/O subsystem 1109, described I/O subsystem 1109 can be by the input/output peripheral on equipment, such as touch screen 1102 (being equivalent to the screen in above-described embodiment) and other input/control devicess 1110, be connected to Peripheral Interface 1103.I/O Subsystem 1109 can include display controller 11091 and for controlling the one or more of other input/control devicess 1110 Input controller 11092.Wherein, one or more input controllers 11092 receive telecommunications from other input/control devicess 1110 Number or send the signal of telecommunication to other input/control devicess 1110, other input/control devicess 1110 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, stick, click roller.What deserves to be explained is, input controller 11092 can with following any one be connected: the instruction equipment of keyboard, infrared port, USB interface and such as mouse.
Touch screen 1112, described touch screen 1112 is the input interface between user terminal and user and output interface, will Visual output display is to user, and visual output can include figure, text, icon, video etc..
Display controller 11091 in I/O subsystem 1109 receives the signal of telecommunication or to touch screen from touch screen 1112 1112 send the signal of telecommunication.Touch screen 1112 detects the contact on touch screen, the contact conversion that display controller 11091 will detect Mutual for display user interface object on touch screen 1112, i.e. realizes man-machine interaction, and display is on touch screen 1112 User interface object can be the icon of running game, be networked to the icon etc. of corresponding network.What deserves to be explained is, equipment is also Can include that light Mus, light Mus are the touch sensitive surface not showing visual output, or the touch formed by touch screen is sensitive The extension on surface.
RF circuit 1105, is mainly used in the communication setting up mobile phone with wireless network (i.e. network side), it is achieved mobile phone is with wireless The data receiver of network and transmission.Such as receive and dispatch short message, Email etc..Specifically, RF circuit 1105 receives and sends RF Signal, RF signal is also referred to as electromagnetic signal, and RF circuit 1105 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to The signal of telecommunication, and communicated with communication network and other equipment by this electromagnetic signal.RF circuit 1105 can include using In the known circuit of these functions of execution, it includes but not limited to antenna system, RF transceiver, one or more amplifier, tune Humorous device, one or more agitator, digital signal processor, CODEC (COder-DECoder, coder) chipset, user Mark module (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 1106, is mainly used in receiving voice data from Peripheral Interface 1103, this voice data is converted to electricity Signal, and this signal of telecommunication is sent to speaker 1111.
Speaker 1111, for the voice signal received from wireless network by RF circuit 1105 by mobile phone, is reduced to sound Sound also plays this sound to user.
Power management chip 1108, supplies for the hardware connected by CPU1102, I/O subsystem and Peripheral Interface Electricity and power management.
The CPU1102 that the embodiment of the present invention provides can perform to operate as follows:
When comprising facial image in current picture being detected, obtain the facial feature information of described facial image;According to Described facial feature information determines the direction of described facial image;If the direction of described facial image is aobvious with described current picture Show that the angle in direction more than predetermined angle threshold value, then controls described current picture and rotates, so that the side of described facial image It is less than or equal to described predetermined angle threshold value to the angle of the display direction of described current picture.
Rotating control assembly and the mobile terminal of the picture provided in above-described embodiment can perform any embodiment of the present invention The method of controlling rotation of the picture provided, possesses the execution corresponding functional module of the method and beneficial effect.Not in above-mentioned reality Execute the ins and outs of detailed description in example, can be found in the method for controlling rotation of the picture that any embodiment of the present invention is provided.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although by above example, the present invention is carried out It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (13)

1. the method for controlling rotation of a picture, it is characterised in that including:
When comprising facial image in current picture being detected, obtain the facial feature information of described facial image;
The direction of described facial image is determined according to described facial feature information;
If the direction of described facial image is more than predetermined angle threshold value with the angle of the display direction of described current picture, then control Described current picture rotates, so that the angle of the direction of described facial image and the display direction of described current picture is less than Or equal to described predetermined angle threshold value.
Method the most according to claim 1, it is characterised in that if the direction of described facial image and described current picture The angle of display direction is more than predetermined angle threshold value, then control before described current picture rotates, also to include:
Testing result and/or the testing result of active user's view direction according to screen automatic rotation function determine described working as The display direction of front picture.
Method the most according to claim 2, it is characterised in that the described testing result according to active user's view direction is come Determine the display direction of described current picture, including:
Obtain the screen forward image of mobile terminal shooting;
The testing result of active user's view direction is determined according to the user's facial image comprised in described screen forward image;
Testing result according to described active user's view direction determines the display direction of described current picture.
Method the most according to claim 1, it is characterised in that described determine described face according to described facial feature information The direction of image, including:
Obtain the left eye position of face in described facial feature information, right eye position and face position;
Determine described left eye position and the point midway of described right eye position line;
The direction that described face position is pointed to described point midway is defined as the direction of described facial image.
Method the most according to claim 1, it is characterised in that when comprising facial image in current picture being detected, obtains Take the facial feature information of described facial image, including:
Comprise time facial image and described facial image comprise multiple faces in current picture being detected, obtain described face The facial feature information of multiple faces in image;
The described direction determining described facial image according to described facial feature information, including:
Facial feature information according to multiple faces in described facial image determines the direction of every face, will be with other faces The direction of the immediate face in direction be defined as the direction of described facial image.
Method the most according to claim 1, it is characterised in that when comprising facial image in current picture being detected, obtains Take the facial feature information of described facial image, including:
Comprise time facial image and described facial image comprise multiple faces in current picture being detected, obtain target face Facial feature information, wherein, described target face is face that definition is the highest or the maximum face of face area;
The described direction determining described facial image according to described facial feature information, including:
Facial feature information according to described target face determines the direction of described facial image.
7. the rotating control assembly of a picture, it is characterised in that including:
Facial feature information acquisition module, in time comprising facial image in current picture being detected, obtains described face figure The facial feature information of picture;
Facial image direction determines module, for determining the direction of described facial image according to described facial feature information;
Picture Spin Control module, for big with the angle of the display direction of described current picture in the direction of described facial image When predetermined angle threshold value, control described current picture and rotate, so that the direction of described facial image and described current picture The angle of the display direction in face is less than or equal to described predetermined angle threshold value.
Device the most according to claim 7, it is characterised in that also include:
Picture display direction determines module, for the folder in the direction of described facial image Yu the display direction of described current picture When angle is more than predetermined angle threshold value, control before described current picture rotates, according to the detection of screen automatic rotation function The testing result of result and/or active user's view direction determines the display direction of described current picture.
Device the most according to claim 8, it is characterised in that described picture display direction determine module specifically for:
Obtain the screen forward image of mobile terminal shooting;
The testing result of active user's view direction is determined according to the user's facial image comprised in described screen forward image;
Testing result according to described active user's view direction determines the display direction of described current picture.
Device the most according to claim 7, it is characterised in that described picture display direction determine module specifically for:
Obtain the left eye position of face in described facial feature information, right eye position and face position;
Determine described left eye position and the point midway of described right eye position line;
The direction that described face position is pointed to described point midway is defined as the direction of described facial image.
11. devices according to claim 7, it is characterised in that described facial feature information acquisition module specifically for:
Comprise time facial image and described facial image comprise multiple faces in current picture being detected, obtain described face The facial feature information of multiple faces in image;
Described facial image direction determine module specifically for:
Facial feature information according to multiple faces in described facial image determines the direction of every face, will be with other faces The direction of the immediate face in direction be defined as the direction of described facial image.
12. devices according to claim 7, it is characterised in that described facial feature information acquisition module specifically for:
Comprise time facial image and described facial image comprise multiple faces in current picture being detected, obtain target face Facial feature information, wherein, described target face is face that definition is the highest or the maximum face of face area;
Described facial image direction determine module specifically for:
Facial feature information according to described target face determines the direction of described facial image.
13. 1 kinds of mobile terminals, it is characterised in that described mobile terminal is integrated with as described in claim 7-12 any one The rotating control assembly of picture.
CN201610670895.9A 2016-08-15 2016-08-15 A kind of method of controlling rotation of picture, device and mobile terminal Active CN106303029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610670895.9A CN106303029B (en) 2016-08-15 2016-08-15 A kind of method of controlling rotation of picture, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610670895.9A CN106303029B (en) 2016-08-15 2016-08-15 A kind of method of controlling rotation of picture, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106303029A true CN106303029A (en) 2017-01-04
CN106303029B CN106303029B (en) 2019-06-14

Family

ID=57672017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610670895.9A Active CN106303029B (en) 2016-08-15 2016-08-15 A kind of method of controlling rotation of picture, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106303029B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775424A (en) * 2017-01-13 2017-05-31 维沃移动通信有限公司 A kind of screenshotss processing method and mobile terminal
CN107592454A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107733874A (en) * 2017-09-20 2018-02-23 平安科技(深圳)有限公司 Information processing method, device, computer equipment and storage medium
CN107948522A (en) * 2017-12-04 2018-04-20 广州视源电子科技股份有限公司 Camera chooses method, apparatus, terminal and the storage medium of shooting personage's head portrait
CN108268765A (en) * 2018-01-31 2018-07-10 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN108345779A (en) * 2018-01-31 2018-07-31 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN108536371A (en) * 2018-03-30 2018-09-14 维沃移动通信有限公司 A kind of method for displaying image and terminal
CN108600644A (en) * 2018-07-17 2018-09-28 广东小天才科技有限公司 A kind of photographic method, device and wearable device
CN108965694A (en) * 2018-06-26 2018-12-07 深圳岚锋创视网络科技有限公司 The acquisition methods and portable terminal of gyroscope information for camera rectification
CN109257489A (en) * 2018-08-23 2019-01-22 维沃移动通信有限公司 A kind of display methods and mobile terminal
CN109587390A (en) * 2017-09-29 2019-04-05 腾讯科技(深圳)有限公司 Picture rendering method, picture rendering device and storage medium
CN109634418A (en) * 2018-12-14 2019-04-16 维沃移动通信有限公司 A kind of display methods and terminal
CN111158563A (en) * 2019-12-11 2020-05-15 青岛海信移动通信技术股份有限公司 Electronic terminal and picture correction method
CN111417918A (en) * 2017-11-30 2020-07-14 汤姆逊许可公司 Method of rendering a current image on a head mounted display, corresponding apparatus, computer program product and computer readable carrier medium
CN111464698A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for controlling electronic equipment
CN113792354A (en) * 2021-09-09 2021-12-14 广东金赋科技股份有限公司 Method for improving terminal security and terminal
CN113825001A (en) * 2020-06-18 2021-12-21 海信视像科技股份有限公司 Panoramic picture browsing method and display device
WO2022236784A1 (en) * 2021-05-13 2022-11-17 Citrix Systems, Inc. Smart screen rotation based on facial analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605965A (en) * 2013-11-25 2014-02-26 苏州大学 Multi-pose face recognition method and device
CN103885611A (en) * 2014-04-22 2014-06-25 锤子科技(北京)有限公司 Method and device for adjusting image
CN103970259A (en) * 2013-01-31 2014-08-06 华为技术有限公司 Screen mode switching method and terminal equipment
US20140347282A1 (en) * 2011-07-07 2014-11-27 Samsung Electronics Co., Ltd. Method and apparatus for displaying view mode using face recognition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140347282A1 (en) * 2011-07-07 2014-11-27 Samsung Electronics Co., Ltd. Method and apparatus for displaying view mode using face recognition
CN103970259A (en) * 2013-01-31 2014-08-06 华为技术有限公司 Screen mode switching method and terminal equipment
CN103605965A (en) * 2013-11-25 2014-02-26 苏州大学 Multi-pose face recognition method and device
CN103885611A (en) * 2014-04-22 2014-06-25 锤子科技(北京)有限公司 Method and device for adjusting image

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775424A (en) * 2017-01-13 2017-05-31 维沃移动通信有限公司 A kind of screenshotss processing method and mobile terminal
CN107592454A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107733874A (en) * 2017-09-20 2018-02-23 平安科技(深圳)有限公司 Information processing method, device, computer equipment and storage medium
WO2019056701A1 (en) * 2017-09-20 2019-03-28 平安科技(深圳)有限公司 Information processing method and apparatus, computer device and storage medium
CN109587390B (en) * 2017-09-29 2021-05-07 腾讯科技(深圳)有限公司 Picture rendering method, picture rendering device and storage medium
CN109587390A (en) * 2017-09-29 2019-04-05 腾讯科技(深圳)有限公司 Picture rendering method, picture rendering device and storage medium
CN111417918B (en) * 2017-11-30 2024-03-26 汤姆逊许可公司 Method for rendering a current image on a head-mounted display, corresponding device, computer program product and computer-readable carrier medium
CN111417918A (en) * 2017-11-30 2020-07-14 汤姆逊许可公司 Method of rendering a current image on a head mounted display, corresponding apparatus, computer program product and computer readable carrier medium
CN107948522B (en) * 2017-12-04 2020-06-26 广州视源电子科技股份有限公司 Method, device, terminal and storage medium for selecting shot person head portrait by camera
CN107948522A (en) * 2017-12-04 2018-04-20 广州视源电子科技股份有限公司 Camera chooses method, apparatus, terminal and the storage medium of shooting personage's head portrait
CN108268765A (en) * 2018-01-31 2018-07-10 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN108345779A (en) * 2018-01-31 2018-07-31 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN108536371A (en) * 2018-03-30 2018-09-14 维沃移动通信有限公司 A kind of method for displaying image and terminal
CN108965694B (en) * 2018-06-26 2020-11-03 影石创新科技股份有限公司 Method for acquiring gyroscope information for camera level correction and portable terminal
CN108965694A (en) * 2018-06-26 2018-12-07 深圳岚锋创视网络科技有限公司 The acquisition methods and portable terminal of gyroscope information for camera rectification
CN108600644A (en) * 2018-07-17 2018-09-28 广东小天才科技有限公司 A kind of photographic method, device and wearable device
CN109257489A (en) * 2018-08-23 2019-01-22 维沃移动通信有限公司 A kind of display methods and mobile terminal
CN109634418A (en) * 2018-12-14 2019-04-16 维沃移动通信有限公司 A kind of display methods and terminal
CN111158563A (en) * 2019-12-11 2020-05-15 青岛海信移动通信技术股份有限公司 Electronic terminal and picture correction method
CN111464698A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for controlling electronic equipment
CN113825001A (en) * 2020-06-18 2021-12-21 海信视像科技股份有限公司 Panoramic picture browsing method and display device
CN113825001B (en) * 2020-06-18 2022-11-29 海信视像科技股份有限公司 Panoramic picture browsing method and display device
WO2022236784A1 (en) * 2021-05-13 2022-11-17 Citrix Systems, Inc. Smart screen rotation based on facial analysis
US20220368793A1 (en) * 2021-05-13 2022-11-17 Citrix Systems, Inc. Smart Screen Rotation Based on Facial Analysis
CN113792354A (en) * 2021-09-09 2021-12-14 广东金赋科技股份有限公司 Method for improving terminal security and terminal

Also Published As

Publication number Publication date
CN106303029B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN106303029A (en) The method of controlling rotation of a kind of picture, device and mobile terminal
US11678734B2 (en) Method for processing images and electronic device
CN109361865B (en) Shooting method and terminal
CN107635095A (en) Shoot method, apparatus, storage medium and the capture apparatus of photo
CN109348135A (en) Photographic method, device, storage medium and terminal device
CN109977775B (en) Key point detection method, device, equipment and readable storage medium
CN105518579A (en) Information processing device and information processing method
CN110263617B (en) Three-dimensional face model obtaining method and device
CN111062276A (en) Human body posture recommendation method and device based on human-computer interaction, machine readable medium and equipment
EP3328062A1 (en) Photo synthesizing method and device
CN110827195B (en) Virtual article adding method and device, electronic equipment and storage medium
CN109634688B (en) Session interface display method, device, terminal and storage medium
CN112581358A (en) Training method of image processing model, image processing method and device
CN111880888A (en) Preview cover generation method and device, electronic equipment and storage medium
CN112135191A (en) Video editing method, device, terminal and storage medium
CN108055461B (en) Self-photographing angle recommendation method and device, terminal equipment and storage medium
CN105979154A (en) AR shooting method and device as well as intelligent terminal
CN106127166A (en) A kind of augmented reality AR image processing method, device and intelligent terminal
WO2018133305A1 (en) Method and device for image processing
CN112860046B (en) Method, device, electronic equipment and medium for selecting operation mode
CN110891181B (en) Live broadcast picture display method and device, storage medium and terminal
CN112449098B (en) Shooting method, device, terminal and storage medium
CN112257594A (en) Multimedia data display method and device, computer equipment and storage medium
CN111445439B (en) Image analysis method, device, electronic equipment and medium
CN114826799A (en) Information acquisition method, device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant