CN104967774A - Dual-camera shooting control method and terminal - Google Patents

Dual-camera shooting control method and terminal Download PDF

Info

Publication number
CN104967774A
CN104967774A CN201510305212.5A CN201510305212A CN104967774A CN 104967774 A CN104967774 A CN 104967774A CN 201510305212 A CN201510305212 A CN 201510305212A CN 104967774 A CN104967774 A CN 104967774A
Authority
CN
China
Prior art keywords
preview screen
camera
recognition
face frame
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.)
Granted
Application number
CN201510305212.5A
Other languages
Chinese (zh)
Other versions
CN104967774B (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 CN201510305212.5A priority Critical patent/CN104967774B/en
Publication of CN104967774A publication Critical patent/CN104967774A/en
Application granted granted Critical
Publication of CN104967774B publication Critical patent/CN104967774B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

An embodiment of the invention discloses a dual-camera shooting control method and terminal. The method comprises the steps of receiving a start command for a shooting application; responding to the start command, controlling the terminal to start the shooting application, and entering a shooting mode; controlling a first camera to rotate in the shooting mode so that a first face recognition frame corresponding to a first target face in a first preview image is located in a preset region of the first preview image that is the preview image corresponding to the first camera; controlling a second camera to rotate in the shooting mode so that a second face recognition frame corresponding to a second target face in a second preview image is located in a preset region of the second preview image that is the preview image corresponding to the second camera; and receiving the shooting command; and responding to the shooting command and performing the shooting. The embodiment of the invention can be used for improving the face shooting effect of the camera.

Description

A kind of method and terminal controlling dual camera shooting
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of method and the terminal that control dual camera shooting.
Background technology
Along with the continuous progress and development of electronic technology, increasing intelligent terminal is all configured with camera, some intelligent terminals are also configured with dual camera.Use dual camera can realize three-dimensional to take pictures, obtain image quality more clearly, position due to the dual camera on current intelligent terminal is changeless, when user uses dual camera to carry out face shooting, if when there is two target faces apart from each other, in the preview screen of dual camera, two target faces apart from each other cannot be captured simultaneously.Visible, the face shooting effect of current dual camera is not so good.
Summary of the invention
The embodiment of the present invention discloses a kind of method and the terminal that control dual camera shooting, can improve the face shooting effect of camera.
Embodiment of the present invention first aspect, provides a kind of method controlling dual camera shooting, comprising:
Receive the enabled instruction for camera application;
Respond described enabled instruction, control terminal starts camera application, and enters screening-mode;
Under described screening-mode, control the first camera and rotate, be arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, described first preview screen is the preview screen that described first camera is corresponding;
Under described screening-mode, control second camera and rotate, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in described second preview screen; Wherein, described second preview screen is the preview screen that described second camera is corresponding;
Receive shooting instruction;
Respond described shooting instruction and perform shooting operation.
In the first possible implementation of embodiment of the present invention first aspect, described control first camera rotates, be arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding, comprise:
Judge whether the first recognition of face frame that first object face in described first preview screen is corresponding is arranged in the predeterminable area of described first preview screen;
If not, described first camera is arranged in described first preview screen predeterminable area with the first recognition of face frame making the first object face in described first preview screen corresponding is rotated.
In conjunction with the first possible implementation of embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, described first camera of described rotation is arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in described first preview screen corresponding, comprising:
Obtain the center position coordinates of described first recognition of face frame and the predeterminable area center position coordinates of described first preview screen;
First direction of rotation and first anglec of rotation of described first camera are set according to the coordinate difference of the predeterminable area center position coordinates of described first preview screen and the center position coordinates of described first recognition of face frame;
According to the first direction of rotation and the described first camera rotation of first anglec of rotation control of described first camera, be arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
In conjunction with the first possible implementation of embodiment of the present invention first aspect, in the third possible implementation of embodiment of the present invention first aspect, after described first camera of described rotation is arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in described first preview screen corresponding, described method also comprises:
Obtain the center position coordinates of described first recognition of face frame;
Whether the center position coordinates detecting described first recognition of face frame changes;
If so, the variable quantity of the center position coordinates of described first recognition of face frame is calculated;
Second direction of rotation and second anglec of rotation of described first camera are set according to the variable quantity of the center position coordinates of described first recognition of face frame;
According to the second direction of rotation and the described first camera rotation of second anglec of rotation control of described first camera, be arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
In conjunction with embodiment of the present invention first aspect or embodiment of the present invention first aspect first to the possible implementation of any one in the third, in the 4th kind of possible implementation of embodiment of the present invention first aspect, described first object face and described second target face different.
Embodiment of the present invention second aspect, provides a kind of terminal, comprising:
First receiving element, for receiving the enabled instruction for camera application;
Start unit, for responding described enabled instruction, control terminal starts camera application, and enters screening-mode;
First rotary unit, under described screening-mode, controls the first camera and rotates, be arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, described first preview screen is the preview screen that described first camera is corresponding;
Second rotary unit, under described screening-mode, controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in described second preview screen; Wherein, described second preview screen is the preview screen that described second camera is corresponding;
Second receiving element, for receiving shooting instruction;
Shooting unit, performs shooting operation for responding described shooting instruction.
In the first possible implementation of embodiment of the present invention second aspect, described first rotary unit comprises:
Judgment sub-unit, for judging whether the first recognition of face frame that first object face in described first preview screen is corresponding is arranged in the predeterminable area of described first preview screen;
First gyrator unit, for when described judgment sub-unit judged result is no, rotates described first camera is arranged in described first preview screen predeterminable area with the first recognition of face frame making the first object face in described first preview screen corresponding.
In conjunction with the first possible implementation of embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described first gyrator unit comprises:
First process subelement, for the predeterminable area center position coordinates of the center position coordinates and described first preview screen that obtain described first recognition of face frame;
Second process subelement, for arranging the first direction of rotation and first anglec of rotation of described first camera according to the coordinate difference of the predeterminable area center position coordinates of described first preview screen and the center position coordinates of described first recognition of face frame;
3rd process subelement, rotating for controlling described first camera according to the first direction of rotation of described first camera and first anglec of rotation, being arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
In conjunction with the first possible implementation of embodiment of the present invention second aspect, in the third possible implementation of embodiment of the present invention second aspect, described first rotary unit also comprises:
Obtain subelement, for obtaining the center position coordinates of described first recognition of face frame;
Whether detection sub-unit, change for the center position coordinates detecting described first recognition of face frame;
Computation subunit, for when described detection sub-unit testing result is for being, calculates the variable quantity of the center position coordinates of described first recognition of face frame;
Arrange subelement, the variable quantity for the center position coordinates according to described first recognition of face frame arranges the second direction of rotation and second anglec of rotation of described first camera;
Second gyrator unit, rotating for controlling described first camera according to the second direction of rotation of described first camera and second anglec of rotation, being arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
In conjunction with embodiment of the present invention second aspect or embodiment of the present invention second aspect first to the possible implementation of any one in the third, in the 4th kind of possible implementation of embodiment of the present invention second aspect, described first object face and described second target face different.
In the embodiment of the present invention, terminal receives the enabled instruction for camera application; Response enabled instruction, control terminal starts camera application, and enters screening-mode; Under screening-mode, control the first camera and rotate, be arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding; Under screening-mode, control second camera and rotate, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding; Receive shooting instruction; Response shooting instruction performs shooting operation.By implementing the embodiment of the present invention, in shooting process, can by rotating dual camera (the first camera and second camera), the target face captured to make camera is positioned at the predeterminable area of camera, thus can improve the face shooting effect of camera.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only 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 flow chart controlling the method for dual camera shooting disclosed in the embodiment of the present invention;
Fig. 2 is the disclosed another kind of flow chart controlling the method for dual camera shooting of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of 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 clearly and completely described.Obviously, described execution mode is a part of execution mode of the present invention, instead of whole execution mode.Based on the execution mode in the present invention, the every other execution mode that those of ordinary skill in the art obtain under the prerequisite not making creative work, all should belong to the scope of protection of the invention.
The embodiment of the present invention discloses a kind of method and the terminal that control dual camera shooting, can improve the face shooting effect of camera.Below be described in detail respectively.
The terminal described in the embodiment of the present invention can comprise: mobile phone, panel computer or walkman etc., and above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Refer to Fig. 1, Fig. 1 is a kind of flow chart controlling the method for dual camera shooting 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, comprises step:
S101, receives the enabled instruction for camera application.
In the embodiment of the present invention, terminal receives the enabled instruction for camera application, concrete, user is by camera application (such as changeable camera, U.S. face camera, the beauty's camera etc.) icon in triggering terminal, and terminal receives the enabled instruction for this camera application.
S102, response enabled instruction, 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, controls the first camera and rotates, be arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding.
In the embodiment of the present invention, comprise at least one target face in the first preview screen, first object face is any one at least one target face, comprises first object face in first object recognition of face frame.Control the first camera to rotate, the predeterminable area of the first preview screen is arranged in the first recognition of face frame making the first object face in the first preview screen corresponding, 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, the predeterminable area of the first preview screen is positioned at the centre of the first preview screen, and the area of the predeterminable area of the first preview screen is more than or equal to the area of the first recognition of face frame.
S104, under screening-mode, controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding.
In the embodiment of the present invention, comprise at least one target face in the second preview screen, the second target face is any one at least one target face, comprises the second target face in the second target recognition of face frame.Control second camera rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen, 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, the predeterminable area of the second preview screen is positioned at the centre of the second preview screen, and the area of the predeterminable area of the second preview screen is more than or equal to the area of the second recognition of face frame.The embodiment of the present invention is rotated by control first camera and second camera, adjusts, thus obtain better face shooting effect to the position of camera.It should be noted that, the execution sequence of step S103 and step S104 not clear and definite restriction, first can perform step S103, and then perform step S104, also first can perform step S104, and then perform step S103, step S103 and step S104 can also be performed simultaneously.
In embody rule scene, as shown in Figure 7, Fig. 7 is preview screen figure disclosed in the embodiment of the present invention, under screening-mode, first camera captures the first preview screen, comprises first object face in the first preview screen, first object face corresponding first object recognition of face frame; Second camera captures the second preview screen, comprises the second target face in the second preview screen, the corresponding second target recognition of face frame of the second target face.
S105, receives shooting instruction.
In the embodiment of the present invention, it can be the shooting instruction that reception user is triggered by gesture that terminal receives shooting instruction, also can be receive the shooting instruction of user by speech trigger, also can be receive the shooting instruction of user by facial characteristics change triggers, such as, facial characteristics for nictation or can be smiled.
S106, response shooting instruction performs shooting operation.
In the embodiment of the present invention, terminal response shooting instruction controls the first camera and second camera performs shooting operation, and preferably, terminal response shooting instruction controls the first camera and second camera performs shooting operation simultaneously.
In the embodiment of the present invention, receive the enabled instruction for camera application; Response enabled instruction, control terminal starts camera application, and enters screening-mode; Under screening-mode, control the first camera and rotate, be arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding; Under screening-mode, control second camera and rotate, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding; 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.
Refer to Fig. 2, Fig. 2 is the disclosed another kind of flow chart controlling the method for dual camera shooting of the embodiment of the present invention.As shown in Figure 2, the method for the control dual camera shooting described in the present embodiment, comprises step:
S201, receives the enabled instruction for camera application.
S202, response enabled instruction, control terminal starts camera application, and enters screening-mode.
S203, under screening-mode, controls the first camera and rotates, be arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding.
In the embodiment of the present invention, step S203 can comprise:
Judge whether the first recognition of face frame that first object face in the first preview screen is corresponding is arranged in the predeterminable area of the first preview screen;
If not, the first camera is arranged in the first preview screen predeterminable area with the first recognition of face frame making the first object face in the first preview screen corresponding is rotated.
In the embodiment of the present invention, terminal starts camera application, and after entering screening-mode, the first recognition of face frame that the first object face in the first preview screen is corresponding is not necessarily arranged in the predeterminable area of the first preview screen, wherein, first object face is comprised in first object recognition of face frame.Judge whether the first recognition of face frame that first object face in the first preview screen is corresponding is arranged in the predeterminable area of the first preview screen, if, perform step S205, if not, the first camera is arranged in the first preview screen predeterminable area with the first recognition of face frame making the first object face in the first preview screen corresponding is rotated.
Wherein, rotate the first camera is arranged in the first preview screen predeterminable area with the first recognition of face frame making the first object face in the first preview screen corresponding, can comprise the steps:
11) center position coordinates of the first recognition of face frame and the predeterminable area center position coordinates of the first preview screen is obtained;
12) the first direction of rotation and first anglec of rotation of the first camera are set according to the coordinate difference of the predeterminable area center position coordinates of the first preview screen and the center position coordinates of the first recognition of face frame;
13) control the first camera according to the first direction of rotation of the first camera and first anglec of rotation to rotate, with the predeterminable area making the first recognition of face frame be arranged in 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., and preferably, the predeterminable area of the first preview screen is square, and the predeterminable area of the first preview screen is positioned at the centre of the first preview screen.Obtain the center position coordinates of the first recognition of face frame and the predeterminable area center position coordinates of the first preview screen; First direction of rotation and first anglec of rotation of the first camera are set according to the coordinate difference of the predeterminable area center position coordinates of the first preview screen and the center position coordinates of the first recognition of face frame; Control the first camera according to the first direction of rotation of the first camera and first anglec of rotation to rotate, with the predeterminable area making the first recognition of face frame be arranged in the first preview screen.Such as, if the center position coordinates of the first recognition of face frame is (x 0, y 0), the predeterminable area center position coordinates of the first preview screen is (m 0, n 0), the coordinate difference of the predeterminable area center position coordinates of the first preview screen and the center position coordinates of the first recognition of face frame is Δ x=x 0-m 0, Δ y=y 0-n 0, the first direction of rotation and first anglec of rotation of the first camera are set according to the size of Δ x and Δ y.
In the execution mode that some are feasible, rotate after the first camera is arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding, step S203 also comprises the steps:
Obtain the center position coordinates of the first recognition of face frame;
Whether the center position coordinates detecting the first recognition of face frame changes;
If so, the variable quantity of the center position coordinates of the first recognition of face frame is calculated;
Second direction of rotation and second anglec of rotation of the first camera are set according to the variable quantity of the center position coordinates of the first recognition of face frame;
Control the first camera according to the second direction of rotation of the first camera and second anglec of rotation to rotate, with the predeterminable area making the first recognition of face frame be arranged in 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 (x 0, y 0), after detecting that the center position coordinates of the first recognition of face frame changes, the changing coordinates of the center of the first recognition of face frame is (x 1, y 1), the variable quantity calculating the center position coordinates of the first recognition of face frame is Δ x=x 1-x 0, Δ y=y 1-y 0second direction of rotation and second anglec of rotation of the first camera are set according to the size of Δ x and Δ y, control the first camera according to the second direction of rotation of the first camera and second anglec of rotation to rotate, with the predeterminable area making the first recognition of face frame be arranged in the first preview screen.
S204, under screening-mode, controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding.
In the embodiment of the present invention, step S204 can comprise:
Judge whether the second recognition of face frame that the second target face in the second preview screen is corresponding is arranged in the predeterminable area of the second preview screen;
If not, volume camera is rotated with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen.
In the embodiment of the present invention, terminal starts camera application, and after entering screening-mode, the second recognition of face frame that the second target face in the second preview screen is corresponding is not necessarily arranged in the predeterminable area of the second preview screen, wherein, the second target face is comprised in the second target recognition of face frame.Judge whether the second recognition of face frame that the second target face in the second preview screen is corresponding is arranged in the predeterminable area of the second preview screen, if, perform step S205, if not, second camera is rotated with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen.
Wherein, rotate second camera with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen, can comprise the steps:
21) center position coordinates of the second recognition of face frame and the predeterminable area center position coordinates of the second preview screen is obtained;
22) the 3rd direction of rotation and the 3rd anglec of rotation of second camera are set according to the coordinate difference of the predeterminable area center position coordinates of the second preview screen and the center position coordinates of the second recognition of face frame;
23) according to the 3rd direction of rotation and the rotation of the 3rd anglec of rotation control second camera of second camera, with the predeterminable area making the second recognition of face frame be arranged in 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., and preferably, the predeterminable area of the second preview screen is square, and the predeterminable area of the second preview screen is positioned at the centre of the second preview screen.Obtain the center position coordinates of the second recognition of face frame and the predeterminable area center position coordinates of the second preview screen; 3rd direction of rotation and the 3rd anglec of rotation of second camera are set according to the coordinate difference of the predeterminable area center position coordinates of the second preview screen and the center position coordinates of the second recognition of face frame; According to the 3rd direction of rotation and the rotation of the 3rd anglec of rotation control second camera of second camera, with the predeterminable area making the second recognition of face frame be arranged in the second preview screen.Such as, if the center position coordinates of the second recognition of face frame is (x 0', y 0'), the predeterminable area center position coordinates of the second preview screen is (m 0', n 0'), the coordinate difference of the predeterminable area center position coordinates of the second preview screen and the center position coordinates of the second recognition of face frame is Δ x '=x 0'-m 0', Δ y '=y 0'-n 0', the 3rd direction of rotation and the 3rd anglec of rotation of second camera are set according to the size of Δ x ' and Δ y '.
In the execution mode that some are feasible, first object face and the second target face different, when needs shooting two faces, by the first object face picture of the first camera shooting and second camera are taken the second target face picture combination producing Target Photo, better face shooting effect can be obtained.
S205, receives shooting instruction.
S206, response shooting instruction performs shooting operation.
In the embodiment of the present invention, step S201 ~ step S201 can consult the step S101 shown in Fig. 1 ~ step S102, and step S205 ~ step S206 can consult the step S105 shown in Fig. 1 ~ step S106, and the embodiment of the present invention repeats no more.
In the embodiment of the present invention, receive the enabled instruction for camera application; Response enabled instruction, control terminal starts camera application, and enters screening-mode; Under screening-mode, control the first camera and rotate, be arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding; Under screening-mode, control second camera and rotate, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding; 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.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.As shown in Figure 3, the terminal described in the present embodiment, comprises the first receiving element 301, start unit 302, first rotary unit 303, second rotary unit 304, second receiving element 305 and shooting unit 306, wherein:
First receiving element 301, for receiving the enabled instruction for camera application.
In the embodiment of the present invention, first receiving element 301 receives the enabled instruction for camera application, concrete, user is by camera application (such as changeable camera, U.S. face camera, the beauty's camera etc.) icon in triggering terminal, and the first receiving element 301 receives the enabled instruction for this 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 screening-mode.Under screening-mode, camera can capture preview screen.
First rotary unit 303, under screening-mode, controls the first camera and rotates, be arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding.
In the embodiment of the present invention, comprise at least one target face in the first preview screen, first object face is any one at least one target face, comprises first object face in first object recognition of face frame.First rotary unit 303 controls the first camera and rotates, the predeterminable area of the first preview screen is arranged in the first recognition of face frame making the first object face in the first preview screen corresponding, 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, the predeterminable area of the first preview screen is positioned at the centre of the first preview screen, and the area of the predeterminable area of the first preview screen is more than or equal to the area of the first recognition of face frame.
In the execution mode that some are feasible, as shown in Figure 4, Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, Fig. 4 comprises the first receiving element 301 shown in Fig. 3, start unit 302, first rotary unit 303, second rotary unit 304, second receiving element 305 and shooting unit 306, wherein, the first rotary unit 303 comprises:
Judgment sub-unit 3301, for judging whether the first recognition of face frame that first object face in the first preview screen is corresponding is arranged in the predeterminable area of the first preview screen.
First gyrator unit 3302, for when judgment sub-unit 3301 judged result is no, rotates the first camera is arranged in the first preview screen predeterminable area with the first recognition of face frame making the first object face in the first preview screen corresponding.
In the embodiment of the present invention, terminal starts camera application, and after entering screening-mode, the first recognition of face frame that the first object face in the first preview screen is corresponding is not necessarily arranged in the predeterminable area of the first preview screen, wherein, first object face is comprised in first object recognition of face frame.Judgment sub-unit 3301 judges whether the first recognition of face frame that the first object face in the first preview screen is corresponding is arranged in the predeterminable area of the first preview screen, if not, the first gyrator unit 3302 rotates the first camera is arranged in the first preview screen predeterminable area with the first recognition of face frame making the first object face in the first preview screen corresponding.
In the execution mode that some are feasible, as shown in Figure 5, Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, Fig. 5 comprises the first receiving element 301 shown in Fig. 4, start unit 302, first rotary unit 303, second rotary unit 304, second receiving element 305 and shooting unit 306, first rotary unit 303 comprises judgment sub-unit 3301 and the first gyrator unit 3302, wherein, the first gyrator unit 3302 comprises:
First process subelement 33021, for the predeterminable area center position coordinates of the center position coordinates and the first preview screen that obtain the first recognition of face frame.
Second process subelement 33022, for arranging the first direction of rotation and first anglec of rotation of the first camera according to the coordinate difference of the predeterminable area center position coordinates of the first preview screen and the center position coordinates of the first recognition of face frame.
3rd process subelement 33023, rotates for controlling the first camera according to the first direction of rotation of the first camera and first anglec of rotation, with the predeterminable area making the first recognition of face frame be arranged in 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., and preferably, the predeterminable area of the first preview screen is square, and the predeterminable area of the first preview screen is positioned at the centre of the first preview screen.First process subelement 33021 obtains the center position coordinates of the first recognition of face frame and the predeterminable area center position coordinates of the first preview screen; Second process subelement 33022 arranges the first direction of rotation and first anglec of rotation of the first camera according to the coordinate difference of the center position coordinates of the predeterminable area center position coordinates of the first preview screen and the first recognition of face frame; 3rd process subelement 33023 controls the first camera according to the first direction of rotation of the first camera and first anglec of rotation and rotates, with the predeterminable area making the first recognition of face frame be arranged in the first preview screen.Such as, if the center position coordinates of the first recognition of face frame is (x 0, y 0), the predeterminable area center position coordinates of the first preview screen is (m 0, n 0), the coordinate difference of the predeterminable area center position coordinates of the first preview screen and the center position coordinates of the first recognition of face frame is Δ x=x 0-m 0, Δ y=y 0-n 0, the first direction of rotation and first anglec of rotation of the first camera are set according to the size of Δ x and Δ y.
In the execution mode that some are feasible, as shown in Figure 6, Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, Fig. 6 comprises the first receiving element 301 shown in Fig. 4, start unit 302, first rotary unit 303, second rotary unit 304, second receiving element 305 and shooting unit 306, wherein, first rotary unit 303 is except comprising judgment sub-unit 3301 and the first gyrator unit 3302, and the first rotary unit 303 also comprises:
Obtain subelement 3303, for obtaining the center position coordinates of the first recognition of face frame.
Whether detection sub-unit 3304, change for the center position coordinates detecting the first recognition of face frame.
Computation subunit 3305, for when detection sub-unit 3304 testing result is for being, calculates the variable quantity of the center position coordinates of the first recognition of face frame.
Arrange subelement 3306, the variable quantity for the center position coordinates according to the first recognition of face frame arranges the second direction of rotation and second anglec of rotation of the first camera.
Second gyrator unit 3307, rotates for controlling the first camera according to the second direction of rotation of the first camera and second anglec of rotation, with the predeterminable area making the first recognition of face frame be arranged in the first preview screen.
In the embodiment of the present invention, for example, obtain subelement 3303 and obtain the initial coordinate of the center of the first recognition of face frame for (x 0, y 0), after detection sub-unit 3304 detects that the center position coordinates of the first recognition of face frame changes, the changing coordinates of the center of the first recognition of face frame is (x 1, y 1), the variable quantity that computation subunit 3305 calculates the center position coordinates of the first recognition of face frame is Δ x=x 1-x 0, Δ y=y 1-y 0subelement 3306 arranges the first camera the second direction of rotation and second anglec of rotation according to the size of Δ x and Δ y are set, second gyrator unit 3307 controls the first camera according to the second direction of rotation of the first camera and second anglec of rotation and rotates, with the predeterminable area making the first recognition of face frame be arranged in the first preview screen.
Second rotary unit 304, under screening-mode, controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding.
In the embodiment of the present invention, comprise at least one target face in the second preview screen, the second target face is any one at least one target face, comprises the second target face in the second target recognition of face frame.Second rotary unit 304 controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen, 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, the predeterminable area of the second preview screen is positioned at the centre of the second preview screen, and the area of the predeterminable area of the second preview screen is more than or equal to the area of the second recognition of face frame.The embodiment of the present invention is rotated by control first camera and second camera, adjusts, thus obtain better face shooting effect to the position of camera.
Second receiving element 305, for receiving shooting instruction.
In the embodiment of the present invention, it can be the shooting instruction that reception user is triggered by gesture that second receiving element 305 receives shooting instruction, also can be receive the shooting instruction of user by speech trigger, also can be receive the shooting instruction of user by facial characteristics change triggers, such as, facial characteristics for nictation or can be smiled.
Shooting unit 306, performs shooting operation for responding shooting instruction.
In the embodiment of the present invention, terminal response shooting instruction controls the first camera and second camera performs shooting operation, and preferably, terminal response shooting instruction controls the first camera and second camera performs shooting operation simultaneously.
In the embodiment of the present invention, the first receiving element 301 receives the enabled instruction for camera application; Response enabled instruction, start unit 302 control terminal starts camera application, and enters screening-mode; Under screening-mode, the first rotary unit 303 controls the first camera and rotates, and is arranged in the predeterminable area of the first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, the first preview screen is the preview screen that the first camera is corresponding; Under screening-mode, the second rotary unit 304 controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in the second preview screen; Wherein, the second preview screen is the preview screen that second camera is corresponding; Second receiving element 305 receives shooting instruction; Shooting unit 306 responds shooting instruction and 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 that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Above to the embodiment of the present invention provide a kind of control dual camera shooting method and terminal be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. control a method for dual camera shooting, it is characterized in that, comprising:
Receive the enabled instruction for camera application;
Respond described enabled instruction, control terminal starts camera application, and enters screening-mode;
Under described screening-mode, control the first camera and rotate, be arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, described first preview screen is the preview screen that described first camera is corresponding;
Under described screening-mode, control second camera and rotate, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in described second preview screen; Wherein, described second preview screen is the preview screen that described second camera is corresponding;
Receive shooting instruction;
Respond described shooting instruction and perform shooting operation.
2. method according to claim 1, is characterized in that, described control first camera rotates, and is arranged in the predeterminable area of described first preview screen, comprises with the first recognition of face frame making the first object face in the first preview screen corresponding:
Judge whether the first recognition of face frame that first object face in described first preview screen is corresponding is arranged in the predeterminable area of described first preview screen;
If not, described first camera is arranged in described first preview screen predeterminable area with the first recognition of face frame making the first object face in described first preview screen corresponding is rotated.
3. method according to claim 2, is characterized in that, described first camera of described rotation is arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in described first preview screen corresponding, comprising:
Obtain the center position coordinates of described first recognition of face frame and the predeterminable area center position coordinates of described first preview screen;
First direction of rotation and first anglec of rotation of described first camera are set according to the coordinate difference of the predeterminable area center position coordinates of described first preview screen and the center position coordinates of described first recognition of face frame;
According to the first direction of rotation and the described first camera rotation of first anglec of rotation control of described first camera, be arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
4. method according to claim 2, it is characterized in that, after described first camera of described rotation is arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in described first preview screen corresponding, described method also comprises:
Obtain the center position coordinates of described first recognition of face frame;
Whether the center position coordinates detecting described first recognition of face frame changes;
If so, the variable quantity of the center position coordinates of described first recognition of face frame is calculated;
Second direction of rotation and second anglec of rotation of described first camera are set according to the variable quantity of the center position coordinates of described first recognition of face frame;
According to the second direction of rotation and the described first camera rotation of second anglec of rotation control of described first camera, be arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
5. the method according to any one of Claims 1 to 4, is characterized in that, described first object face and described second target face different.
6. a terminal, is characterized in that, comprising:
First receiving element, for receiving the enabled instruction for camera application;
Start unit, for responding described enabled instruction, control terminal starts camera application, and enters screening-mode;
First rotary unit, under described screening-mode, controls the first camera and rotates, be arranged in the predeterminable area of described first preview screen with the first recognition of face frame making the first object face in the first preview screen corresponding; Wherein, described first preview screen is the preview screen that described first camera is corresponding;
Second rotary unit, under described screening-mode, controls second camera and rotates, with the predeterminable area making the second recognition of face frame corresponding to the second target face in the second preview screen be arranged in described second preview screen; Wherein, described second preview screen is the preview screen that described second camera is corresponding;
Second receiving element, for receiving shooting instruction;
Shooting unit, performs shooting operation for responding described shooting instruction.
7. terminal according to claim 6, is characterized in that, described first rotary unit comprises:
Judgment sub-unit, for judging whether the first recognition of face frame that first object face in described first preview screen is corresponding is arranged in the predeterminable area of described first preview screen;
First gyrator unit, for when described judgment sub-unit judged result is no, rotates described first camera is arranged in described first preview screen predeterminable area with the first recognition of face frame making the first object face in described first preview screen corresponding.
8. terminal according to claim 7, is characterized in that, described first gyrator unit comprises:
First process subelement, for the predeterminable area center position coordinates of the center position coordinates and described first preview screen that obtain described first recognition of face frame;
Second process subelement, for arranging the first direction of rotation and first anglec of rotation of described first camera according to the coordinate difference of the predeterminable area center position coordinates of described first preview screen and the center position coordinates of described first recognition of face frame;
3rd process subelement, rotating for controlling described first camera according to the first direction of rotation of described first camera and first anglec of rotation, being arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
9. terminal according to claim 7, is characterized in that, described first rotary unit also comprises:
Obtain subelement, for obtaining the center position coordinates of described first recognition of face frame;
Whether detection sub-unit, change for the center position coordinates detecting described first recognition of face frame;
Computation subunit, for when described detection sub-unit testing result is for being, calculates the variable quantity of the center position coordinates of described first recognition of face frame;
Arrange subelement, the variable quantity for the center position coordinates according to described first recognition of face frame arranges the second direction of rotation and second anglec of rotation of described first camera;
Second gyrator unit, rotating for controlling described first camera according to the second direction of rotation of described first camera and second anglec of rotation, being arranged in the predeterminable area of described first preview screen to make described first recognition of face frame.
10. the terminal according to any one of claim 6 ~ 9, is characterized in that, described first object face and described second target face different.
CN201510305212.5A 2015-06-05 2015-06-05 A kind of method and terminal for controlling dual camera shooting Expired - Fee Related CN104967774B (en)

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 true CN104967774A (en) 2015-10-07
CN104967774B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN106161962A (en) * 2016-08-29 2016-11-23 广东欧珀移动通信有限公司 A kind of image processing method and terminal
CN107247548A (en) * 2017-05-31 2017-10-13 腾讯科技(深圳)有限公司 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
CN112764523A (en) * 2019-10-21 2021-05-07 北京眼神科技有限公司 Man-machine interaction method and device based on iris recognition and electronic equipment
CN116055874A (en) * 2021-06-29 2023-05-02 荣耀终端有限公司 Focusing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Cited By (11)

* Cited by examiner, † Cited by third party
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
WO2017124792A1 (en) * 2016-01-21 2017-07-27 惠州Tcl移动通信有限公司 Method and system for dynamically capturing photograph of face, and mobile terminal
US10498952B2 (en) * 2016-01-21 2019-12-03 Huizhou Tcl Mobile Communication Co., Ltd. Shooting method and shooting system capable of realizing dynamic capturing of human faces based on mobile terminal
CN106161962A (en) * 2016-08-29 2016-11-23 广东欧珀移动通信有限公司 A kind of image processing method and terminal
CN106161962B (en) * 2016-08-29 2018-06-29 广东欧珀移动通信有限公司 A kind of image processing method and terminal
CN107247548A (en) * 2017-05-31 2017-10-13 腾讯科技(深圳)有限公司 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
CN112764523A (en) * 2019-10-21 2021-05-07 北京眼神科技有限公司 Man-machine interaction method and device based on iris recognition and electronic equipment
CN112764523B (en) * 2019-10-21 2022-11-18 北京眼神科技有限公司 Man-machine interaction method and device based on iris recognition and electronic equipment
CN116055874A (en) * 2021-06-29 2023-05-02 荣耀终端有限公司 Focusing method and electronic equipment
CN116055874B (en) * 2021-06-29 2023-10-20 荣耀终端有限公司 Focusing method and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104967774A (en) Dual-camera shooting control method and terminal
CN104902170B (en) A kind of photographic method and terminal
CN105578026B (en) A kind of image pickup method and user terminal
US20170180649A1 (en) Method for photographing control and electronic device thereof
CN103051841B (en) The control method of time of exposure and device
JP6205071B2 (en) Imaging control apparatus, imaging control method, camera system, and program
CN110650241B (en) Method for presenting panoramic photo in mobile terminal and mobile terminal
CN205249356U (en) Shooting equipment and controlling means thereof
CN104883497A (en) Positioning shooting method and mobile terminal
CN104574397B (en) The method and mobile terminal of a kind of image procossing
CN102915188B (en) A kind of method of display state of control terminal screen and device
CN104539843A (en) Terminal shooting method
CN107566579A (en) Image pickup method, device, terminal and storage medium
CN104539844A (en) Terminal
CN104735348B (en) Double-camera photographing method and system
CN104883498B (en) A kind of image pickup method and terminal based on rotating camera
CN110213493B (en) Device imaging method and device, storage medium and electronic device
CN105049712A (en) Method of starting terminal wide angle camera and terminal
EP2897354B1 (en) Method for setting image capture conditions and electronic device performing the same
WO2014161313A1 (en) Shooting region determination method and system
CN105338238A (en) Photographing method and electronic device
CN105827940A (en) Photographing method and electronic device
CN106331497A (en) Image processing method and terminal
CN105262948A (en) Panorama capturing method and mobile terminal
CN104967777A (en) Method for controlling camera to carry out photographing, and terminal

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