CN104754218B - A kind of Intelligent photographing method and terminal - Google Patents
A kind of Intelligent photographing method and terminal Download PDFInfo
- Publication number
- CN104754218B CN104754218B CN201510104321.0A CN201510104321A CN104754218B CN 104754218 B CN104754218 B CN 104754218B CN 201510104321 A CN201510104321 A CN 201510104321A CN 104754218 B CN104754218 B CN 104754218B
- Authority
- CN
- China
- Prior art keywords
- image
- facial image
- positional information
- optimal imaging
- camera
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000001815 facial effect Effects 0.000 claims abstract description 137
- 238000003384 imaging method Methods 0.000 claims abstract description 104
- 238000013508 migration Methods 0.000 claims abstract description 54
- 230000005012 migration Effects 0.000 claims abstract description 54
- 238000005516 engineering process Methods 0.000 description 9
- 210000003128 head Anatomy 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000013507 mapping Methods 0.000 description 5
- 230000009885 systemic effect Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 210000000056 organ Anatomy 0.000 description 2
- 210000001747 pupil Anatomy 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
Landscapes
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of Intelligent photographing method and terminal, wherein method includes:Image preview instruction is received, obtains the preview image containing facial image;The migration imagery information between positional information and default optimal imaging positional information of the facial image in the preview image is obtained, the migration imagery information includes the offset and offset direction between the positional information of the facial image and the optimal imaging positional information;According to the migration imagery information, control the camera to be rotated, optimal imaging position is reached to adjust position of the facial image in the preview image.Using the present invention can adjust automatically facial image there is optimal imaging position in photo, reduce beat rate by mistake, save electric power resource, improve Consumer's Experience.
Description
Technical field
The present invention relates to shooting technology field, more particularly to a kind of Intelligent photographing method and terminal.
Background technology
With the continuous development of the communication technology, the function of mobile terminal is increasingly abundant, wherein, the work(of taking pictures on mobile terminal
Can so that user, which does not have to the extra camera that carries, also can whenever and wherever possible record and share the animation of oneself and scape beautiful at one's side
Thing, it is deep to be liked by users.In the application scenarios of reality, when user wants to take pictures, in order that portrait of taking pictures is more beautiful
See, often constantly to adjust the distance between mobile terminal and user's face and angle with obtain portrait in photo it is optimal into
Image position.Cause portrait mobile terminal and user's face when photo has optimal imaging position because user self can not control
Distance and angle, user generally will repeatedly be shot during this constantly adjusted, with choose best results that
Photo is opened, this process is cumbersome, tediously long, wastes user time, and waste terminal electric power resource.
The content of the invention
The embodiments of the invention provide a kind of Intelligent photographing method and terminal, can adjust automatically facial image have in photo
There is optimal imaging position, reduce beat rate by mistake, save electric power resource, improve Consumer's Experience.
The embodiments of the invention provide a kind of Intelligent photographing method, methods described includes:
Image preview instruction is received, obtains the preview image containing facial image;
Obtain positional information of the facial image in the preview image and default optimal imaging positional information it
Between migration imagery information, positional information and the optimal imaging position of the migration imagery information including the facial image
Offset and offset direction between information;
According to the migration imagery information, the camera is controlled to be rotated, to adjust the facial image described
Position in preview image reaches optimal imaging position.
Accordingly, the embodiments of the invention provide a kind of terminal, the terminal to include:
Preview image acquisition module, for receiving image preview instruction, obtain the preview image containing facial image;
Offset information acquisition module, for obtaining positional information of the facial image in the preview image with presetting
Optimal imaging positional information between migration imagery information, the position of the migration imagery information including the facial image is believed
Offset and offset direction between breath and the optimal imaging positional information;
Camera adjusting module, for according to the migration imagery information, controlling the camera to be rotated, with adjustment
Position of the facial image in the preview image reaches optimal imaging position.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, and described in acquisition
Migration imagery information between positional information and default optimal imaging positional information of the facial image in the preview image,
The migration imagery information includes the offset between the positional information of the facial image and the optimal imaging positional information
And offset direction, and then according to the migration imagery information, control the camera to be rotated, to adjust the facial image
Position in the preview image reaches optimal imaging position, can adjust automatically facial image there is optimal imaging in photo
Position, beat rate by mistake is reduced, saves electric power resource, improves Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of Intelligent photographing method schematic flow sheet provided in an embodiment of the present invention;
Fig. 2 is another Intelligent photographing method schematic flow sheet provided in an embodiment of the present invention;
Fig. 3 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention;
Fig. 4 is camera adjusting module structural representation provided in an embodiment of the present invention;
Fig. 5 is positional information method for expressing schematic diagram provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
In the specific implementation, the terminal mentioned in the embodiment of the present invention includes but is not limited to:Smart mobile phone (such as Android
Mobile phone, IOS mobile phones), tablet personal computer, notebook computer, palm PC, the electronic equipment such as wearable intelligent equipment.Need to illustrate
, the main application scenarios of the embodiment of the present invention are:When carrying out self-timer using the terminal with rotating camera, adjust automatically
The angle of camera is so that the facial image of user keeps optimal imaging position in photo.
A kind of Intelligent photographing method provided in an embodiment of the present invention and terminal are carried out below in conjunction with Fig. 1 to Fig. 5 specific
Description.
It is a kind of Intelligent photographing method schematic flow sheet provided in an embodiment of the present invention referring to Fig. 1, intelligence as depicted
Photographic method may include following steps:
S101, image preview instruction is received, obtains the preview image containing facial image.
In the specific implementation, image preview instruction, which can be terminal, starts acquiescence triggering when photograph is applied, for example, starting eventually
End camera starts to find a view, and can be considered as terminal and receive image preview instruction;Can also be input unit of the user by terminal
(such as physical keyboard, touch-screen) triggering, such as terminal is supplied to the option of user's adjust automatically facial image position, Yong Hukai
When opening the option, it is considered as and receives image preview instruction, now, obtains the preview graph containing facial image that camera photographs
Picture.
S102, obtain positional information of the facial image in the preview image and believe with default optimal imaging position
Migration imagery information between breath, the migration imagery information include the positional information of the facial image and the optimal imaging
Offset and offset direction between positional information.
Terminal can provide a user the function of optimal imaging position of the self-defined facial image in preview image, therefore use
Family can set optimal imaging position by self wish;The optimal imaging position of acquiescence, example can be also set in terminal system in advance
Such as, it is generally recognized that golden section (is defined as:One line segment is divided into two parts, the ratio of larger part and total length be equal to compared with
Small part and the ratio of major part, the ratio are approximately 0.618) to have strict proportionality and artistry, are contained rich
Rich aesthetic values, therefore, the region where golden section line that can be long or wide by preview image is arranged to facial image pre-
Look at the optimal imaging position in image.
By face recognition technology, the facial image in preview image is detected, and gathers characteristic point on facial image and exists
Positional information in the preview image.Due to caused difference when with expression of individual difference and face of face, if
The characteristic point of use is excessive, it is difficult to make each characteristic point can be with default optimal imaging location matches, it is therefore possible to use few
The positional information of several characteristic points represents the positional information of facial image, for example, using prenasale in face positional information or
Positional information of the positional information at the midpoint of two inner eye corner point lines as facial image.
Specifically, referring to Fig. 5, Fig. 5 is positional information method for expressing schematic diagram provided in an embodiment of the present invention, can respectively with
In preview image it is long and wide where straight line as X-axis and Y-axis, using preview image lower-left corner points as origin, then facial image
Positional information and optimal imaging positional information can be expressed as:In preview image the coordinate value of each characteristic point of facial image and
Corresponding each default optimal imaging position coordinate value of characteristic point.
In above-mentioned coordinate system, positional information of the facial image in preview image and default optimal imaging are obtained
Migration imagery information between positional information, the coordinate value for calculating each characteristic point of facial image and default each characteristic point can be passed through
Optimal imaging position coordinate value between difference obtain.If for example, as shown in figure 5, coordinate value representative with prenasale
The positional information of face image, the coordinate value of prenasale is (1,3) in the preview image currently got, and default prenasale is most
The coordinate value of good image space is (3,2), then migration imagery information is (- 2,1);Wherein, the absolute value of each coordinate direction difference
For offset, in this example 1 and 2 be respectively facial image in X-axis and Y-axis relative to default optimal imaging position skew
Amount.X-direction difference is negative, then represent in the X-axis direction current face picture position relative to the inclined of optimal imaging position
Move direction to the left (X-axis negative value direction), Y direction difference is positive number, then represent in the Y-axis direction current face's image relative to
The offset direction of optimal imaging position is upward (Y-axis is on the occasion of direction), if camera turns using self-timer mode, camera
Dynamic direction should be turn left in the X-axis direction (X-axis negative value direction), be rotated up that (Y-axis is on the occasion of side in the Y-axis direction
To).
S103, according to the migration imagery information, control the camera to be rotated, existed with adjusting the facial image
Position in the preview image reaches optimal imaging position.
In the specific implementation, after step S102 gets migration imagery information, then it can be calculated and taken the photograph according to migration imagery information
As head-turned angle value and the rotation direction of camera is determined, then startup camera, which carries out rotation, makes facial image in preview
Position in image reaches optimal imaging position.For example, in step S102 examples, migration imagery information is (- 1,2),
Systemic presupposition facial image coordinate value change of scale value, camera need to rotate 10 degree, if terminal is using self-timer mode, root
According to migration imagery information, it is known that 10 degree need to be rotated to negative value direction in X-direction camera, need to be to just in Y direction camera
It is worth direction and rotates 20 degree.
In another alternative embodiment, after step S103 is performed, methods described also includes:Prompt message is sent, institute
Prompt message is stated to prompt facial image described in user to reach optimal imaging position, so that user is according to the prompt message
Input photographing instruction is taken pictures.
The prompt message includes but is not limited to:Word message prompting, signal lamp prompting and voice broadcast prompting.Terminal into
Work(sends prompt message to user after facial image is adjusted to optimum position, can be used whether family does not have to moment concern camera
It has been stopped operating that, whether facial image has arrived at optimal imaging position, more hommization.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, and described in acquisition
Migration imagery information between positional information and default optimal imaging positional information of the facial image in the preview image,
The migration imagery information includes the offset between the positional information of the facial image and the optimal imaging positional information
And offset direction, and then according to the migration imagery information, control the camera to be rotated, to adjust the facial image
Position in the preview image reaches optimal imaging position, can adjust automatically facial image there is optimal imaging in photo
Position, beat rate by mistake is reduced, saves electric power resource, improves Consumer's Experience.
It is another Intelligent photographing method schematic flow sheet provided in an embodiment of the present invention referring to Fig. 2, intelligence as depicted
Energy photographic method may include following steps:
S201, image preview instruction is received, obtains the preview image containing facial image.
In the specific implementation, image preview instruction, which can be terminal, starts acquiescence triggering when photograph is applied, for example, starting eventually
End camera starts to find a view, and can be considered as terminal and receive image preview instruction;Can also be input unit of the user by terminal
(such as physical keyboard, touch-screen) triggering, such as terminal is supplied to the option of user's adjust automatically facial image position, Yong Hukai
When opening the option, it is considered as and receives image preview instruction, now, obtains the preview containing facial image photographed when preceding camera
Image.
S202, identify the eye image in the preview image.
S203, positional information of the eye image in the preview image is obtained, as the facial image in institute
State the positional information in preview image.
In the specific implementation, by face recognition technology, the facial image in preview image is detected, and gather facial image
Positional information of the upper characteristic point in the preview image.Due to generation when with expression of individual difference and face of face
Difference, according to characteristic point it is excessive, it is difficult to make each characteristic point can with default optimal imaging location matches, therefore,
The positional information of a small number of characteristic points can be used to represent the positional information of facial image.
The eyes are the windows of the mind, is one of most important organ on face, whether eyes are seen in a character image
Get up it is attractive in appearance, have god, there is material impact to the aesthetics of whole character image.Therefore, can be identified by face recognition technology
Eye image, using positional information of positional information of the eye image in preview image as facial image so that eyes figure
As having optimal imaging position in preview image.For example, it can use left eye either in the pupil of right eye or two eyes
Positional information of the positional information at the midpoint of canthus line as facial image.
S204, obtain positional information of the facial image in the preview image and believe with default optimal imaging position
Migration imagery information between breath, the migration imagery information include the positional information of the facial image and the optimal imaging
Offset and offset direction between positional information.
In the specific implementation, terminal can provide a user optimal imaging position of the self-defined facial image in preview image
Function, therefore user can set optimal imaging position by self wish;The optimal of acquiescence can be also set in terminal system in advance
Image space, such as, it is generally recognized that golden section (is defined as:One line segment is divided into two parts, larger part and total length
Ratio is equal to less part and the ratio of major part, and the ratio is approximately 0.618) to have strict proportionality and art
Property, be richly stored with aesthetic values, and therefore, the region where golden section line that can be long or wide by preview image is set as people
Optimal imaging position of the face image in preview image.
Referring to Fig. 5, Fig. 5 is positional information method for expressing schematic diagram provided in an embodiment of the present invention, respectively with preview image
Middle length and it is wide where straight line as X-axis and Y-axis, using preview image lower-left corner points as origin, then the positional information of facial image
It can be expressed as with optimal imaging positional information:The coordinate value of each characteristic point of facial image and corresponding each in preview image
The default optimal imaging position coordinate value of characteristic point.
In above-mentioned coordinate system, positional information of the facial image in preview image and default optimal imaging are obtained
Migration imagery information between positional information, the coordinate value for calculating each characteristic point of facial image and default each characteristic point can be passed through
Optimal imaging position coordinate value between difference obtain.If for example, as shown in figure 5, coordinate value representative with prenasale
The positional information of face image, the coordinate value of prenasale is (1,3) in the preview image currently got, default optimal imaging
The coordinate value of position is (3,2), then migration imagery information is (- 2,1);Wherein, the absolute value of each coordinate direction difference is skew
Amount, in this example the absolute value 2 and 1 of coordinate value be respectively facial image in X-axis and Y-axis relative to default optimal imaging position
The offset put;X-direction difference is negative, then represent in the X-axis direction current face picture position relative to optimal imaging
To the left (X-axis negative value direction), Y direction difference is positive number for the offset direction of position, then represents current face's figure in the Y-axis direction
As the offset direction relative to optimal imaging position upwards (Y-axis is on the occasion of direction).
S205, according to the offset, calculate the facial image and be moved to camera described in the optimal imaging position
Angle of rotation angle value.
In the specific implementation, the angle of facial image Moving Unit offset camera rotation can be pre-set, therefore, by people
Face image is adjusted to optimal imaging position, and shooting head-turned angle value is equal to facial image Moving Unit offset camera and turned
Dynamic angle face image is multiplied by offset.Can also directly prestore reflecting between offset and camera angle of rotation angle value in the terminal
Relation is penetrated, therefore, when terminal gets the offset, directly can be searched according to the offset corresponding in mapping table
Angle of rotation angle value.
Further, this step specifically includes:According to the offset, calculate the facial image be moved to it is described optimal
The pixel quantity moved needed for image space;The shooting according to the pixel quantity and the preview image Moving Unit pixel
The angle value rotated needed for head, calculates the angle of rotation angle value.
In actual implementation process, each offset of facial image and the mapping relations of pixel quantity can be pre-set, and
Same model camera is obtained by testing, same model terminal body, preview image Moving Unit pixel, camera is required to be turned
Dynamic angle value, therefore can be by obtaining the pixel quantity corresponding with the offset, and be multiplied by using the pixel quantity pre-
The angle value that rotates needed for image Moving Unit pixel camera head is look to calculate angle of rotation angle value.
S206, according to the offset direction, determine the rotation direction of the camera.
As described in step S204, if being used as facial image using coordinate value of the features of human face images in two-dimensional coordinate system
Positional information, then easily respectively by judging the positive and negative situation of the offset of X-axis and Y-axis in migration imagery information, to obtain respectively
Offset direction of the position of facial image relative to optimal imaging position in X-axis and Y-axis in preview image.And if camera is opened
What is opened is self-timer mode, and the rotation direction of usual offset direction and camera is identical.
S207, according to the angle of rotation angle value and the rotation direction, the camera is controlled to be rotated, to adjust
State position of the facial image in the preview image and reach optimal imaging position.
Shooting head-turned angle value and rotation direction are got according to step S205 and step S206, then can start shooting
The rotating function of head is rotated.Such as in step S2045 examples, migration imagery information is (- 1,2), systemic presupposition people
Face image coordinate value change of scale value, camera need to rotate 10 degree, if terminal using self-timer mode, according to migration imagery
Information, it is known that need to rotate 10 degree to negative value direction in X-direction camera, need to be rotated in Y direction camera on the occasion of direction
20 degree.
The embodiment of the present invention, image preview instruction can be received, the preview image containing facial image is obtained, by facial image
Positional information of the positional information in preview image of middle eye image as facial image, and obtain the facial image and exist
The migration imagery information between positional information and default optimal imaging positional information in the preview image, and then according to institute
State the offset in migration imagery information and calculate shooting head-turned angle value, according to the skew side in the migration imagery information
To camera rotation direction is determined, finally according to the angle of rotation angle value and the rotation direction, the camera is controlled to carry out
Rotate, optimal imaging position is reached to adjust position of the facial image in the preview image, can adjust automatically face
Image has optimal imaging position in photo, reduces beat rate by mistake, saves electric power resource, improves Consumer's Experience.
Referring to Fig. 3, a kind of terminal structure schematic diagram provided in an embodiment of the present invention, as shown in the figure terminal can at least wrap
Include:Preview image acquisition module 301, offset information acquisition module 302 and camera adjusting module 303.
Preview image acquisition module 301, for receiving image preview instruction, obtain the preview image containing facial image.
In the specific implementation, image preview instruction, which can be terminal, starts acquiescence triggering when photograph is applied, for example, starting eventually
End camera starts to find a view, and can be considered as preview image acquisition module 301 and receive image preview instruction;Can also be that user passes through
Input unit (such as the physical keyboard, touch-screen) triggering of terminal, such as terminal is supplied to user's adjust automatically facial image position
The option put, when user opens the option, it is considered as preview image acquisition module 301 and receives image preview instruction, now, acquisition is taken the photograph
The preview image containing facial image photographed as head.
Offset information acquisition module 302, for obtain positional information of the facial image in the preview image with
Migration imagery information between default optimal imaging positional information, the migration imagery information include the position of the facial image
Confidence ceases the offset and offset direction between the optimal imaging positional information.
Terminal can provide a user the function of optimal imaging position of the self-defined facial image in preview image, therefore use
Family can set optimal imaging position by self wish;The optimal imaging position of acquiescence can be also set in terminal system in advance.Example
Such as, it is generally recognized that golden section (is defined as:One line segment is divided into two parts, the ratio of larger part and total length be equal to compared with
Small part and the ratio of major part, the ratio are approximately 0.618) to have strict proportionality and artistry, are contained rich
Rich aesthetic values, therefore, the region where golden section line that can be long or wide by preview image is arranged to facial image pre-
Look at the optimal imaging position in image.
Offset information acquisition module 302 detects the facial image in preview image, and gather by face recognition technology
Positional information of the characteristic point in the preview image on facial image.Because the individual difference and face of face are with expression
When caused difference, according to characteristic point it is excessive, it is difficult to make each characteristic point can be with default optimal imaging position
Match somebody with somebody, it is therefore possible to use the positional information of a small number of characteristic points represents the positional information of facial image, for example, using in face
Positional information of the positional information at the midpoint of the positional information of prenasale or two inner eye corner point lines as facial image.
Specifically, referring to Fig. 5, Fig. 5 is positional information method for expressing schematic diagram provided in an embodiment of the present invention, can respectively with
In preview image it is long and wide where straight line as X-axis and Y-axis, using preview image lower-left corner points as origin, then facial image
Positional information and optimal imaging positional information can be expressed as:In preview image the coordinate value of each characteristic point of facial image and
Corresponding each default optimal imaging position coordinate value of characteristic point.
In above-mentioned coordinate system, offset information acquisition module 302 obtains position of the facial image in preview image
Migration imagery information between information and default optimal imaging positional information, can be by calculating the seat of each characteristic point of facial image
Difference between scale value and the optimal imaging position coordinate value of default each characteristic point obtains.If for example, as shown in figure 5, with
The coordinate value of prenasale represents the positional information of facial image, and the coordinate value of prenasale is in the preview image currently got
(1,3), the coordinate value of default prenasale optimal imaging position is (3,2), then migration imagery information is (- 2,1);Wherein, respectively
The absolute value of coordinate direction difference is offset, in this example 2 and 1 be respectively facial image in X-axis and Y-axis relative to default
Optimal imaging position offset;X-direction difference is negative, then represents current face picture position phase in the X-axis direction
For optimal imaging position offset direction to the left (X-axis negative value direction), Y direction difference is positive number, then represent in Y direction
Be taken in before facial image relative to optimal imaging position offset direction upwards (Y-axis is on the occasion of direction), if camera using
Self-timer mode, then the rotation direction of camera should be turn left in the X-axis direction (X-axis negative value direction), in the Y-axis direction
It is rotated up (Y-axis is on the occasion of direction).
Camera adjusting module 303, for according to the migration imagery information, controlling the camera to be rotated, with
Adjust position of the facial image in the preview image and reach optimal imaging position.
In the specific implementation, after offset information acquisition module 302 gets migration imagery information, camera adjusting module
303 can calculate shooting head-turned angle value according to migration imagery information and determine the rotation direction of camera, then start
Camera carries out rotating the position arrival optimal imaging position for making facial image in preview image.For example, obtained in offset information
In the example of modulus block 302, migration imagery information is (- 1,2), systemic presupposition facial image coordinate value change of scale value, is taken the photograph
As head need to rotate 10 degree, if terminal using self-timer mode, according to migration imagery information, it is known that in X-direction camera
10 degree need to be rotated to negative value direction, 20 degree need to be rotated on the occasion of direction in Y direction camera.
It is further alternative, referring to Fig. 4, camera adjusting module structural representation provided in an embodiment of the present invention, such as scheme
Camera adjustment mould 303 in shown the present embodiment may particularly include:Rotational angle determining unit 3301, rotation direction determine
Unit 3302 and camera rotating unit 3303.
Rotational angle determining unit 3301, for according to the offset, determine the facial image be moved to it is described most
Head-turned angle value is imaged described in good image space.
In the specific implementation, the angle of facial image Moving Unit offset camera rotation, rotational angle can be pre-set
Determining unit 3301 by calculate facial image Moving Unit offset camera rotate angle face image be multiplied by offset come
Obtain shooting head-turned angle value.The mapping that can also directly prestore in the terminal between offset and camera angle of rotation angle value
Relation, therefore, when offset information acquisition module 302 gets the offset, rotational angle determining unit 3301 can direct basis
The offset searches angle of rotation angle value corresponding in mapping table.
Rotation direction determining unit 3302, for according to the offset direction, determining the rotation direction of the camera.
In the specific implementation, example in such as offset information acquisition module 302, if being sat with features of human face images in two dimension
Positional information of the coordinate value as facial image in mark system, then rotation direction determining unit 3302 is easily respectively by judging to be imaged
The positive and negative situation of the offset of X-axis and Y-axis in offset information, come obtain respectively the position of facial image in preview image relative to
Offset direction of the optimal imaging position in X-axis and Y-axis.And if camera open be self-timer mode, usual offset direction with
The rotation direction of camera is identical.
Camera rotating unit 3303, for according to the angle of rotation angle value and the rotation direction, controlling the shooting
Head is turned.
Further alternative, the rotational angle determining unit 3301 can be specifically used for:
According to the offset, calculate the facial image and be moved to the pixel count moved needed for the optimal imaging position
Amount;The angle value rotated according to needed for camera described in the pixel quantity and the preview image Moving Unit pixel, calculate
The angle of rotation angle value.
In actual implementation process, each offset of facial image and the mapping relations of pixel quantity can be pre-set, and
Same model camera is obtained by testing, same model terminal body, preview image Moving Unit pixel, camera is required to be turned
Dynamic angle value, therefore the pixel quantity corresponding with the offset can be obtained by rotational angle determining unit 3301, and
The angle value that is rotated needed for preview image Moving Unit pixel camera head is multiplied by using the pixel quantity to calculate angle of rotation angle value.
In another alternative embodiment, the terminal also includes:Eye image identification module 304, it is described pre- for identifying
The eye image look in image;Position information acquisition module 305, for obtaining the eye image in the preview image
Positional information, as positional information of the facial image in the preview image.
In the specific implementation, eye image identification module 304 detects the face in preview image by face recognition technology
Image, and gather positional information of the characteristic point in the preview image on facial image.Individual difference and people due to face
Caused difference of face when with expression, according to characteristic point it is excessive, it is difficult to make each characteristic point can with it is default most
Good image space matching, it is therefore possible to use the positional information of a small number of characteristic points represents the positional information of facial image.
The eyes are the windows of the mind, is one of most important organ on face, whether eyes are seen in a character image
Get up it is attractive in appearance, have god, there is material impact to the aesthetics of whole character image.Therefore, eye image identification module 304 can lead to
Cross face recognition technology identification eye image, position of the position information acquisition module 305 using eye image in preview image
Positional information of the information as facial image so that eye image has optimal imaging position in preview image.For example, it can adopt
The position of facial image is used as by the use of the positional information at the left eye either midpoint of the pupil of right eye or two eyes inner eye corner lines
Confidence ceases.
In another alternative embodiment, the terminal also includes:Nformation alert module 306, for sending prompt message, institute
Prompt message is stated to prompt facial image described in user to reach optimal imaging position, so that user is according to the prompt message
Input photographing instruction is taken pictures.
The prompt message includes but is not limited to:Word message prompting, signal lamp prompting and voice broadcast prompting.Terminal into
Work(adjusts facial image to optimum position, and nformation alert module 306 sends prompt message to user, and family not used time can be used
Carve whether concern camera has stopped operating, whether facial image has arrived at optimal imaging position, more hommization.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, and described in acquisition
Migration imagery information between positional information and default optimal imaging positional information of the facial image in the preview image,
The migration imagery information includes the offset between the positional information of the facial image and the optimal imaging positional information
And offset direction, and then according to the migration imagery information, control the camera to be rotated, to adjust the facial image
Position in the preview image reaches optimal imaging position, can adjust automatically facial image there is optimal imaging in photo
Position, beat rate by mistake is reduced, saves electric power resource, improves Consumer's Experience.
A kind of Intelligent photographing method and terminal disclosed in the embodiment of the present invention are described in detail above, the above is taken off
The interest field for being only present pre-ferred embodiments, the present invention can not being limited with this certainly of dew, therefore according to the present invention
The equivalent variations that claim is made, still belong to the scope that the present invention is covered.
Claims (6)
- A kind of 1. Intelligent photographing method, it is characterised in that including:Receive user and open image preview instruction caused by the option of adjust automatically facial image position, acquisition contains face figure The preview image of picture;Obtain between positional information and default optimal imaging positional information of the facial image in the preview image Migration imagery information, the migration imagery information include the positional information of the facial image and the optimal imaging positional information Between offset and offset direction;According to the migration imagery information, control camera is rotated, to adjust the facial image in the preview image In position reach optimal imaging position, including:According to the offset, calculate the facial image be moved to it is described most preferably into The pixel quantity moved needed for image position;According to camera described in the pixel quantity and the preview image Moving Unit pixel The angle value of required rotation, calculate the angle of rotation angle value;According to the offset direction, the rotation side of the camera is determined To;According to the angle of rotation angle value and the rotation direction, the camera is controlled to be rotated, to adjust the facial image Position in the preview image reaches optimal imaging position;Prompt message is sent, the prompt message is described to prompt facial image described in user to reach optimal imaging position Prompt message is prompted for voice broadcast so that user does not have to whether moment concern camera has stopped operating.
- 2. according to the method for claim 1, it is characterised in that described to obtain the facial image in the preview image Positional information and default optimal imaging positional information between migration imagery information before, in addition to:Provide a user the function of optimal imaging position of the self-defined facial image in preview image, the optimal imaging position Set for user by self wish.
- 3. according to the method for claim 1, it is characterised in that described to obtain the facial image in the preview image Positional information and default optimal imaging positional information between migration imagery information before, in addition to:Identify the eye image in the preview image;Positional information of the eye image in the preview image is obtained, as the facial image in the preview image In positional information.
- A kind of 4. terminal, it is characterised in that including:Preview image acquisition module, it is pre- that image caused by the option of adjust automatically facial image position is opened for receiving user Look at instruction, obtain the preview image containing facial image;Offset information acquisition module, for obtain positional information of the facial image in the preview image with it is default most Migration imagery information between good imaging position information, the positional information of the migration imagery information including the facial image with Offset and offset direction between the optimal imaging positional information;Camera adjusting module, for according to the migration imagery information, control camera to be rotated, to adjust the face Position of the image in the preview image reaches optimal imaging position, wherein, the camera adjusting module includes:Angle of rotation Determining unit is spent, is moved to needed for the optimal imaging position for according to the offset, calculating the facial image and moves Pixel quantity, the angle rotated according to needed for camera described in the pixel quantity and the preview image Moving Unit pixel Value, calculates the angle of rotation angle value;Rotation direction determining unit, for according to the offset direction, determining the camera Rotation direction;Camera rotating unit, for according to the angle of rotation angle value and the rotation direction, controlling the camera to enter Row is rotated, and optimal imaging position is reached to adjust position of the facial image in the preview image;Nformation alert module, for sending prompt message, the prompt message is prompting facial image described in user to reach Optimal imaging position, the prompt message are prompted for voice broadcast so that whether user does not have to moment concern camera stop over Rotation stop is moved.
- 5. terminal according to claim 4, it is characterised in that the terminal is additionally operable to provide a user self-defined face figure As the function of the optimal imaging position in preview image, the optimal imaging position is that user is set by self wish.
- 6. terminal according to claim 4, it is characterised in that the terminal also includes:Eye image identification module, for identifying the eye image in the preview image;Position information acquisition module, for obtaining positional information of the eye image in the preview image, as described Positional information of the facial image in the preview image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510104321.0A CN104754218B (en) | 2015-03-10 | 2015-03-10 | A kind of Intelligent photographing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510104321.0A CN104754218B (en) | 2015-03-10 | 2015-03-10 | A kind of Intelligent photographing method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104754218A CN104754218A (en) | 2015-07-01 |
CN104754218B true CN104754218B (en) | 2018-03-27 |
Family
ID=53593260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510104321.0A Expired - Fee Related CN104754218B (en) | 2015-03-10 | 2015-03-10 | A kind of Intelligent photographing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104754218B (en) |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105007418B (en) * | 2015-07-03 | 2018-07-06 | 广东欧珀移动通信有限公司 | A kind of photographic method and mobile terminal |
CN105205462A (en) | 2015-09-18 | 2015-12-30 | 北京百度网讯科技有限公司 | Shooting promoting method and device |
CN108475107B (en) | 2015-12-24 | 2021-06-04 | 荷兰联合利华有限公司 | Enhanced mirror |
EP3394709B1 (en) * | 2015-12-24 | 2021-02-17 | Unilever Plc. | Augmented mirror |
CN105592267B (en) * | 2015-12-24 | 2018-05-29 | 广东欧珀移动通信有限公司 | Camera control method, photographing control device and camera system |
CN105718887A (en) * | 2016-01-21 | 2016-06-29 | 惠州Tcl移动通信有限公司 | Shooting method and shooting system capable of realizing dynamic capturing of human faces based on mobile terminal |
CN106412417A (en) * | 2016-06-21 | 2017-02-15 | 北京小米移动软件有限公司 | Method and device for shooting images |
CN106408695A (en) * | 2016-08-29 | 2017-02-15 | 神思电子技术股份有限公司 | Apparatus and method for iris identification of intelligent lock |
CN109788227B (en) * | 2017-11-13 | 2021-09-07 | 腾讯科技(深圳)有限公司 | Image processing method and device, equipment and storage medium thereof |
CN107995417B (en) * | 2017-11-16 | 2020-09-22 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
CN109151308A (en) * | 2018-08-30 | 2019-01-04 | 上海与德科技有限公司 | A kind of automatic photographing method, device, server and storage medium |
CN109274894B (en) * | 2018-12-05 | 2021-01-08 | 维沃移动通信有限公司 | Shooting method and shooting device |
CN109788193B (en) * | 2018-12-26 | 2021-03-02 | 武汉市澜创信息科技有限公司 | Camera unit control method |
CN109849799A (en) * | 2018-12-28 | 2019-06-07 | 华勤通讯技术有限公司 | Intelligent vehicle-carried equipment and vehicle |
CN111385392B (en) * | 2018-12-29 | 2021-08-24 | Oppo广东移动通信有限公司 | Face image acquisition method and device, electronic equipment and storage medium |
CN109993143B (en) * | 2019-04-10 | 2021-09-17 | 北京旷视科技有限公司 | Installation method and device of image acquisition equipment, electronic equipment and storage medium |
CN110253590B (en) * | 2019-04-30 | 2021-08-17 | 北京云迹科技有限公司 | Robot turning processing method and device |
CN111385415B (en) * | 2020-03-10 | 2022-03-04 | 维沃移动通信有限公司 | Shooting method and electronic equipment |
CN111327807A (en) * | 2020-03-11 | 2020-06-23 | 维沃移动通信有限公司 | Electronic device |
CN111291737B (en) * | 2020-05-09 | 2020-08-28 | 支付宝(杭州)信息技术有限公司 | Face image acquisition method and device and electronic equipment |
CN112135153A (en) * | 2020-08-24 | 2020-12-25 | 珠海格力电器股份有限公司 | Display device, control method and device thereof, and computer readable medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964870A (en) * | 2009-07-23 | 2011-02-02 | 华晶科技股份有限公司 | Image capture device for correcting image positions and image position correction method |
CN103402058A (en) * | 2013-08-22 | 2013-11-20 | 深圳市金立通信设备有限公司 | Shot image processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3700687B2 (en) * | 2002-07-08 | 2005-09-28 | カシオ計算機株式会社 | Camera device and subject photographing method |
-
2015
- 2015-03-10 CN CN201510104321.0A patent/CN104754218B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964870A (en) * | 2009-07-23 | 2011-02-02 | 华晶科技股份有限公司 | Image capture device for correcting image positions and image position correction method |
CN103402058A (en) * | 2013-08-22 | 2013-11-20 | 深圳市金立通信设备有限公司 | Shot image processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104754218A (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104754218B (en) | A kind of Intelligent photographing method and terminal | |
US11443462B2 (en) | Method and apparatus for generating cartoon face image, and computer storage medium | |
CN104601889B (en) | The photographic method and device of a kind of mobile terminal | |
CN110929651B (en) | Image processing method, image processing device, electronic equipment and storage medium | |
US10671232B2 (en) | Information processing apparatus, and part generating and using method | |
CN104902177B (en) | A kind of Intelligent photographing method and terminal | |
US7715598B2 (en) | Method for detecting facial expressions of a portrait photo by an image capturing electronic device | |
CN105007418B (en) | A kind of photographic method and mobile terminal | |
EP3742333A1 (en) | Image processing method and apparatus, and computer device and storage medium | |
CN104683692B (en) | A kind of continuous shooting method and device | |
CN107347135B (en) | Photographing processing method and device and terminal equipment | |
WO2022001806A1 (en) | Image transformation method and apparatus | |
WO2017206308A1 (en) | Photographing method and apparatus | |
CN112712470A (en) | Image enhancement method and device | |
WO2021120626A1 (en) | Image processing method, terminal, and computer storage medium | |
CN108377339A (en) | A kind of photographic method and camera arrangement | |
CN108933891B (en) | Photographing method, terminal and system | |
CN104754219A (en) | Terminal | |
US20230162529A1 (en) | Eye bag detection method and apparatus | |
US20230353864A1 (en) | Photographing method and apparatus for intelligent framing recommendation | |
CN113741681A (en) | Image correction method and electronic equipment | |
CN110378847A (en) | Face image processing process, device, medium and electronic equipment | |
WO2022227752A1 (en) | Photographing method and device | |
CN112532854B (en) | Image processing method and electronic equipment | |
CN111225151B (en) | Intelligent terminal, shooting control method and computer readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180327 |