CN104754218A - Intelligent photographing method and terminal - Google Patents

Intelligent photographing method and terminal Download PDF

Info

Publication number
CN104754218A
CN104754218A CN201510104321.0A CN201510104321A CN104754218A CN 104754218 A CN104754218 A CN 104754218A CN 201510104321 A CN201510104321 A CN 201510104321A CN 104754218 A CN104754218 A CN 104754218A
Authority
CN
China
Prior art keywords
image
information
facial image
optimal imaging
positional 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
CN201510104321.0A
Other languages
Chinese (zh)
Other versions
CN104754218B (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 CN201510104321.0A priority Critical patent/CN104754218B/en
Publication of CN104754218A publication Critical patent/CN104754218A/en
Application granted granted Critical
Publication of CN104754218B publication Critical patent/CN104754218B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses an intelligent photographing method and a terminal. The method comprises the following steps: receiving an image previewing instruction to obtain a previewed image containing a human face image; obtaining position information of the human face image in the previewed image and imaging offset information between pre-set optimal imaging position information, wherein the imaging offset information comprises position information of the human face image, and an offset amount and an offset direction of the information between the optimal imaging position information; and controlling a camera to rotate according to the imaging offset information so as to adjust the position of the human face image in the previewed image to obtain an optimal imaging position. With the adoption of the intelligent photographing method, the human face in a picture can be automatically adjusted to have the optimal imaging position, so that the wrong photographing rate is reduced, electric power resources are saved and user experience is improved.

Description

A kind of Intelligent photographing method and terminal
Technical field
The present invention relates to shooting technology field, particularly relate to a kind of Intelligent photographing method and terminal.
Background technology
Along with the development of the communication technology, the function of mobile terminal is increasingly abundant, wherein, and the camera function on mobile terminal, make user additionally need not carry camera also can record whenever and wherever possible and share the animation of oneself and beautiful scenery at one's side, dark liking by users.In the application scenarios of reality, when user wants to take pictures, in order to the portrait that makes to take pictures is more attractive in appearance, distance between mobile terminal and user's face and angle often constantly to be adjusted to obtain the optimal imaging position of portrait in photo.Because user oneself cannot control the distance and the angle that make portrait mobile terminal and user's face when photo has optimal imaging position, user usually will repeatedly take in this process of constantly adjustment, to choose that photo of best results, this process is loaded down with trivial details, tediously long, waste user time, and waste terminal electric power resource.
Summary of the invention
Embodiments provide a kind of Intelligent photographing method and terminal, automatically can adjust facial image and there is optimal imaging position in photo, reduce bat rate by mistake, conservation of power resource, improve Consumer's Experience.
Embodiments provide a kind of Intelligent photographing method, described method comprises:
Receive image preview instruction, obtain the preview image containing facial image;
Obtain the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction;
According to described migration imagery information, control described camera and rotate, arrive optimal imaging position to adjust the position of described facial image in described preview image.
Accordingly, embodiments provide a kind of terminal, described terminal comprises:
Preview image acquisition module, for receiving image preview instruction, obtains the preview image containing facial image;
Offset information acquisition module, for obtaining the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction;
Camera adjusting module, for according to described migration imagery information, controls described camera and rotates, and arrives optimal imaging position to adjust the position of described facial image in described preview image.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, and the migration imagery information obtained between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction, and then according to described migration imagery information, control described camera to rotate, optimal imaging position is arrived to adjust the position of described facial image in described preview image, automatically can adjust facial image and there is optimal imaging position in photo, reduce bat rate by mistake, conservation of power resource, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of Intelligent photographing method schematic flow sheet that the embodiment of the present invention provides;
Fig. 2 is the another kind of Intelligent photographing method schematic flow sheet that the embodiment of the present invention provides;
Fig. 3 is a kind of terminal structure schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the camera adjusting module structural representation that the embodiment of the present invention provides;
Fig. 5 is the positional information method for expressing schematic diagram that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, terminal mentioned in the embodiment of the present invention includes but not limited to: the electronic equipment such as smart mobile phone (as Android phone, IOS mobile phone), panel computer, notebook computer, palmtop PC, wearable intelligent equipment.It should be noted that, the main application scenarios of the embodiment of the present invention is: when utilizing the terminal with rotating camera to autodyne, and the angle of adjustment camera keeps optimal imaging position to make the facial image of user in photo automatically.
A kind of Intelligent photographing method provided the embodiment of the present invention below in conjunction with Fig. 1 to Fig. 5 and terminal are specifically described.
See Fig. 1, be a kind of Intelligent photographing method schematic flow sheet that the embodiment of the present invention provides, Intelligent photographing method as shown in the figure can comprise the following steps:
S101, receives image preview instruction, obtains the preview image containing facial image.
In specific implementation, this image preview instruction can be terminal and starts that acquiescence when taking a picture application triggers, and such as, starts terminal camera and starts to find a view, just can be considered that terminal receives image preview instruction; Also can be that user is triggered by the input unit (as physical keyboard, touch-screen) of terminal, such as terminal is supplied to the option that user adjusts facial image position automatically, when user opens this option, be considered as receiving image preview instruction, now, the preview image containing facial image that camera photographs is obtained.
S102, obtain the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction.
Terminal can provide the function of the optimal imaging position of self-defined facial image in preview image to user, therefore user can arrange optimal imaging position by self-wish; The optimal imaging position of acquiescence also can be set in advance in terminal system, such as, it has been generally acknowledged that golden section (is defined as: a line segment is divided into two parts, larger part and the ratio of total length equal less part and the ratio of major part, this ratio is approximately 0.618) there is strict proportionality and artistry, be richly stored with aesthetic values, therefore, the region at golden section line place long or wide for preview image can be set to the optimal imaging position of facial image in preview image.
By face recognition technology, detect the facial image in preview image, and gather the positional information of characteristic point in this preview image on facial image.Due to the individual difference of face and the difference of the generation of face when having expression, according to characteristic point too much, be difficult to make each characteristic point can with the optimal imaging location matches preset, therefore, the positional information of the characteristic point of minority can be adopted to represent the positional information of facial image, such as, the positional information of positional information as facial image of the positional information of prenasale or the mid point of two inner eye corner point lines in face is adopted.
Concrete, see Fig. 5, Fig. 5 is the positional information method for expressing schematic diagram that the embodiment of the present invention provides, can respectively long in preview image and wide place straight line as X-axis and Y-axis, with preview image left lower side angle point for initial point, then the positional information of facial image and optimal imaging positional information can be expressed as: the optimal imaging position coordinate value that in preview image, the coordinate figure of each characteristic point of facial image and corresponding each characteristic point are preset.
In above-mentioned coordinate system, obtain the migration imagery information between the positional information of described facial image in preview image and default optimal imaging positional information, obtain by the difference calculated between the coordinate figure of each characteristic point of facial image and the optimal imaging position coordinate value of default each characteristic point.Such as, as shown in Figure 5, if represent the positional information of facial image with the coordinate figure of prenasale, in the current preview image got, the coordinate figure of prenasale is (1,3) coordinate figure of the prenasale optimal imaging position of, presetting is (3,2), then migration imagery information is (-2,1); Wherein, the absolute value of each coordinate direction difference is side-play amount, 1 and 2 is respectively facial image in X-axis and the Y-axis side-play amount relative to the optimal imaging position of presetting in this example.X-direction difference is negative, then represent current face picture position in the X-axis direction relative to optimal imaging position offset direction left (X-axis negative value direction), Y direction difference is positive number, then represent current face's image in the Y-axis direction relative to optimal imaging position offset direction upwards (Y-axis is on the occasion of direction), if what camera adopted is self-timer mode, then the rotation direction of camera should be turn left in the X-axis direction (X-axis negative value direction), upwards rotates (Y-axis is on the occasion of direction) in the Y-axis direction.
S103, according to described migration imagery information, controls described camera and rotates, and arrives optimal imaging position to adjust the position of described facial image in described preview image.
In specific implementation, after step S102 gets migration imagery information, then can calculate shooting head-turned angle value according to migration imagery information and determine the rotation direction of camera, then start camera and carry out rotating the arrival optimal imaging position, position making facial image in preview image.Such as, in step S102 example, migration imagery information is (-1,2), systemic presupposition facial image coordinate figure change of scale value, camera need rotate 10 degree, if what terminal adopted is auto heterodyne mode, then according to migration imagery information, known X-direction camera need to negative value direction rotate 10 degree, Y direction camera need on the occasion of direction rotation 20 degree.
In another embodiment, after execution step S103, described method also comprises: send information, and described information has reached optimal imaging position in order to point out facial image described in user, takes pictures according to described information input photographing instruction to make user.
This information includes but not limited to: the prompting of Word message prompting, signal lamp and voice broadcast prompting.Whether after facial image is successfully adjusted to optimum position by terminal, send information to user, user can be made to pay close attention to camera without the moment and stop operating, whether facial image has arrived optimal imaging position, hommization more.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, and the migration imagery information obtained between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction, and then according to described migration imagery information, control described camera to rotate, optimal imaging position is arrived to adjust the position of described facial image in described preview image, automatically can adjust facial image and there is optimal imaging position in photo, reduce bat rate by mistake, conservation of power resource, improve Consumer's Experience.
See Fig. 2, be the another kind of Intelligent photographing method schematic flow sheet that the embodiment of the present invention provides, Intelligent photographing method as shown in the figure can comprise the following steps:
S201, receives image preview instruction, obtains the preview image containing facial image.
In specific implementation, this image preview instruction can be terminal and starts that acquiescence when taking a picture application triggers, and such as, starts terminal camera and starts to find a view, just can be considered that terminal receives image preview instruction; Also can be that user is triggered by the input unit (as physical keyboard, touch-screen) of terminal, such as terminal is supplied to the option that user adjusts facial image position automatically, when user opens this option, be considered as receiving image preview instruction, now, the preview image containing facial image that current camera photographs is obtained.
S202, identifies the eye image in described preview image.
S203, obtains the positional information of described eye image in described preview image, as the positional information of described facial image in described preview image.
In specific implementation, by face recognition technology, detect the facial image in preview image, and gather the positional information of characteristic point in this preview image on facial image.Due to the individual difference of face and the difference of the generation of face when having expression, according to characteristic point too much, be difficult to make each characteristic point with the optimal imaging location matches preset, therefore, the positional information of the characteristic point of minority can be adopted to represent the positional information of facial image.
The eyes are the windows of the mind, is one of most important organ on face, and in a character image, whether eyes seem attractive in appearance, have god, have material impact to the aesthetics of whole character image.Therefore, by face recognition technology identification eye image, adopt the positional information of eye image in preview image as the positional information of facial image, make eye image in preview image, have optimal imaging position.Such as, the positional information of positional information as facial image of the pupil of left eye or right eye or the mid point of two eyes inner eye corner lines can be adopted.
S204, obtain the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction.
In specific implementation, terminal can provide the function of the optimal imaging position of self-defined facial image in preview image to user, therefore user can arrange optimal imaging position by self-wish; The optimal imaging position of acquiescence also can be set in advance in terminal system, such as, it has been generally acknowledged that golden section (is defined as: a line segment is divided into two parts, larger part and the ratio of total length equal less part and the ratio of major part, this ratio is approximately 0.618) there is strict proportionality and artistry, be richly stored with aesthetic values, therefore, the region at golden section line place long or wide for preview image can be set to the optimal imaging position of facial image in preview image.
See Fig. 5, Fig. 5 is the positional information method for expressing schematic diagram that the embodiment of the present invention provides, long in preview image and wide place straight line is as X-axis and Y-axis respectively, with preview image left lower side angle point for initial point, then the positional information of facial image and optimal imaging positional information can be expressed as: the optimal imaging position coordinate value that in preview image, the coordinate figure of each characteristic point of facial image and corresponding each characteristic point are preset.
In above-mentioned coordinate system, obtain the migration imagery information between the positional information of described facial image in preview image and default optimal imaging positional information, obtain by the difference calculated between the coordinate figure of each characteristic point of facial image and the optimal imaging position coordinate value of default each characteristic point.Such as, as shown in Figure 5, if represent the positional information of facial image with the coordinate figure of prenasale, in the current preview image got, the coordinate figure of prenasale is (1,3) coordinate figure of the optimal imaging position of, presetting is (3,2), then migration imagery information is (-2,1); Wherein, the absolute value of each coordinate direction difference is side-play amount, and the absolute value 2 and 1 of coordinate figure is respectively facial image in X-axis and the Y-axis side-play amount relative to the optimal imaging position of presetting in this example; X-direction difference is negative, then represent current face picture position in the X-axis direction relative to optimal imaging position offset direction left (X-axis negative value direction), Y direction difference is positive number, then represent current face's image in the Y-axis direction relative to optimal imaging position offset direction upwards (Y-axis is on the occasion of direction).
S205, according to described side-play amount, calculates described facial image and moves to head-turned angle value of making a video recording described in described optimal imaging position.
In specific implementation, the angle that facial image Moving Unit side-play amount camera rotates can be pre-set, therefore, facial image is adjusted to optimal imaging position, the angle face image that shooting head-turned angle value equals the rotation of facial image Moving Unit side-play amount camera is multiplied by side-play amount.The mapping relations that also can directly prestore in the terminal between side-play amount and camera angle of rotation angle value, therefore, when terminal gets this side-play amount, directly can search angle of rotation angle value corresponding with it in mapping relations table according to this side-play amount.
Further, this step specifically comprises: according to described side-play amount, calculates the pixel quantity that described facial image moves to the required movement in described optimal imaging position; The angle value rotated needed for camera according to described pixel quantity and described preview image Moving Unit pixel, calculates described angle of rotation angle value.
In actual implementation process, each side-play amount of facial image and the mapping relations of pixel quantity can be pre-set, and obtain same model camera by experiment, same model terminal body, preview image Moving Unit pixel, the required angle value rotated of camera, therefore by obtaining the pixel quantity corresponding with described side-play amount, and utilizes this pixel quantity to be multiplied by the required angle value rotated of preview image Moving Unit pixel camera head to calculate angle of rotation angle value.
S206, according to described offset direction, determines the rotation direction of described camera.
As described in step S204, if using the coordinate figure of features of human face images in two-dimensional coordinate system as the positional information of facial image, then the easy positive and negative situation of side-play amount respectively by judging X-axis and Y-axis in migration imagery information, obtains the position of facial image in preview image respectively relative to the offset direction of optimal imaging position in X-axis and Y-axis.And if camera unlatching is self-timer mode, usual offset direction is identical with the rotation direction of camera.
S207, according to described angle of rotation angle value and described rotation direction, controls described camera and rotates, and arrives optimal imaging position to adjust the position of described facial image in described preview image.
Get shooting head-turned angle value and rotation direction according to step S205 and step S206, then the rotating function that can start camera rotates.Such as, in step S2045 example, migration imagery information is (-1,2), systemic presupposition facial image coordinate figure change of scale value, camera need rotate 10 degree, if terminal employing is auto heterodyne mode, then according to migration imagery information, known X-direction camera need to negative value direction rotate 10 degree, Y direction camera need on the occasion of direction rotation 20 degree.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, using the positional information of the positional information in preview image of eye image in facial image as facial image, and the migration imagery information obtained between the positional information of described facial image in described preview image and default optimal imaging positional information, and then calculate shooting head-turned angle value according to the side-play amount in described migration imagery information, camera rotation direction is determined according to the offset direction in described migration imagery information, last according to described angle of rotation angle value and described rotation direction, control described camera to rotate, optimal imaging position is arrived to adjust the position of described facial image in described preview image, automatically can adjust facial image and there is optimal imaging position in photo, reduce bat rate by mistake, conservation of power resource, improve Consumer's Experience.
See Fig. 3, a kind of terminal structure schematic diagram that the embodiment of the present invention provides, terminal at least can comprise as shown in the figure: 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, obtains the preview image containing facial image.
In specific implementation, this image preview instruction can be terminal start take a picture application time acquiescence trigger, such as, start terminal camera start to find a view, just can be considered that preview image acquisition module 301 receives image preview instruction; Also can be that user is triggered by the input unit (as physical keyboard, touch-screen) of terminal, such as terminal is supplied to the option that user adjusts facial image position automatically, when user opens this option, be considered as preview image acquisition module 301 and receive image preview instruction, now, the preview image containing facial image that camera photographs is obtained.
Offset information acquisition module 302, for obtaining the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction.
Terminal can provide the function of the optimal imaging position of self-defined facial image in preview image to user, therefore user can arrange optimal imaging position by self-wish; The optimal imaging position of acquiescence also can be set in advance in terminal system.Such as, it has been generally acknowledged that golden section (is defined as: a line segment is divided into two parts, larger part and the ratio of total length equal less part and the ratio of major part, this ratio is approximately 0.618) there is strict proportionality and artistry, be richly stored with aesthetic values, therefore, the region at golden section line place long or wide for preview image can be set to the optimal imaging position of facial image in preview image.
Offset information acquisition module 302, by face recognition technology, detects the facial image in preview image, and gathers the positional information of characteristic point in this preview image on facial image.Due to the individual difference of face and the difference of the generation of face when having expression, according to characteristic point too much, be difficult to make each characteristic point can with the optimal imaging location matches preset, therefore, the positional information of the characteristic point of minority can be adopted to represent the positional information of facial image, such as, the positional information of positional information as facial image of the positional information of prenasale or the mid point of two inner eye corner point lines in face is adopted.
Concrete, see Fig. 5, Fig. 5 is the positional information method for expressing schematic diagram that the embodiment of the present invention provides, can respectively long in preview image and wide place straight line as X-axis and Y-axis, with preview image left lower side angle point for initial point, then the positional information of facial image and optimal imaging positional information can be expressed as: the optimal imaging position coordinate value that in preview image, the coordinate figure of each characteristic point of facial image and corresponding each characteristic point are preset.
In above-mentioned coordinate system, offset information acquisition module 302 obtains the migration imagery information between the positional information of described facial image in preview image and default optimal imaging positional information, obtains by the difference calculated between the coordinate figure of each characteristic point of facial image and the optimal imaging position coordinate value of default each characteristic point.Such as, as shown in Figure 5, if represent the positional information of facial image with the coordinate figure of prenasale, in the current preview image got, the coordinate figure of prenasale is (1,3) coordinate figure of the prenasale optimal imaging position of, presetting is (3,2), then migration imagery information is (-2,1); Wherein, the absolute value of each coordinate direction difference is side-play amount, 2 and 1 is respectively facial image in X-axis and the Y-axis side-play amount relative to the optimal imaging position of presetting in this example; X-direction difference is negative, then represent current face picture position in the X-axis direction relative to optimal imaging position offset direction left (X-axis negative value direction), Y direction difference is positive number, then represent current face's image in the Y-axis direction relative to optimal imaging position offset direction upwards (Y-axis is on the occasion of direction), if what camera adopted is self-timer mode, then the rotation direction of camera should be turn left in the X-axis direction (X-axis negative value direction), upwards rotates (Y-axis is on the occasion of direction) in the Y-axis direction.
Camera adjusting module 303, for according to described migration imagery information, controls described camera and rotates, and arrives optimal imaging position to adjust the position of described facial image in described preview image.
In 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 starts camera and carries out rotating the arrival optimal imaging position, position making facial image in preview image.Such as, in offset information acquisition module 302 example, migration imagery information is (-1,2), systemic presupposition facial image coordinate figure change of scale value, camera need rotate 10 degree, if what terminal adopted is auto heterodyne mode, then according to migration imagery information, known X-direction camera need to negative value direction rotate 10 degree, Y direction camera need on the occasion of direction rotation 20 degree.
Further alternative, see Fig. 4, the camera adjusting module structural representation that the embodiment of the present invention provides, the camera adjustment mould 303 in the present embodiment as shown in the figure can specifically comprise: rotational angle determining unit 3301, rotation direction determining unit 3302 and camera rotating unit 3303.
Rotational angle determining unit 3301, for according to described side-play amount, determines that described facial image moves to head-turned angle value of making a video recording described in described optimal imaging position.
In specific implementation, can pre-set the angle that facial image Moving Unit side-play amount camera rotates, rotational angle determining unit 3301 is multiplied by side-play amount to obtain shooting head-turned angle value by the angle face image calculating the rotation of facial image Moving Unit side-play amount camera.The mapping relations that also can directly prestore in the terminal between side-play amount and camera angle of rotation angle value, therefore, when offset information acquisition module 302 gets this side-play amount, rotational angle determining unit 3301 directly can search angle of rotation angle value corresponding with it in mapping relations table according to this side-play amount.
Rotation direction determining unit 3302, for according to described offset direction, determines the rotation direction of described camera.
In specific implementation, as example in offset information acquisition module 302, if using the coordinate figure of features of human face images in two-dimensional coordinate system as the positional information of facial image, then rotation direction determining unit 3302 is easily respectively by the positive and negative situation of side-play amount judging X-axis and Y-axis in migration imagery information, obtains the position of facial image in preview image respectively relative to the offset direction of optimal imaging position in X-axis and Y-axis.And if camera unlatching is self-timer mode, usual offset direction is identical with the rotation direction of camera.
Camera rotating unit 3303, for according to described angle of rotation angle value and described rotation direction, controls described camera and carries out turning.
Further alternative, described rotational angle determining unit 3301 can be specifically for:
According to described side-play amount, calculate the pixel quantity that described facial image moves to the required movement in described optimal imaging position; The angle value rotated needed for camera according to described pixel quantity and described preview image Moving Unit pixel, calculates described angle of rotation angle value.
In actual implementation process, each side-play amount of facial image and the mapping relations of pixel quantity can be pre-set, and obtain same model camera by experiment, same model terminal body, preview image Moving Unit pixel, the required angle value rotated of camera, therefore obtains the pixel quantity corresponding with described side-play amount by rotational angle determining unit 3301, and utilizes this pixel quantity to be multiplied by the required angle value rotated of preview image Moving Unit pixel camera head to calculate angle of rotation angle value.
In another embodiment, described terminal also comprises: eye image identification module 304, for identifying the eye image in described preview image; Position information acquisition module 305, for obtaining the positional information of described eye image in described preview image, as the positional information of described facial image in described preview image.
In specific implementation, eye image identification module 304, by face recognition technology, detects the facial image in preview image, and gathers the positional information of characteristic point in this preview image on facial image.Due to the individual difference of face and the difference of the generation of face when having expression, according to characteristic point too much, be difficult to make each characteristic point with the optimal imaging location matches preset, therefore, the positional information of the characteristic point of minority can be adopted to represent the positional information of facial image.
The eyes are the windows of the mind, is one of most important organ on face, and in a character image, whether eyes seem attractive in appearance, have god, have material impact to the aesthetics of whole character image.Therefore, eye image identification module 304 is by face recognition technology identification eye image, position information acquisition module 305 adopts the positional information of eye image in preview image as the positional information of facial image, makes eye image in preview image, have optimal imaging position.Such as, the positional information of positional information as facial image of the pupil of left eye or right eye or the mid point of two eyes inner eye corner lines can be adopted.
In another embodiment, described terminal also comprises: information reminding module 306, for sending information, described information has reached optimal imaging position in order to point out facial image described in user, takes pictures according to described information input photographing instruction to make user.
This information includes but not limited to: the prompting of Word message prompting, signal lamp and voice broadcast prompting.After facial image is successfully adjusted to optimum position by terminal, information reminding module 306 sends information to user, and whether user can be made to pay close attention to camera without the moment and stop operating, whether facial image has arrived optimal imaging position, hommization more.
The embodiment of the present invention, image preview instruction can be received, obtain the preview image containing facial image, and the migration imagery information obtained between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction, and then according to described migration imagery information, control described camera to rotate, optimal imaging position is arrived to adjust the position of described facial image in described preview image, automatically can adjust facial image and there is optimal imaging position in photo, reduce bat rate by mistake, conservation of power resource, improve Consumer's Experience.
Above a kind of Intelligent photographing method disclosed in the embodiment of the present invention and terminal are described in detail, above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, therefore according to the equivalent variations that the claims in the present invention are done, the scope that the present invention is contained still is belonged to.

Claims (10)

1. an Intelligent photographing method, is characterized in that, comprising:
Receive image preview instruction, obtain the preview image containing facial image;
Obtain the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction;
According to described migration imagery information, control described camera and rotate, arrive optimal imaging position to adjust the position of described facial image in described preview image.
2. method according to claim 1, is characterized in that, described according to described migration imagery information, controls described camera and carries out rotation and comprise:
According to described side-play amount, calculate described facial image and move to head-turned angle value of making a video recording described in described optimal imaging position;
According to described offset direction, determine the rotation direction of described camera;
According to described angle of rotation angle value and described rotation direction, control described camera and rotate.
3. method according to claim 2, is characterized in that, described according to described side-play amount, calculates described facial image and moves to head-turned angle value of making a video recording described in described optimal imaging position and comprise:
According to described side-play amount, calculate the pixel quantity that described facial image moves to the required movement in described optimal imaging position;
The angle value rotated needed for camera according to described pixel quantity and described preview image Moving Unit pixel, calculates described angle of rotation angle value.
4. method according to claim 1, is characterized in that, before the migration imagery information between the positional information of the described facial image of described acquisition in described preview image and default optimal imaging positional information, also comprises:
Identify the eye image in described preview image;
Obtain the positional information of described eye image in described preview image, as the positional information of described facial image in described preview image.
5. method according to claim 1, is characterized in that, described method also comprises:
Send information, described information has reached optimal imaging position in order to point out facial image described in user, takes pictures according to described information input photographing instruction to make user.
6. a terminal, is characterized in that, comprising:
Preview image acquisition module, for receiving image preview instruction, obtains the preview image containing facial image;
Offset information acquisition module, for obtaining the migration imagery information between the positional information of described facial image in described preview image and default optimal imaging positional information, described migration imagery information comprises side-play amount between the positional information of described facial image and described optimal imaging positional information and offset direction;
Camera adjusting module, for according to described migration imagery information, controls described camera and rotates, and arrives optimal imaging position to adjust the position of described facial image in described preview image.
7. terminal according to claim 6, is characterized in that, described camera adjusting module comprises:
Rotational angle determining unit, for according to described side-play amount, determines that described facial image moves to head-turned angle value of making a video recording described in described optimal imaging position;
Rotation direction determining unit, for according to described offset direction, determines the rotation direction of described camera;
Camera rotating unit, for according to described angle of rotation angle value and described rotation direction, controls described camera and carries out turning.
8. terminal according to claim 7, described rotational angle determining unit specifically for:
According to described side-play amount, calculate the pixel quantity that described facial image moves to the required movement in described optimal imaging position;
The angle value rotated needed for camera according to described pixel quantity and described preview image Moving Unit pixel, calculates described angle of rotation angle value.
9. terminal according to claim 6, is characterized in that, described terminal also comprises:
Eye image identification module, for identifying the eye image in described preview image;
Position information acquisition module, for obtaining the positional information of described eye image in described preview image, as the positional information of described facial image in described preview image.
10. terminal according to claim 6, is characterized in that, described terminal also comprises:
Information reminding module, for sending information, described information has reached optimal imaging position in order to point out facial image described in user, takes pictures according to described information input photographing instruction to make user.
CN201510104321.0A 2015-03-10 2015-03-10 A kind of Intelligent photographing method and terminal Expired - Fee Related CN104754218B (en)

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 true CN104754218A (en) 2015-07-01
CN104754218B 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)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007418A (en) * 2015-07-03 2015-10-28 广东欧珀移动通信有限公司 Photographing method and mobile terminal
CN105592267A (en) * 2015-12-24 2016-05-18 广东欧珀移动通信有限公司 Shooting control method, shooting controlling device and shooting 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
WO2017045258A1 (en) * 2015-09-18 2017-03-23 北京百度网讯科技有限公司 Photographing prompting method, device and apparatus, and nonvolatile computer storage medium
CN107995417A (en) * 2017-11-16 2018-05-04 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal
CN108431730A (en) * 2015-12-24 2018-08-21 荷兰联合利华有限公司 Enhanced mirror
CN109151308A (en) * 2018-08-30 2019-01-04 上海与德科技有限公司 A kind of automatic photographing method, device, server and storage medium
CN109274894A (en) * 2018-12-05 2019-01-25 维沃移动通信有限公司 A kind of image pickup method and filming apparatus
CN109788193A (en) * 2018-12-26 2019-05-21 武汉市澜创信息科技有限公司 A kind of camera unit control method, device, equipment and medium
CN109788227A (en) * 2017-11-13 2019-05-21 腾讯科技(深圳)有限公司 A kind of image processing method and its device, equipment and storage medium
CN109849799A (en) * 2018-12-28 2019-06-07 华勤通讯技术有限公司 Intelligent vehicle-carried equipment and vehicle
CN109993143A (en) * 2019-04-10 2019-07-09 北京旷视科技有限公司 Installation method, device, electronic equipment and the storage medium of image capture device
CN110253590A (en) * 2019-04-30 2019-09-20 北京云迹科技有限公司 Robot turns round processing method and processing device
CN111291737A (en) * 2020-05-09 2020-06-16 支付宝(杭州)信息技术有限公司 Face image acquisition method and device and electronic equipment
CN111385392A (en) * 2018-12-29 2020-07-07 Oppo广东移动通信有限公司 Face image acquisition method and device, electronic equipment and storage medium
CN111385415A (en) * 2020-03-10 2020-07-07 维沃移动通信有限公司 Shooting method and electronic equipment
CN112135153A (en) * 2020-08-24 2020-12-25 珠海格力电器股份有限公司 Display device, control method and device thereof, and computer readable medium
US10963047B2 (en) 2015-12-24 2021-03-30 Conopco, Inc. Augmented mirror
WO2021179800A1 (en) * 2020-03-11 2021-09-16 维沃移动通信有限公司 Electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040012702A1 (en) * 2002-07-08 2004-01-22 Casio Computer Co., Ltd. Camera apparatus, photographing method and a storage medium that records method of photographing
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040012702A1 (en) * 2002-07-08 2004-01-22 Casio Computer Co., Ltd. Camera apparatus, photographing method and a storage medium that records method of photographing
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

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007418A (en) * 2015-07-03 2015-10-28 广东欧珀移动通信有限公司 Photographing method and mobile terminal
CN105007418B (en) * 2015-07-03 2018-07-06 广东欧珀移动通信有限公司 A kind of photographic method and mobile terminal
WO2017045258A1 (en) * 2015-09-18 2017-03-23 北京百度网讯科技有限公司 Photographing prompting method, device and apparatus, and nonvolatile computer storage medium
US10616475B2 (en) 2015-09-18 2020-04-07 Beijing Baidu Netcom Science And Technology Co., Ltd. Photo-taking prompting method and apparatus, an apparatus and non-volatile computer storage medium
CN108431730B (en) * 2015-12-24 2021-11-23 联合利华知识产权控股有限公司 Enhanced mirror
CN105592267A (en) * 2015-12-24 2016-05-18 广东欧珀移动通信有限公司 Shooting control method, shooting controlling device and shooting system
CN108431730A (en) * 2015-12-24 2018-08-21 荷兰联合利华有限公司 Enhanced mirror
US11068051B2 (en) 2015-12-24 2021-07-20 Conopco, Inc. Augmented mirror
US10963047B2 (en) 2015-12-24 2021-03-30 Conopco, Inc. Augmented mirror
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
CN109788227A (en) * 2017-11-13 2019-05-21 腾讯科技(深圳)有限公司 A kind of image processing method and its device, equipment and storage medium
CN109788227B (en) * 2017-11-13 2021-09-07 腾讯科技(深圳)有限公司 Image processing method and device, equipment and storage medium thereof
CN107995417A (en) * 2017-11-16 2018-05-04 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal
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
CN109274894A (en) * 2018-12-05 2019-01-25 维沃移动通信有限公司 A kind of image pickup method and filming apparatus
CN109788193A (en) * 2018-12-26 2019-05-21 武汉市澜创信息科技有限公司 A kind of camera unit control method, device, equipment and medium
CN109849799A (en) * 2018-12-28 2019-06-07 华勤通讯技术有限公司 Intelligent vehicle-carried equipment and vehicle
CN111385392A (en) * 2018-12-29 2020-07-07 Oppo广东移动通信有限公司 Face image acquisition method and device, electronic equipment and storage medium
CN111385392B (en) * 2018-12-29 2021-08-24 Oppo广东移动通信有限公司 Face image acquisition method and device, electronic equipment and storage medium
CN109993143A (en) * 2019-04-10 2019-07-09 北京旷视科技有限公司 Installation method, device, electronic equipment and the storage medium of image capture device
CN109993143B (en) * 2019-04-10 2021-09-17 北京旷视科技有限公司 Installation method and device of image acquisition equipment, electronic equipment and storage medium
CN110253590A (en) * 2019-04-30 2019-09-20 北京云迹科技有限公司 Robot turns round processing method and processing device
CN111385415A (en) * 2020-03-10 2020-07-07 维沃移动通信有限公司 Shooting method and electronic equipment
CN111385415B (en) * 2020-03-10 2022-03-04 维沃移动通信有限公司 Shooting method and electronic equipment
WO2021179800A1 (en) * 2020-03-11 2021-09-16 维沃移动通信有限公司 Electronic device
CN111291737A (en) * 2020-05-09 2020-06-16 支付宝(杭州)信息技术有限公司 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

Also Published As

Publication number Publication date
CN104754218B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN104754218A (en) Intelligent photographing method and terminal
US20220301180A1 (en) Image Processing Method and Electronic Device
CN110929651B (en) Image processing method, image processing device, electronic equipment and storage medium
US10671232B2 (en) Information processing apparatus, and part generating and using method
AU2017439979B2 (en) Method and device for dynamically displaying icon according to background image
JP6834056B2 (en) Shooting mobile terminal
EP2664131B1 (en) Apparatus and method for compositing image in a portable terminal
CN106688228B (en) Video camera controller, camera shooting control method, camera and camera system
CN105007418B (en) A kind of photographic method and mobile terminal
US11158027B2 (en) Image capturing method and apparatus, and terminal
CN111182205B (en) Photographing method, electronic device, and medium
CN104902170B (en) A kind of photographic method and terminal
CN104484858B (en) Character image processing method and processing device
WO2022001806A1 (en) Image transformation method and apparatus
TW202203085A (en) Automatic camera guidance and settings adjustment
EP3840361B1 (en) Photographing method and device, and computer-readable storage medium
CN104917960B (en) A kind of method and terminal that control camera to rotate
CN104660909A (en) Image acquisition method, image acquisition device and terminal
CN106454143A (en) Motion image shooting method and terminal
CN108933891B (en) Photographing method, terminal and system
WO2022156672A1 (en) Photographing method and apparatus, electronic device and readable storage medium
CN111050081B (en) Shooting method and electronic equipment
WO2018054097A1 (en) Self-portrait line-of-sight alignment method, device, and terminal
CN107333068A (en) A kind of photographic method, device, equipment and medium
CN113497880A (en) Method for shooting image and electronic equipment

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