CN104967774B - A kind of method and terminal for controlling dual camera shooting - Google Patents
A kind of method and terminal for controlling dual camera shooting Download PDFInfo
- Publication number
- CN104967774B CN104967774B CN201510305212.5A CN201510305212A CN104967774B CN 104967774 B CN104967774 B CN 104967774B CN 201510305212 A CN201510305212 A CN 201510305212A CN 104967774 B CN104967774 B CN 104967774B
- Authority
- CN
- China
- Prior art keywords
- camera
- preview screen
- recognition
- rotation
- face
- 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
- 230000009977 dual effect Effects 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 claims description 7
- 108010001267 Protein Subunits Proteins 0.000 claims description 4
- 230000004044 response Effects 0.000 abstract description 13
- 230000000694 effects Effects 0.000 abstract description 11
- 230000001815 facial effect Effects 0.000 description 3
- 230000003796 beauty Effects 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of method and terminal for controlling dual camera shooting, this method includes:Receive the enabled instruction for camera application;Enabled instruction is responded, control terminal starts camera application, and enters screening-mode;Under screening-mode, the first camera of control rotates, so that the first recognition of face frame corresponding to the first object face in the first preview screen is located in the predeterminable area of the first preview screen;Wherein, the first preview screen is preview screen corresponding to the first camera;Under screening-mode, control second camera rotates, so that the second recognition of face frame corresponding to the second target face in the second preview screen is located in the predeterminable area of the second preview screen;Wherein, the second preview screen is preview screen corresponding to second camera;Receive shooting instruction;Response shooting instruction performs shooting operation.Implement the embodiment of the present invention, the face shooting effect of camera can be improved.
Description
Technical field
The present invention relates to electronic technology field, and in particular to a kind of method and terminal for controlling dual camera shooting.
Background technology
With the continuous progress and development of electronic technology, camera is equipped with increasing intelligent terminal, some
Dual camera is provided with intelligent terminal.It can realize that three-dimensional is taken pictures using dual camera, obtain apparent image quality, due to
The position of the dual camera on intelligent terminal is changeless at present, when user carries out face shooting using dual camera,
If during in the presence of two target faces apart from each other, in the preview screen of dual camera, two can not be captured simultaneously apart
Target face farther out.It can be seen that the face shooting effect of dual camera is not so good at present.
The content of the invention
The embodiment of the present invention discloses a kind of method and terminal for controlling dual camera shooting, can improve the face of camera
Shooting effect.
First aspect of the embodiment of the present invention, there is provided a kind of method for controlling dual camera shooting, including:
Receive the enabled instruction for camera application;
The enabled instruction is responded, control terminal starts camera application, and enters screening-mode;
Under the screening-mode, control the first camera rotation, so that the first object face in the first preview screen
Corresponding first recognition of face frame is located in the predeterminable area of first preview screen;Wherein, first preview screen is
Preview screen corresponding to first camera;
Under the screening-mode, control second camera rotation, so that the second target face in the second preview screen
Corresponding second recognition of face frame is located in the predeterminable area of second preview screen;Wherein, second preview screen is
Preview screen corresponding to the second camera;
Receive shooting instruction;
Respond the shooting instruction and perform shooting operation.
In the first possible implementation of first aspect of the embodiment of the present invention, the control the first camera rotation
Turn, so that the first recognition of face frame corresponding to the first object face in the first preview screen is located at first preview screen
In predeterminable area, including:
Judge the first recognition of face frame corresponding to the first object face in first preview screen whether positioned at described
In the predeterminable area of first preview screen;
If it is not, rotation first camera is so that first corresponding to first object face in first preview screen
Recognition of face frame is located in the predeterminable area of first preview screen.
With reference to the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention
Second of possible implementation in, the rotation first camera is so that the first mesh in first preview screen
First recognition of face frame corresponding to mark face is located in the predeterminable area of first preview screen, including:
Obtain the center position coordinates of the first recognition of face frame and the predeterminable area center of first preview screen
Position coordinates;
According to the predeterminable area center position coordinates of first preview screen and the center of the first recognition of face frame
The coordinate difference of position coordinates sets the first direction of rotation and first anglec of rotation of first camera;
The first camera rotation is controlled according to the first direction of rotation of first camera and first anglec of rotation,
So that the first recognition of face frame is located in the predeterminable area of first preview screen.
With reference to the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention
The third possible implementation in, the rotation first camera is so that the first mesh in first preview screen
After first recognition of face frame corresponding to mark face is located in the predeterminable area of first preview screen, methods described is also wrapped
Include:
Obtain the center position coordinates of the first recognition of face frame;
Whether the center position coordinates for detecting the first recognition of face frame change;
If so, calculate the variable quantity of the center position coordinates of the first recognition of face frame;
The second of first camera is set according to the variable quantity of the center position coordinates of the first recognition of face frame
Direction of rotation and second anglec of rotation;
The first camera rotation is controlled according to the second direction of rotation of first camera and second anglec of rotation,
So that the first recognition of face frame is located in the predeterminable area of first preview screen.
With reference to first aspect of the embodiment of the present invention or first aspect of the embodiment of the present invention first to any in the third
The possible implementation of kind, in the 4th kind of possible implementation of first aspect of the embodiment of the present invention, the first object
Face and the second target face are different.
Second aspect of the embodiment of the present invention, there is provided a kind of terminal, including:
First receiving unit, for receiving the enabled instruction for camera application;
Start unit, for responding the enabled instruction, control terminal starts camera application, and enters screening-mode;
First rotary unit, under the screening-mode, the first camera of control to rotate, so that the first preview screen
In first object face corresponding to the first recognition of face frame be located in the predeterminable area of first preview screen;Wherein, institute
It is preview screen corresponding to first camera to state the first preview screen;
Second rotary unit, under the screening-mode, control second camera to rotate, so that the second preview screen
In the second target face corresponding to the second recognition of face frame be located in the predeterminable area of second preview screen;Wherein, institute
It is preview screen corresponding to the second camera to state the second preview screen;
Second receiving unit, for receiving shooting instruction;
Shooting unit, shooting operation is performed for responding the shooting instruction.
In the first possible implementation of second aspect of the embodiment of the present invention, first rotary unit includes:
Judgment sub-unit, for judging the first recognition of face corresponding to the first object face in first preview screen
Whether frame is in the predeterminable area of first preview screen;
First rotation subelement, for when the judgment sub-unit judged result is no, rotating first camera
So that the first recognition of face frame corresponding to first object face in first preview screen is located at first preview screen
Predeterminable area in.
With reference to the first possible implementation of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention
Second of possible implementation in, it is described first rotation subelement include:
First processing subelement, for the center position coordinates for obtaining the first recognition of face frame and first preview
The predeterminable area center position coordinates of picture;
Second processing subelement, for the predeterminable area center position coordinates according to first preview screen and described the
The coordinate difference of the center position coordinates of one recognition of face frame sets the first direction of rotation and the first rotation of first camera
Gyration;
3rd processing subelement, is controlled for the first direction of rotation according to first camera and first anglec of rotation
The first camera rotation, so that the first recognition of face frame is located in the predeterminable area of first preview screen.
With reference to the first possible implementation of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention
The third possible implementation in, first rotary unit also includes:
Subelement is obtained, for obtaining the center position coordinates of the first recognition of face frame;
Whether detection sub-unit, the center position coordinates for detecting the first recognition of face frame change;
Computation subunit, for when the detection sub-unit testing result is to be, calculating the first recognition of face frame
Center position coordinates variable quantity;
Subelement is set, and the variable quantity for the center position coordinates according to the first recognition of face frame sets described the
Second direction of rotation of one camera and second anglec of rotation;
Second rotation subelement, is controlled for the second direction of rotation according to first camera and second anglec of rotation
The first camera rotation, so that the first recognition of face frame is located in the predeterminable area of first preview screen.
With reference to second aspect of the embodiment of the present invention or second aspect of the embodiment of the present invention first to any in the third
The possible implementation of kind, in the 4th kind of possible implementation of second aspect of the embodiment of the present invention, the first object
Face and the second target face are different.
In the embodiment of the present invention, terminal receives the enabled instruction for camera application;Enabled instruction is responded, control terminal opens
Dynamic camera application, and enter screening-mode;Under screening-mode, control the first camera rotation, so that in the first preview screen
First object face corresponding to the first recognition of face frame be located in the predeterminable area of the first preview screen;Wherein, the first preview
Picture is preview screen corresponding to the first camera;Under screening-mode, control second camera rotation, so that the second preview is drawn
The second recognition of face frame is located in the predeterminable area of the second preview screen corresponding to the second target face in face;Wherein, second
Preview screen is preview screen corresponding to second camera;Receive shooting instruction;Response shooting instruction performs shooting operation.Pass through
Implement the embodiment of the present invention, in shooting process, can by rotating dual camera (the first camera and second camera), with
The target face for capturing camera is located at the predeterminable area of camera, so as to improve the face of camera shooting effect
Fruit.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart for the method for controlling dual camera to shoot disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another control dual camera shooting disclosed in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another terminal disclosed in the embodiment of the present invention;
Fig. 7 is preview screen figure disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in embodiment of the present invention, the technical scheme in embodiment of the present invention is carried out clear
Chu, it is fully described by.Obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment party
Formula.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained on the premise of creative work is not made
The every other embodiment obtained, should all belong to the scope of protection of the invention.
The embodiment of the present invention discloses a kind of method and terminal for controlling dual camera shooting, can improve the face of camera
Shooting effect.It is described in detail individually below.
Terminal described in the embodiment of the present invention may include:Mobile phone, tablet personal computer or walkman etc., above-mentioned terminal are only
Citing, and it is non exhaustive, including but not limited to above-mentioned terminal.
Referring to Fig. 1, Fig. 1 is a kind of flow chart for the method for controlling dual camera to shoot disclosed in the embodiment of the present invention.
As shown in figure 1, the method for the control dual camera shooting described in the present embodiment, including step:
S101, receive the enabled instruction for camera application.
In the embodiment of the present invention, terminal receives the enabled instruction for camera application, specifically, user passes through triggering terminal
On camera application (such as changeable camera, U.S. face camera, beauty's camera etc.) icon, terminal receives to be opened for the camera application
Dynamic instruction.
S102, enabled instruction is responded, control terminal starts camera application, and enters screening-mode.
In the embodiment of the present invention, terminal response enabled instruction, control terminal starts camera application, and enters screening-mode.
Under screening-mode, camera can capture preview screen.
S103, under screening-mode, control the first camera rotation, so that the first object face in the first preview screen
Corresponding first recognition of face frame is located in the predeterminable area of the first preview screen;Wherein, the first preview screen is the first shooting
Preview screen corresponding to head.
In the embodiment of the present invention, at least one target face is included in the first preview screen, first object face is at least
Any one in one target face, first object recognition of face inframe includes first object face.Control the first camera
Rotate, so that the first recognition of face frame corresponding to the first object face in the first preview screen is located at the pre- of the first preview screen
If in region, the predeterminable area of the first preview screen can be square, rectangle, circle etc., it is preferred that the first preview screen
Predeterminable area be square, the predeterminable area of the first preview screen be located at the centre of the first preview screen, the first preview picture
The area of the predeterminable area in face is more than or equal to the area of the first recognition of face frame.
S104, under screening-mode, control second camera rotation, so that the second target face in the second preview screen
Corresponding second recognition of face frame is located in the predeterminable area of the second preview screen;Wherein, the second preview screen is the second shooting
Preview screen corresponding to head.
In the embodiment of the present invention, at least one target face is included in the second preview screen, the second target face is at least
Any one in one target face, the second target recognition of face inframe includes the second target face.Control second camera
Rotate, so that the second recognition of face frame corresponding to the second target face in the second preview screen is located at the pre- of the second preview screen
If in region, the predeterminable area of the second preview screen can be square, rectangle, circle etc., it is preferred that the second preview screen
Predeterminable area be square, the predeterminable area of the second preview screen be located at the centre of the second preview screen, the second preview picture
The area of the predeterminable area in face is more than or equal to the area of the second recognition of face frame.The embodiment of the present invention passes through the shooting of control first
Head and second camera rotation, are adjusted to the position of camera, so as to obtain more preferable face shooting effect.Need to illustrate
, step S103 and step S104 execution sequence not clearly limitation, step S103 can be first carried out, is then held again
Row step S104, can also first carry out step S104, then perform step S103 again, can also perform step S103 and step simultaneously
Rapid S104.
In concrete application scene, as shown in fig. 7, Fig. 7 is preview screen figure disclosed in the embodiment of the present invention, in screening-mode
Under, the first camera captures the first preview screen, and first object face, first object face pair are included in the first preview screen
Answer first object recognition of face frame;Second camera captures the second preview screen, and the second target is included in the second preview screen
Face, the corresponding second target recognition of face frame of the second target face.
S105, receive shooting instruction.
In the embodiment of the present invention, it can receive the shooting that user is triggered by gesture to instruct that terminal, which receives shooting instruction,
Can also receive user to pass through facial characteristics change triggers by the shooting instruction of speech trigger or reception user
Shooting instruction, either smiled for example, facial characteristics can be blink.
S106, response shooting instruction perform shooting operation.
In the embodiment of the present invention, terminal response shooting instruction the first camera of control and second camera perform shooting behaviour
Make, it is preferred that terminal response shooting instruction the first camera of control and second camera perform shooting operation simultaneously.
In the embodiment of the present invention, the enabled instruction for camera application is received;Enabled instruction is responded, control terminal, which starts, claps
Application is taken the photograph, and enters screening-mode;Under screening-mode, control the first camera rotation, so that the in the first preview screen
First recognition of face frame corresponding to one target face is located in the predeterminable area of the first preview screen;Wherein, the first preview screen
For preview screen corresponding to the first camera;Under screening-mode, control second camera rotation, so that in the second preview screen
The second target face corresponding to the second recognition of face frame be located in the predeterminable area of the second preview screen;Wherein, the second preview
Picture is preview screen corresponding to second camera;Receive shooting instruction;Response shooting instruction performs shooting operation.Implement this hair
Bright embodiment, the face shooting effect of camera can be improved.
Referring to Fig. 2, Fig. 2 is the flow of the method for another control dual camera shooting disclosed in the embodiment of the present invention
Figure.As shown in Fig. 2 the method for the control dual camera shooting described in the present embodiment, including step:
S201, receive the enabled instruction for camera application.
S202, enabled instruction is responded, control terminal starts camera application, and enters screening-mode.
S203, under screening-mode, control the first camera rotation, so that the first object face in the first preview screen
Corresponding first recognition of face frame is located in the predeterminable area of the first preview screen;Wherein, the first preview screen is the first shooting
Preview screen corresponding to head.
In the embodiment of the present invention, step S203 can include:
Judge whether the first recognition of face frame corresponding to the first object face in the first preview screen is located at the first preview
In the predeterminable area of picture;
If it is not, the first camera of rotation is so that the first recognition of face corresponding to first object face in the first preview screen
Frame is located in the predeterminable area of the first preview screen.
In the embodiment of the present invention, terminal starts camera application, and after entrance screening-mode, first in the first preview screen
The first recognition of face frame is not necessarily located in the predeterminable area of the first preview screen corresponding to target face, wherein, first object
Recognition of face inframe includes first object face.Judge that the first face corresponding to the first object face in the first preview screen is known
Other frame whether positioned at the first preview screen predeterminable area in, if so, perform step S205, if it is not, rotation the first camera with
The first recognition of face frame corresponding to the first object face in the first preview screen is set to be located at the predeterminable area of the first preview screen
In.
Wherein, the first camera is rotated so that the first recognition of face corresponding to first object face in the first preview screen
Frame is located in the predeterminable area of the first preview screen, may include steps of:
11) the predeterminable area center of the center position coordinates and the first preview screen that obtain the first recognition of face frame is sat
Mark;
12) sat according to the center of the predeterminable area center position coordinates of the first preview screen and the first recognition of face frame
Target coordinate difference sets the first direction of rotation and first anglec of rotation of the first camera;
13) rotation of the first camera is controlled according to the first direction of rotation of the first camera and first anglec of rotation, so that
First recognition of face frame is located in the predeterminable area of the first preview screen.
In the embodiment of the present invention, the predeterminable area of the first preview screen can be square, rectangle, circle etc., preferably
, the predeterminable area of the first preview screen is square, and the predeterminable area of the first preview screen is being located at the first preview screen just
Center.Obtain the center position coordinates of the first recognition of face frame and the predeterminable area center position coordinates of the first preview screen;Root
According to the coordinate difference of the predeterminable area center position coordinates and the center position coordinates of the first recognition of face frame of the first preview screen
The first direction of rotation and first anglec of rotation of first camera are set;According to the first direction of rotation of the first camera and first
The anglec of rotation controls the rotation of the first camera, so that the first recognition of face frame is located in the predeterminable area of the first preview screen.Example
Such as, if the center position coordinates of the first recognition of face frame are (x0, y0), the predeterminable area center position coordinates of the first preview screen
For (m0, n0), the seat of the predeterminable area center position coordinates of the first preview screen and the center position coordinates of the first recognition of face frame
Mark difference is Δ x=x0-m0, Δ y=y0-n0, according to Δ x and Δ y size set the first camera the first direction of rotation and
First anglec of rotation.
In some feasible embodiments, the first camera of rotation is so that first object face in the first preview screen
After corresponding first recognition of face frame is located in the predeterminable area of the first preview screen, step S203 also comprises the following steps:
Obtain the center position coordinates of the first recognition of face frame;
Whether the center position coordinates for detecting the first recognition of face frame change;
If so, calculate the variable quantity of the center position coordinates of the first recognition of face frame;
Second direction of rotation of the first camera is set according to the variable quantity of the center position coordinates of the first recognition of face frame
With second anglec of rotation;
The rotation of the first camera is controlled according to the second direction of rotation of the first camera and second anglec of rotation, so that first
Recognition of face frame is located in the predeterminable area of the first preview screen.
In the embodiment of the present invention, for example, if the initial coordinate of the center of the first recognition of face frame is (x0, y0),
After detecting that the center position coordinates of the first recognition of face frame change, the current seat of the center of the first recognition of face frame
It is designated as (x1, y1), the variable quantity for calculating the center position coordinates of the first recognition of face frame is Δ x=x1-x0, Δ y=y1-y0, root
The second direction of rotation and second anglec of rotation of first camera are set according to Δ x and Δ y size, according to the of the first camera
Two direction of rotation and second anglec of rotation control the rotation of the first camera, so that the first recognition of face frame is located at the first preview screen
Predeterminable area in.
S204, under screening-mode, control second camera rotation, so that the second target face in the second preview screen
Corresponding second recognition of face frame is located in the predeterminable area of the second preview screen;Wherein, the second preview screen is the second shooting
Preview screen corresponding to head.
In the embodiment of the present invention, step S204 can include:
Judge whether the second recognition of face frame corresponding to the second target face in the second preview screen is located at the second preview
In the predeterminable area of picture;
If it is not, rotation volume camera is so that the second recognition of face corresponding to the second target face in the second preview screen
Frame is located in the predeterminable area of the second preview screen.
In the embodiment of the present invention, terminal starts camera application, and after entrance screening-mode, second in the second preview screen
The second recognition of face frame is not necessarily located in the predeterminable area of the second preview screen corresponding to target face, wherein, the second target
Recognition of face inframe includes the second target face.Judge that the second face corresponding to the second target face in the second preview screen is known
Other frame whether positioned at the second preview screen predeterminable area in, if so, perform step S205, if it is not, rotation second camera with
The second recognition of face frame corresponding to the second target face in the second preview screen is set to be located at the predeterminable area of the second preview screen
In.
Wherein, second camera is rotated so that the second recognition of face corresponding to the second target face in the second preview screen
Frame is located in the predeterminable area of the second preview screen, may include steps of:
21) the predeterminable area center of the center position coordinates and the second preview screen that obtain the second recognition of face frame is sat
Mark;
22) sat according to the center of the predeterminable area center position coordinates of the second preview screen and the second recognition of face frame
Target coordinate difference sets the 3rd direction of rotation and the 3rd anglec of rotation of second camera;
23) according to the 3rd direction of rotation of second camera and the control second camera rotation of the 3rd anglec of rotation, so that
Second recognition of face frame is located in the predeterminable area of the second preview screen.
In the embodiment of the present invention, the predeterminable area of the second preview screen can be square, rectangle, circle etc., preferably
, the predeterminable area of the second preview screen is square, and the predeterminable area of the second preview screen is being located at the second preview screen just
Center.Obtain the center position coordinates of the second recognition of face frame and the predeterminable area center position coordinates of the second preview screen;Root
According to the coordinate difference of the predeterminable area center position coordinates and the center position coordinates of the second recognition of face frame of the second preview screen
The 3rd direction of rotation and the 3rd anglec of rotation of second camera are set;According to the 3rd direction of rotation of second camera and the 3rd
Anglec of rotation control second camera rotation, so that the second recognition of face frame is located in the predeterminable area of the second preview screen.Example
Such as, if the center position coordinates of the second recognition of face frame are (x0', y0'), the predeterminable area center of the second preview screen is sat
It is designated as (m0', n0'), the predeterminable area center position coordinates of the second preview screen and the center position coordinates of the second recognition of face frame
Coordinate difference be Δ x '=x0’-m0', Δ y '=y0’-n0', set the of second camera according to Δ x ' and Δ y ' size
Three direction of rotation and the 3rd anglec of rotation.
In some feasible embodiments, first object face and the second target face are different, when needing to shoot
During two faces, the second target can be shot with second camera by the first object face picture for shooting the first camera
Face picture combination producing Target Photo, obtain more preferable face shooting effect.
S205, receive shooting instruction.
S206, response shooting instruction perform shooting operation.
In the embodiment of the present invention, step S201~step S201 can refer to step S101~step S102 shown in Fig. 1,
Step S205~step S206 can refer to step S105~step S106 shown in Fig. 1, and the embodiment of the present invention repeats no more.
In the embodiment of the present invention, the enabled instruction for camera application is received;Enabled instruction is responded, control terminal, which starts, claps
Application is taken the photograph, and enters screening-mode;Under screening-mode, control the first camera rotation, so that the in the first preview screen
First recognition of face frame corresponding to one target face is located in the predeterminable area of the first preview screen;Wherein, the first preview screen
For preview screen corresponding to the first camera;Under screening-mode, control second camera rotation, so that in the second preview screen
The second target face corresponding to the second recognition of face frame be located in the predeterminable area of the second preview screen;Wherein, the second preview
Picture is preview screen corresponding to second camera;Receive shooting instruction;Response shooting instruction performs shooting operation.Implement this hair
Bright embodiment, the face shooting effect of camera can be improved.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of terminal disclosed in the embodiment of the present invention.As shown in figure 3, this reality
Apply the terminal described in example, including the first receiving unit 301, start unit 302, the first rotary unit 303, second rotation list
First 304, second receiving unit 305 and shooting unit 306, wherein:
First receiving unit 301, for receiving the enabled instruction for camera application.
In the embodiment of the present invention, the first receiving unit 301 receives the enabled instruction for camera application, specifically, user
Pass through camera application (such as changeable camera, U.S. face camera, beauty's camera etc.) icon in triggering terminal, the first receiving unit
301 receive the enabled instruction for the camera application.
Start unit 302, for responding enabled instruction, control terminal starts camera application, and enters screening-mode.
In the embodiment of the present invention, start unit 302 responds enabled instruction, and control terminal starts camera application, and enters and clap
Take the photograph pattern.Under screening-mode, camera can capture preview screen.
First rotary unit 303, under screening-mode, the first camera of control to rotate, so that the first preview screen
In first object face corresponding to the first recognition of face frame be located in the predeterminable area of the first preview screen;Wherein, first is pre-
Picture of looking at is preview screen corresponding to the first camera.
In the embodiment of the present invention, at least one target face is included in the first preview screen, first object face is at least
Any one in one target face, first object recognition of face inframe includes first object face.First rotary unit 303
The first camera is controlled to rotate, so that the first recognition of face frame corresponding to first object face in the first preview screen is positioned at the
In the predeterminable area of one preview screen, the predeterminable area of the first preview screen can be square, rectangle, circle etc., preferably
, the predeterminable area of the first preview screen is square, and the predeterminable area of the first preview screen is being located at the first preview screen just
Center, the area of the predeterminable area of the first preview screen are more than or equal to the area of the first recognition of face frame.
In some feasible embodiments, as shown in figure 4, Fig. 4 is another terminal disclosed in the embodiment of the present invention
Structural representation, the first receiving unit 301, start unit 302, the first rotary unit 303, second that Fig. 4 includes shown in Fig. 3 revolve
Turn unit 304, the second receiving unit 305 and shooting unit 306, wherein, the first rotary unit 303 includes:
Judgment sub-unit 3301, for judging the first recognition of face corresponding to the first object face in the first preview screen
Whether frame is in the predeterminable area of the first preview screen.
First rotation subelement 3302, for when the judged result of judgment sub-unit 3301 is no, rotating the first camera
So that the first recognition of face frame corresponding to first object face in the first preview screen is located at the preset areas of the first preview screen
In domain.
In the embodiment of the present invention, terminal starts camera application, and after entrance screening-mode, first in the first preview screen
The first recognition of face frame is not necessarily located in the predeterminable area of the first preview screen corresponding to target face, wherein, first object
Recognition of face inframe includes first object face.Judgment sub-unit 3301 judges the first object face pair in the first preview screen
Whether the first recognition of face frame answered is in the predeterminable area of the first preview screen, if it is not, the first rotation subelement 3302 revolves
Turn the first camera so that the first recognition of face frame corresponding to first object face in the first preview screen is located at the first preview
In the predeterminable area of picture.
In some feasible embodiments, as shown in figure 5, Fig. 5 is another terminal disclosed in the embodiment of the present invention
Structural representation, the first receiving unit 301, start unit 302, the first rotary unit 303, second that Fig. 5 includes shown in Fig. 4 revolve
Turn unit 304, the second receiving unit 305 and shooting unit 306, the first rotary unit 303 includes the He of judgment sub-unit 3301
First rotation subelement 3302, wherein, the first rotation subelement 3302 includes:
First processing subelement 33021, center position coordinates and the first preview for obtaining the first recognition of face frame are drawn
The predeterminable area center position coordinates in face.
Second processing subelement 33022, for the predeterminable area center position coordinates and first according to the first preview screen
The coordinate difference of the center position coordinates of recognition of face frame sets the first direction of rotation and first anglec of rotation of the first camera.
3rd processing subelement 33023, for the first direction of rotation according to the first camera and the first anglec of rotation control
The rotation of the first camera is made, so that the first recognition of face frame is located in the predeterminable area of the first preview screen.
In the embodiment of the present invention, the predeterminable area of the first preview screen can be square, rectangle, circle etc., preferably
, the predeterminable area of the first preview screen is square, and the predeterminable area of the first preview screen is being located at the first preview screen just
Center.First processing subelement 33021 obtains the center position coordinates of the first recognition of face frame and presetting for the first preview screen
Regional center position coordinates;Second processing subelement 33022 according to the predeterminable area center position coordinates of the first preview screen with
The coordinate difference of the center position coordinates of first recognition of face frame sets the first direction of rotation and the first rotation of the first camera
Angle;3rd processing subelement 33023 is taken the photograph according to the first direction of rotation of the first camera and first anglec of rotation control first
As head rotation, so that the first recognition of face frame is located in the predeterminable area of the first preview screen.If for example, the first recognition of face frame
Center position coordinates be (x0, y0), the predeterminable area center position coordinates of the first preview screen are (m0, n0), the first preview is drawn
The coordinate difference of the predeterminable area center position coordinates in face and the center position coordinates of the first recognition of face frame is Δ x=x0-m0,
Δ y=y0-n0, according to the first direction of rotation of Δ x and Δ y size the first camera of setting and first anglec of rotation.
In some feasible embodiments, as shown in fig. 6, Fig. 6 is another terminal disclosed in the embodiment of the present invention
Structural representation, the first receiving unit 301, start unit 302, the first rotary unit 303, second that Fig. 6 includes shown in Fig. 4 revolve
Turn unit 304, the second receiving unit 305 and shooting unit 306, wherein, the first rotary unit 303 is except including judging that son is single
Outside the rotation subelement 3302 of member 3301 and first, the first rotary unit 303 also includes:
Subelement 3303 is obtained, for obtaining the center position coordinates of the first recognition of face frame.
Whether detection sub-unit 3304, the center position coordinates for detecting the first recognition of face frame change.
Computation subunit 3305, for when the testing result of detection sub-unit 3304 is to be, calculating the first recognition of face frame
Center position coordinates variable quantity.
Subelement 3306 is set, and the variable quantity for the center position coordinates according to the first recognition of face frame sets first to take the photograph
The second direction of rotation and second anglec of rotation as head.
Second rotation subelement 3307, is controlled for the second direction of rotation according to the first camera and second anglec of rotation
First camera rotates, so that the first recognition of face frame is located in the predeterminable area of the first preview screen.
In the embodiment of the present invention, for example, obtain the center of the first recognition of face frame of acquisition of subelement 3303
Initial coordinate is (x0, y0), after detection sub-unit 3304 detects that the center position coordinates of the first recognition of face frame change,
The changing coordinates of the center of first recognition of face frame are (x1, y1), computation subunit 3305 calculates the first recognition of face frame
The variable quantity of center position coordinates is Δ x=x1-x0, Δ y=y1-y0, set subelement 3306 to be set according to Δ x and Δ y size
Put the second direction of rotation and second anglec of rotation of the first camera, the second rotation subelement 3307 is according to the of the first camera
Two direction of rotation and second anglec of rotation control the rotation of the first camera, so that the first recognition of face frame is located at the first preview screen
Predeterminable area in.
Second rotary unit 304, under screening-mode, control second camera to rotate, so that the second preview screen
In the second target face corresponding to the second recognition of face frame be located in the predeterminable area of the second preview screen;Wherein, second is pre-
Picture of looking at is preview screen corresponding to second camera.
In the embodiment of the present invention, at least one target face is included in the second preview screen, the second target face is at least
Any one in one target face, the second target recognition of face inframe includes the second target face.Second rotary unit 304
Second camera rotation is controlled, so that the second recognition of face frame corresponding to the second target face in the second preview screen is positioned at the
In the predeterminable area of two preview screens, the predeterminable area of the second preview screen can be square, rectangle, circle etc., preferably
, the predeterminable area of the second preview screen is square, and the predeterminable area of the second preview screen is being located at the second preview screen just
Center, the area of the predeterminable area of the second preview screen are more than or equal to the area of the second recognition of face frame.The embodiment of the present invention
By controlling the first camera and second camera to rotate, the position of camera is adjusted, so as to obtain more preferable face
Shooting effect.
Second receiving unit 305, for receiving shooting instruction.
In the embodiment of the present invention, it can receive user to trigger by gesture that the second receiving unit 305, which receives shooting instruction,
Shooting instruction or receive user and instruct or receive user by the shooting of speech trigger to pass through face special
The shooting instruction of change triggers is levied, is either smiled for example, facial characteristics can be blink.
Shooting unit 306, instruction execution shooting operation is shot for responding.
In the embodiment of the present invention, terminal response shooting instruction the first camera of control and second camera perform shooting behaviour
Make, it is preferred that terminal response shooting instruction the first camera of control and second camera perform shooting operation simultaneously.
In the embodiment of the present invention, the first receiving unit 301 receives the enabled instruction for camera application;Response startup refers to
Order, start unit 302 controls terminal to start camera application, and enters screening-mode;Under screening-mode, the first rotary unit
303 the first cameras of control rotate, so that the first recognition of face frame position corresponding to the first object face in the first preview screen
In the predeterminable area of the first preview screen;Wherein, the first preview screen is preview screen corresponding to the first camera;Shooting
Under pattern, the second rotary unit 304 control second camera rotation, so that the second target face in the second preview screen is corresponding
The second recognition of face frame be located in the predeterminable area of the second preview screen;Wherein, the second preview screen is second camera pair
The preview screen answered;Second receiving unit 305 receives shooting instruction;The response shooting instruction of shooting unit 306 performs shooting operation.
Implement the embodiment of the present invention, the face shooting effect of camera can be improved.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
The method and terminal of a kind of control dual camera shooting provided above the embodiment of the present invention have been carried out in detail
Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example
It is only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, according to this
The thought of invention, there will be changes in specific embodiments and applications, in summary, this specification content should
It is interpreted as limitation of the present invention.
Claims (4)
- A kind of 1. method for controlling dual camera shooting, it is characterised in that including:Receive the enabled instruction for camera application;The enabled instruction is responded, control terminal starts camera application, and enters screening-mode;Under the screening-mode, whether the first recognition of face frame corresponding to the first object face in the first preview screen is judged In the predeterminable area of first preview screen, if it is not, obtain the first recognition of face frame center position coordinates and The predeterminable area center position coordinates of first preview screen;According to the predeterminable area center of first preview screen The coordinate difference of coordinate and the center position coordinates of the first recognition of face frame sets the first direction of rotation of the first camera With first anglec of rotation;According to first shooting of the first direction of rotation of first camera and the control of first anglec of rotation Head rotation, so that the first recognition of face frame is located in the predeterminable area of first preview screen;Wherein, described first is pre- Picture of looking at is preview screen corresponding to first camera;Under the screening-mode, control second camera rotation, so that the second target face in the second preview screen is corresponding The second recognition of face frame be located in the predeterminable area of second preview screen;Wherein, second preview screen is described Preview screen corresponding to second camera;The first object face and the second target face are different, and because of distance Excessive single camera can not be caught;Receive shooting instruction;Respond the shooting instruction and perform shooting operation.
- 2. according to the method for claim 1, it is characterised in that rotation first camera is so that described first is pre- First recognition of face frame corresponding to the first object face look in picture is located at it in the predeterminable area of first preview screen Afterwards, methods described also includes:Obtain the center position coordinates of the first recognition of face frame;Whether the center position coordinates for detecting the first recognition of face frame change;If so, calculate the variable quantity of the center position coordinates of the first recognition of face frame;Second rotation of first camera is set according to the variable quantity of the center position coordinates of the first recognition of face frame Direction and second anglec of rotation;The first camera rotation is controlled according to the second direction of rotation of first camera and second anglec of rotation, so that The first recognition of face frame is located in the predeterminable area of first preview screen.
- A kind of 3. terminal, it is characterised in that including:First receiving unit, for receiving the enabled instruction for camera application;Start unit, for responding the enabled instruction, control terminal starts camera application, and enters screening-mode;Judgment sub-unit, for judge the first recognition of face frame corresponding to the first object face in the first preview screen whether position In the predeterminable area of first preview screen;First processing subelement, for the center position coordinates for obtaining the first recognition of face frame and first preview screen Predeterminable area center position coordinates;Second processing subelement, for the predeterminable area center position coordinates according to first preview screen with it is described the first The coordinate difference of the center position coordinates of face identification frame sets the first direction of rotation and first anglec of rotation of the first camera;3rd processing subelement, for described in the first direction of rotation according to first camera and the control of first anglec of rotation First camera rotates, so that the first recognition of face frame is located in the predeterminable area of first preview screen;Second rotary unit, under the screening-mode, control second camera to rotate, so that in the second preview screen Second recognition of face frame corresponding to second target face is located in the predeterminable area of second preview screen;Wherein, described Two preview screens are preview screen corresponding to the second camera;The first object face and the second target face are mutual Differ, and because that can not be caught apart from excessive single camera;Second receiving unit, for receiving shooting instruction;Shooting unit, shooting operation is performed for responding the shooting instruction.
- 4. terminal according to claim 3, it is characterised in that first rotary unit also includes:Subelement is obtained, for obtaining the center position coordinates of the first recognition of face frame;Whether detection sub-unit, the center position coordinates for detecting the first recognition of face frame change;Computation subunit, for when the detection sub-unit testing result is to be, calculating in the first recognition of face frame The variable quantity of heart position coordinates;Subelement is set, and the variable quantity for the center position coordinates according to the first recognition of face frame sets described first to take the photograph The second direction of rotation and second anglec of rotation as head;Second rotation subelement, for described in the second direction of rotation according to first camera and the control of second anglec of rotation First camera rotates, so that the first recognition of face frame is located in the predeterminable area of first preview screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510305212.5A CN104967774B (en) | 2015-06-05 | 2015-06-05 | A kind of method and terminal for controlling dual camera shooting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510305212.5A CN104967774B (en) | 2015-06-05 | 2015-06-05 | A kind of method and terminal for controlling dual camera shooting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104967774A CN104967774A (en) | 2015-10-07 |
CN104967774B true CN104967774B (en) | 2018-03-27 |
Family
ID=54221710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510305212.5A Expired - Fee Related CN104967774B (en) | 2015-06-05 | 2015-06-05 | A kind of method and terminal for controlling dual camera shooting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104967774B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN106161962B (en) * | 2016-08-29 | 2018-06-29 | 广东欧珀移动通信有限公司 | A kind of image processing method and terminal |
CN107247548B (en) * | 2017-05-31 | 2018-09-04 | 腾讯科技(深圳)有限公司 | Method for displaying image, image processing method and device |
CN108712602A (en) * | 2018-04-24 | 2018-10-26 | Oppo广东移动通信有限公司 | Camera control method, device, mobile terminal and storage medium |
CN112764523B (en) * | 2019-10-21 | 2022-11-18 | 北京眼神科技有限公司 | Man-machine interaction method and device based on iris recognition and electronic equipment |
CN113556466B (en) * | 2021-06-29 | 2023-01-13 | 荣耀终端有限公司 | Focusing method and electronic equipment |
Citations (6)
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 |
CN103024272A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | Double camera control device, method and system of mobile terminal and mobile terminal |
CN103248824A (en) * | 2013-04-27 | 2013-08-14 | 天脉聚源(北京)传媒科技有限公司 | Method and device for determining shooting angle of camera and picture pick-up system |
CN103607542A (en) * | 2013-11-30 | 2014-02-26 | 深圳市金立通信设备有限公司 | Picture processing method and device and photographic equipment |
CN104601889A (en) * | 2015-01-20 | 2015-05-06 | 广东欧珀移动通信有限公司 | Photographing method and device of mobile terminal |
CN104639735A (en) * | 2013-11-06 | 2015-05-20 | Lg电子株式会社 | Mobile terminal and control method thereof |
-
2015
- 2015-06-05 CN CN201510305212.5A patent/CN104967774B/en not_active Expired - Fee Related
Patent Citations (6)
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 |
CN103024272A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | Double camera control device, method and system of mobile terminal and mobile terminal |
CN103248824A (en) * | 2013-04-27 | 2013-08-14 | 天脉聚源(北京)传媒科技有限公司 | Method and device for determining shooting angle of camera and picture pick-up system |
CN104639735A (en) * | 2013-11-06 | 2015-05-20 | Lg电子株式会社 | Mobile terminal and control method thereof |
CN103607542A (en) * | 2013-11-30 | 2014-02-26 | 深圳市金立通信设备有限公司 | Picture processing method and device and photographic equipment |
CN104601889A (en) * | 2015-01-20 | 2015-05-06 | 广东欧珀移动通信有限公司 | Photographing method and device of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104967774A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104967774B (en) | A kind of method and terminal for controlling dual camera shooting | |
CN107770452B (en) | Photographing method, terminal and related medium product | |
CN109040474B (en) | Photo display method, device, terminal and storage medium | |
CN104469157B (en) | The method and apparatus that a kind of many people of camera shoot | |
US20140104376A1 (en) | Linking-up photographing system and control method for linked-up cameras thereof | |
CN110620873B (en) | Device imaging method and device, storage medium and electronic device | |
US9986155B2 (en) | Image capturing method, panorama image generating method and electronic apparatus | |
CN104104867A (en) | Method for controlling image photographing device for photographing and device thereof | |
CN104883498B (en) | A kind of image pickup method and terminal based on rotating camera | |
CN103795933B (en) | A kind of image processing method and electronic equipment | |
CN110213493B (en) | Device imaging method and device, storage medium and electronic device | |
CN110740260B (en) | Shooting method and device and computer readable storage medium | |
CN104917960B (en) | A kind of method and terminal that control camera to rotate | |
CN106231234B (en) | The image pickup method and system of video conference | |
CN106210543B (en) | Imaging apparatus control method and device | |
CN104601882B (en) | A kind of panorama shooting method and terminal | |
CN105049719B (en) | A kind of panorama shooting method and mobile terminal | |
CN105007417B (en) | Mobile terminal and its rotation camera module control method, control device | |
CN110225243A (en) | Folding screen based shooting control method and device, storage medium and mobile terminal | |
CN110291775A (en) | A kind of track up method, equipment and storage medium | |
US20150062283A1 (en) | Methods and apparatus for expanding a field of view in a video communication session | |
CN108647633B (en) | Identification tracking method, identification tracking device and robot | |
CN105049716B (en) | A kind of preview image processing method and user terminal | |
CN107295260A (en) | A kind of method, photo taking and photo camera for smart machine | |
CN106791456A (en) | A kind of photographic method 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 |
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. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180327 |
|
CF01 | Termination of patent right due to non-payment of annual fee |