WO2016015261A1 - 对焦方法和对焦装置 - Google Patents

对焦方法和对焦装置 Download PDF

Info

Publication number
WO2016015261A1
WO2016015261A1 PCT/CN2014/083359 CN2014083359W WO2016015261A1 WO 2016015261 A1 WO2016015261 A1 WO 2016015261A1 CN 2014083359 W CN2014083359 W CN 2014083359W WO 2016015261 A1 WO2016015261 A1 WO 2016015261A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
focus
touch point
sliding
displacement
Prior art date
Application number
PCT/CN2014/083359
Other languages
English (en)
French (fr)
Inventor
王健
叶志远
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to CN201480080664.1A priority Critical patent/CN107076961B/zh
Priority to PCT/CN2014/083359 priority patent/WO2016015261A1/zh
Priority to EP14899049.2A priority patent/EP3159722A1/en
Publication of WO2016015261A1 publication Critical patent/WO2016015261A1/zh
Priority to US15/412,298 priority patent/US10440253B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/04Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
    • G02B7/06Focusing binocular pairs
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Definitions

  • the present invention relates to the field of terminal technology having dual cameras, and in particular to a focusing method and a focusing device. Background technique
  • the invention is based on the above problems, and proposes a new technical solution, which can realize simultaneous focusing of two cameras, so that the user can take high-quality and high-definition photos by using the dual cameras, thereby achieving the purpose of improving the user experience.
  • an aspect of the present invention provides a focusing method for a terminal having a dual camera, wherein the dual camera is located at one side of the terminal, and includes: a determining step, when in the dual camera When detecting the preview interface, if it is detected that there are two touch points on the shooting preview interface, respectively determining, among the two camera focuses of the dual camera, corresponding to the first touch point of the two touch points a first camera focus, and a second camera focus corresponding to the second touch point of the two touch points; a focus adjustment step, respectively, according to the first touch point and the second touch point a sliding track on the interface, the position of the first camera focus and the second camera focus is adjusted, wherein the first camera focus and the second camera focus are on the same straight line.
  • the terminal detects that there are two touch points on the shooting preview interface
  • the camera focus corresponding to each touch point is determined, thereby realizing control of one camera focus using one touch point.
  • the two touch points can be adjusted to adjust the focus of the camera corresponding to the two touch points, thereby ensuring that both cameras achieve clear focus at the same time, thereby ensuring that the two cameras shoot out.
  • the composite photo has a higher definition.
  • the user is using two cameras to take a distant view and take a close-up view.
  • the two cameras can be simultaneously focused, that is, by sliding one of the touch points, the focus of one of the cameras is adjusted to the distant view, and at the same time
  • the focus of the other camera is adjusted to a close-up view by another touch point, so that the two cameras can be simultaneously focused to obtain a picture with a clear view.
  • the focus adjustment step specifically includes: acquiring a sliding trajectory of the first touch point and a sliding trajectory of the second touch point, respectively; according to the sliding track of the first touch point Determining a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the sliding; according to a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the slide, according to a preset displacement and direction conversion rule, Determining a sliding direction and a sliding displacement of the focus of the first camera; determining a direction of sliding of the second touch point and a horizontal displacement or a vertical displacement of the sliding according to the sliding trajectory of the second touch point; a direction in which the touch point slides and a horizontal displacement or a vertical displacement of the slide, determining a sliding direction and a sliding displacement of the focus of the second camera according to a preset displacement and direction conversion rule; according to a sliding direction of the focus of the first camera a sliding displacement adjusts a position of the first camera focus, according to the
  • the real-time position of the two touch points can be accurately determined, and then according to the real-time position of the two touch points and the preset displacement and direction conversion rules, the accuracy can be accurately The real-time position of the corresponding focus of the two cameras is determined.
  • the method further includes: when the first touch point approaches/is away from the second touch point, the first camera focus is closer to/away from the second camera focus, When the second touch point approaches/is away from the first touch point, the second camera The focus is closer to/away from the first camera focus, and when the first touch point and the second touch point are close to/away from each other, the first camera focus and the second camera focus are close to/away from each other.
  • the change of the relative distance between the focus of the two cameras is consistent with the change of the relative distance between the two touch points, that is, when the relative distance between the first touch point and the second touch point becomes smaller, the first camera focus
  • the relative distance from the focus of the second camera also becomes smaller, and the consistent relationship of the change is in line with the normal thinking of the user, which is convenient for the user to adjust the focus.
  • the relationship between the change of the relative distance of the two camera focuss and the change of the relative distance between the two touch points includes, but is not limited to, the above manner, for example, when the relative distance between the first touch point and the second touch point becomes smaller, the first The relative distance between the focus of the camera and the focus of the second camera can also increase.
  • the preset displacement and direction conversion rule includes: a sliding displacement of the first touch point and the second touch point, and the first camera focus and the second camera a displacement ratio between the sliding displacements of the focus, and a correspondence relationship between the sliding directions of the first touch point and the second touch point and the sliding direction of the first camera focus and the second camera focus.
  • the displacement ratio between the sliding displacement of the two touch points and the sliding displacement of the focus of the two cameras is pre-set in the terminal, and the correspondence between the sliding direction of the two touch points and the sliding direction of the focus of the two cameras is
  • the specific positions of the two camera focus points corresponding to the two touch points automatically change with the change of the sliding trajectory of the two touch points.
  • the user can also manually adjust the displacement ratio and the corresponding relationship according to individual needs to meet the needs of different users.
  • the determining step further includes: when in the shooting preview interface corresponding to the dual camera, determining, according to the received focus selection command, whether the position of the dual camera focus needs to be adjusted, and If the result of the determination is YES, if two touch points are detected on the shooting preview interface, respectively, respectively, two camera focuss of the dual camera are determined, corresponding to the first touch points of the two touch points. a first camera focus, and a second camera focus corresponding to the second one of the two touch points.
  • the user can choose to adjust or not adjust the dual camera according to individual needs.
  • the position of the focus for example, if the user thinks that the position of the terminal's default dual camera focus is already able to capture a clear picture, then you can choose not to adjust the position of the dual camera focus.
  • the terminal automatically adjusts the position of the dual camera focus corresponding to the two touch points according to the positions of the two touch points.
  • the method further includes: determining, according to a relative position between the two touch points, and a relative position between the dual cameras, two camera focuss of the dual camera, a first camera focus corresponding to the first touch point of the two touch points, and a second camera focus corresponding to the second touch point of the two touch points.
  • the terminal automatically matches the first camera focus corresponding to the first touch point and the second touch point according to the relative position between the two touch points and the relative position between the dual cameras.
  • Second camera focus For example, when it is detected that there are two touch points on the interface, the touch point on the left controls the camera on the left and the touch point on the right controls the camera on the right.
  • Another aspect of the present invention provides a focusing apparatus for a terminal having a dual camera, wherein the dual camera is located at one side of the terminal, and includes: a determining unit, when in a shooting preview corresponding to the dual camera In the interface, if two touch points are detected on the shooting preview interface, respectively, among the two camera focuses of the dual camera, the first camera corresponding to the first touch point of the two touch points is respectively determined.
  • the sliding track on the shooting preview interface adjusts a position of the first camera focus and the second camera focus, wherein the first camera focus and the second camera focus are on the same straight line.
  • the terminal detects that there are two touch points on the shooting preview interface
  • the camera focus corresponding to each touch point is determined, thereby realizing control of one camera head focus using one touch point.
  • the two touch points can be adjusted to adjust the focus of the camera corresponding to the two touch points, thereby ensuring that both cameras achieve clear focus at the same time, thereby ensuring that the two cameras shoot out.
  • the composite photo has a higher definition.
  • the user is using two cameras to take a distant view and shoot close-ups, at this point by sliding two touches Touching, the two cameras can be simultaneously focused, that is, by sliding one of the touch points, the focus of one of the cameras is adjusted to the distant view, and the focus of the other camera is adjusted to the close view by another touch point, so that the two cameras can At the same time, the focus is clear, so that you can get clear pictures with far and near views.
  • the focus adjustment unit is specifically configured to: separately acquire a sliding track of the first touch point and a sliding track of the second touch point; and a sliding track according to the first touch point Determining a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the sliding; according to a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the slide, according to a preset displacement and direction conversion rule, Determining a sliding direction and a sliding displacement of the focus of the first camera; determining a direction of sliding of the second touch point and a horizontal displacement or a vertical displacement of the sliding according to the sliding trajectory of the second touch point; a direction in which the touch point slides and a horizontal displacement or a vertical displacement of the slide, determining a sliding direction and a sliding displacement of the focus of the second camera according to a preset displacement and direction conversion rule; according to a sliding direction of the focus of the first camera
  • the sliding displacement adjusts the position of the first camera focus, ⁇ , according to the sliding
  • the real-time position of the two touch points can be accurately determined, and then according to the real-time position of the two touch points and the preset displacement and direction conversion rules, the accuracy can be accurately The real-time position of the corresponding focus of the two cameras is determined.
  • the focus adjustment unit is further configured to: when the first touch point approaches/removes the second touch point, the first camera focus is toward the second camera focus Approaching/disturbing, when the second touch point approaches/away from the first touch point, the second camera focus approaches/distances to the first camera focus, when the first touch point and the When the second touch points are close to/away from each other, the first camera focus and the second camera focus are close to/away from each other.
  • the change of the relative distance between the focus of the two cameras is consistent with the change of the relative distance between the two touch points, that is, when the relative distance between the first touch point and the second touch point becomes smaller, the first camera focus The relative distance from the focus of the second camera also becomes smaller, and the consistent relationship of the change is in line with the normal thinking of the user, which is convenient for the user to adjust the focus.
  • the relationship between the change of the relative distance of the two camera focuss and the change of the relative distance between the two touch points includes, but is not limited to, the above manner, for example, when the relative distance between the first touch point and the second touch point becomes smaller, the first The relative distance between the focus of the camera and the focus of the second camera can also increase.
  • the preset displacement and direction conversion rule includes: a sliding displacement of the first touch point and the second touch point, and the first camera focus and the second camera a displacement ratio between the sliding displacements of the focus, and a correspondence relationship between the sliding directions of the first touch point and the second touch point and the sliding direction of the first camera focus and the second camera focus.
  • the displacement ratio between the sliding displacement of the two touch points and the sliding displacement of the focus of the two cameras is pre-set in the terminal, and the correspondence between the sliding direction of the two touch points and the sliding direction of the focus of the two cameras is
  • the specific positions of the two camera focus points corresponding to the two touch points automatically change with the change of the sliding trajectory of the two touch points.
  • the user can also manually adjust the displacement ratio and the corresponding relationship according to individual needs to meet the needs of different users.
  • the determining unit further includes: a determining unit, when in the shooting preview interface corresponding to the dual camera, determining, according to the received focus selection command, whether the position of the dual camera focus needs to be adjusted And the determining unit is further configured to: when the determination result is yes, if two touch points are detected on the shooting preview interface, respectively determine two camera focuss of the dual camera, and the two a first camera focus corresponding to the first touch point of the touch points, and a second camera focus corresponding to the second touch point of the two touch points.
  • the user can choose to adjust or not adjust the position of the dual camera focus according to individual needs. For example, if the user thinks that the position of the terminal's default dual camera focus can already capture a clear picture, then the user can choose not to adjust the dual camera. The location of the focus. However, if the user chooses to adjust the position of the dual camera focus, the terminal automatically adjusts the position of the dual camera focus corresponding to the two touch points based on the positions of the two touch points.
  • the determining unit is further configured to: determine the dual camera according to a relative position between the two touch points, and a relative position between the dual cameras. Among the two camera focuses of the head, a first camera focus corresponding to the first touch point of the two touch points, and a second camera focus corresponding to the second touch point of the two touch points.
  • the terminal automatically matches the first camera focus corresponding to the first touch point and the second touch point according to the relative position between the two touch points and the relative position between the dual cameras.
  • Second camera focus For example, when it is detected that there are two touch points on the interface, the touch point on the left controls the camera on the left and the touch point on the right controls the camera on the right.
  • FIG. 1 is a flow chart showing a focusing method according to an embodiment of the present invention
  • FIGS. 2A to 2D are schematic diagrams showing a positional change relationship between two touch points and two camera focuss according to an embodiment of the present invention
  • FIG. 3 is a flow chart showing a focusing method according to another embodiment of the present invention.
  • FIG. 4 is a view showing the configuration of a focusing device according to another embodiment of the present invention. detailed description
  • FIG. 1 shows a flow chart of a focusing method according to an embodiment of the present invention.
  • the focusing method includes: determining step 102, when it is in the shooting preview interface corresponding to the dual camera, if it is detected that there are two touch points on the shooting preview interface, Then respectively determining the two camera focus of the dual camera, a first camera focus corresponding to the first touch point of the two touch points, and a second camera focus corresponding to the second touch point of the two touch points; a focus adjustment step 104, respectively according to the a sliding track of the first touch point and the second touch point on the shooting preview interface, adjusting a position of the first camera focus and the second camera focus, wherein the first camera focus and the The second camera focus is on the same line.
  • the terminal detects that there are two touch points on the shooting preview interface
  • the camera focus corresponding to each touch point is determined, thereby realizing control of one camera head focus using one touch point.
  • the two touch points can be adjusted to adjust the focus of the camera corresponding to the two touch points, thereby ensuring that the two cameras simultaneously achieve clear focus, thereby ensuring that the two cameras shoot.
  • the resulting composite photo has a higher definition.
  • the user is using two cameras to take a distant view and take a close-up view.
  • the two cameras can be simultaneously focused, that is, by sliding one of the touch points, the focus of one of the cameras is adjusted to the distant view, and at the same time
  • the focus of the other camera is adjusted to a close-up view by another touch point, so that the two cameras can be simultaneously focused to obtain a picture with a clear view.
  • the focus adjustment step specifically includes: acquiring a sliding trajectory of the first touch point and a sliding trajectory of the second touch point, respectively; according to the sliding track of the first touch point Determining a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the sliding; according to a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the slide, according to a preset displacement and direction conversion rule, Determining a sliding direction and a sliding displacement of the focus of the first camera; determining a direction of sliding of the second touch point and a horizontal displacement or a vertical displacement of the sliding according to the sliding trajectory of the second touch point; a direction in which the touch point slides and a horizontal displacement or a vertical displacement of the slide, determining a sliding direction and a sliding displacement of the focus of the second camera according to a preset displacement and direction conversion rule; according to a sliding direction of the focus of the first camera a sliding displacement adjusts a position of the first camera focus, according to the
  • the real-time position of the two touch points can be accurately determined, and then according to the real-time position and preset of the two touch points.
  • the displacement and direction conversion rules can accurately determine the real-time position of the corresponding focus of the two cameras.
  • the method further includes: when the first touch point approaches/is away from the second touch point, the first camera focus is closer to/away from the second camera focus, When the second touch point approaches/is away from the first touch point, the second camera focus approaches/distances to the first camera focus, when the first touch point and the second touch point are close to each other When farther away, the first camera focus and the second camera focus are close to/away from each other.
  • the change of the relative distance between the focus of the two cameras is consistent with the change of the relative distance between the two touch points, that is, when the relative distance between the first touch point and the second touch point becomes smaller, the first camera focus
  • the relative distance from the focus of the second camera also becomes smaller, and the consistent relationship of the change is in line with the normal thinking of the user, which is convenient for the user to adjust the focus.
  • the relationship between the change of the relative distance of the two camera focuss and the change of the relative distance between the two touch points includes, but is not limited to, the above manner, for example, when the relative distance between the first touch point and the second touch point becomes smaller, the first The relative distance between the focus of the camera and the focus of the second camera can also increase.
  • the preset displacement and direction conversion rule includes: a sliding displacement of the first touch point and the second touch point, and the first camera focus and the second camera a displacement ratio between the sliding displacements of the focus, and a correspondence relationship between the sliding directions of the first touch point and the second touch point and the sliding direction of the first camera focus and the second camera focus.
  • the displacement ratio between the sliding displacement of the two touch points and the sliding displacement of the focus of the two cameras is pre-set in the terminal, and the correspondence between the sliding direction of the two touch points and the sliding direction of the focus of the two cameras is
  • the specific positions of the two camera focus points corresponding to the two touch points automatically change with the change of the sliding trajectory of the two touch points.
  • the user can also manually adjust the displacement ratio and the corresponding relationship according to individual needs to meet the needs of different users.
  • the determining step further includes: when in the shooting preview interface corresponding to the dual camera, determining whether the adjustment is needed according to the received focus selection command The position of the dual camera focus, and when the determination result is YES, if two touch points are detected on the shooting preview interface, respectively determining two camera focuss of the dual camera, and the two a first camera focus corresponding to the first touch point of the touch points, and a second camera focus corresponding to the second touch point of the two touch points.
  • the user can choose to adjust or not adjust the position of the dual camera focus according to individual needs. For example, if the user thinks that the position of the terminal's default dual camera focus can already capture a clear picture, then the user can choose not to adjust the dual camera. The location of the focus. However, if the user chooses to adjust the position of the dual camera focus, the terminal automatically adjusts the position of the dual camera focus corresponding to the two touch points based on the positions of the two touch points.
  • the method further includes: determining, according to a relative position between the two touch points, and a relative position between the dual cameras, two camera focuss of the dual camera, a first camera focus corresponding to the first touch point of the two touch points, and a second camera focus corresponding to the second touch point of the two touch points.
  • the terminal automatically matches the first camera focus corresponding to the first touch point and the second touch point according to the relative position between the two touch points and the relative position between the dual cameras.
  • Second camera focus For example, when it is detected that there are two touch points on the interface, the touch point on the left controls the camera on the left and the touch point on the right controls the camera on the right.
  • 2A-2D show schematic screenshots of positional changes between two touch points and two camera focuss, in accordance with an embodiment of the present invention.
  • FIG. 2A to FIG. 2D the positional relationship between the two touch points and the focus of the two cameras in the embodiment of the present invention will be described by taking the user to take the moon and the characters at the same time.
  • a camera is used to photograph the moon.
  • B camera is used to shoot people, and touch point 1 corresponds to A camera focus, touch point 2 corresponds to B camera focus, then
  • the change in the relative distance between the focus of the two cameras in this embodiment is consistent with the change in the relative distance between the two touch points, that is, the relative distance between the first touch point and the second touch point.
  • the relative distance between the focus of the first camera and the focus of the second camera also becomes smaller.
  • the relative distance between the first touch point and the second touch point becomes larger, the relative distance between the focus of the first camera and the focus of the second camera It also grows larger, and the consistent relationship of this change is in line with the user's normal thinking, which is convenient for users to better focus.
  • FIG. 3 is a flow chart showing a focusing method according to another embodiment of the present invention.
  • a focusing method according to another embodiment of the present invention includes: Step 302: A user turns on a camera.
  • Step 304 The user determines whether it is necessary to focus on the two focuses. If not, execute step 306; otherwise, execute step 310.
  • Step 306 slide the touch point that needs to be adjusted to adjust the focus that needs to be refocused, so that the focus that needs to be focused is more clearly focused.
  • Step 308 after the focus is over, take a picture.
  • Step 310 Slide the two touch points to adjust the focus of the two cameras.
  • Step 312 Determine whether the two focus points have achieved clear focus, and if the determination result is no, proceed to step 310; when the determination result is yes, execute step 314.
  • Step 314 manually press the shutter to take a photo or take a photo automatically.
  • Step 316 synthesize a photo with high front and back scene clarity.
  • FIG. 4 shows a schematic structural view of a focusing device according to an embodiment of the present invention.
  • a focusing apparatus 400 includes: a determining unit 402, when detecting a shooting preview interface corresponding to the dual camera, if two touch points are detected on the shooting preview interface And respectively determining, among the two camera focuses of the dual camera, a first camera focus corresponding to the first touch point of the two touch points, and corresponding to the second touch point of the two touch points a second camera focus; a focus adjustment unit 404, coupled to the determining unit 402, respectively, according to the first touch point and the second touch point Shooting a sliding track on the preview interface, adjusting a position of the first camera focus and the second camera focus, wherein the first camera focus and the second camera focus are on the same straight line.
  • the terminal detects that there are two touch points on the shooting preview interface
  • the camera focus corresponding to each touch point is determined, thereby realizing control of one camera head focus using one touch point.
  • the two touch points can be adjusted to adjust the focus of the camera corresponding to the two touch points, thereby ensuring that both cameras achieve clear focus at the same time, thereby ensuring that the two cameras shoot out.
  • the composite photo has a higher definition.
  • the user is using two cameras to take a distant view and take a close-up view.
  • the two cameras can be simultaneously focused, that is, by sliding one of the touch points, the focus of one of the cameras is adjusted to the distant view, and at the same time
  • the focus of the other camera is adjusted to a close-up view by another touch point, so that the two cameras can simultaneously focus clearly to obtain a picture with a clear view.
  • the focus adjustment unit 404 is specifically configured to: respectively acquire a sliding track of the first touch point and a sliding track of the second touch point; and slide according to the first touch point a trajectory, determining a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the slide; according to a direction in which the first touch point slides and a horizontal displacement or a vertical displacement of the slide, according to a preset displacement and direction conversion rule Determining a sliding direction and a sliding displacement of the first camera focus; determining a direction in which the second touch point slides and a horizontal displacement or a vertical displacement of the sliding according to the sliding trajectory of the second touch point; a direction in which the touch point slides and a horizontal displacement or a vertical displacement of the slide, determining a sliding direction and a sliding displacement of the focus of the second camera according to a preset displacement and direction conversion rule; according to a sliding direction of the focus of the first camera And sliding displacement adjusting the position of the first camera focus, according to the sliding direction of the second
  • the real-time position of the two touch points can be accurately determined, and then according to the real-time position of the two touch points and the preset displacement and direction conversion rules, the accuracy can be accurately The real-time position of the corresponding focus of the two cameras is determined.
  • the focus adjustment unit 404 is further configured to: when the first touch point approaches/removes the second touch point, the first camera focus is toward the second camera The focus is close/away, when the second touch point approaches/is away from the first touch point, the second camera focus approaches/distances to the first camera focus, when the first touch point and the When the second touch points are close to/away from each other, the first camera focus and the second camera focus are close to/away from each other.
  • the change of the relative distance between the focus of the two cameras is consistent with the change of the relative distance between the two touch points, that is, when the relative distance between the first touch point and the second touch point becomes smaller, the first camera focus
  • the relative distance from the focus of the second camera also becomes smaller, and the consistent relationship of the change is in line with the normal thinking of the user, which is convenient for the user to adjust the focus.
  • the relationship between the change of the relative distance of the two camera focuss and the change of the relative distance between the two touch points includes, but is not limited to, the above manner, for example, when the relative distance between the first touch point and the second touch point becomes smaller, the first The relative distance between the focus of the camera and the focus of the second camera can also increase.
  • the preset displacement and direction conversion rule includes: a sliding displacement of the first touch point and the second touch point, and the first camera focus and the second camera a displacement ratio between the sliding displacements of the focus, and a correspondence relationship between the sliding directions of the first touch point and the second touch point and the sliding direction of the first camera focus and the second camera focus.
  • the displacement ratio between the sliding displacement of the two touch points and the sliding displacement of the focus of the two cameras is pre-set in the terminal, and the correspondence between the sliding direction of the two touch points and the sliding direction of the focus of the two cameras is
  • the specific positions of the two camera focus points corresponding to the two touch points automatically change with the change of the sliding trajectory of the two touch points.
  • the user can also manually adjust the displacement ratio and the corresponding relationship according to individual needs to meet the needs of different users.
  • the determining unit 402 further includes: a determining unit 4022, when in the shooting preview interface corresponding to the dual camera, determining, according to the received focus selection command, whether the dual camera focus needs to be adjusted Position, and the determining unit
  • the 402 is also used to: when the judgment result is yes, if there are two touches detected on the shooting preview interface Touching, respectively, determining, among the two camera focuses of the dual camera, a first camera focus corresponding to the first touch point of the two touch points, and a second touch of the two touch points The second camera focus corresponding to the point.
  • the user can choose to adjust or not adjust the position of the dual camera focus according to individual needs. For example, if the user thinks that the position of the terminal's default dual camera focus can already capture a clear picture, then the user can choose not to adjust the dual camera. The location of the focus. However, if the user chooses to adjust the position of the dual camera focus, the terminal automatically adjusts the position of the dual camera focus corresponding to the two touch points based on the positions of the two touch points.
  • the determining unit 402 is further configured to: determine two two cameras according to a relative position between the two touch points and a relative position between the dual cameras a camera focus, a first camera focus corresponding to the first one of the two touch points, and a second camera focus corresponding to the second one of the two touch points.
  • the terminal automatically matches the first camera focus corresponding to the first touch point and the second touch point according to the relative position between the two touch points and the relative position between the dual cameras.
  • Second camera focus For example, when it is detected that there are two touch points on the interface, the touch point on the left controls the camera on the left and the touch point on the right controls the camera on the right.
  • this embodiment can also be used in many scenarios. The following two application scenarios are given to further illustrate the application steps of this embodiment:
  • Application scenario 2 When the user has captured a focus point and needs to adjust another focus point, the focus can be accurately adjusted by sliding the corresponding touch point on the screen. The steps are as follows:
  • two touch points can be respectively controlled to simultaneously focus two cameras, so that the user can take high-quality and high-definition photos by using the dual camera, and then Achieve the purpose of improving the user experience.
  • a program product stored on a non-transitory machine readable medium for terminal focusing, the program product comprising machine executable instructions for causing a computer system to perform the following steps : when it is in the shooting preview interface corresponding to the dual camera, if it is detected that there are two touch points on the shooting preview interface, respectively determining two camera focuss of the dual camera, and the two touch points a first camera focus corresponding to the first touch point, and a second camera focus corresponding to the second touch point of the two touch points; respectively according to the first touch point and the second touch point
  • the sliding track on the shooting preview interface adjusts a position of the first camera focus and the second camera focus, wherein the first camera focus and the second camera focus are on the same straight line.
  • a non-volatile machine readable medium storing a program product for terminal focusing, the program product comprising machine executable instructions for causing a computer system to perform the following steps:
  • the shooting preview interface corresponding to the dual camera is detected, if two touch points are detected on the shooting preview interface, respectively, among the two camera focuses of the dual camera, and the second of the two touch points a first camera focus corresponding to a touch point, and a second camera focus corresponding to the second touch point of the two touch points; respectively, according to the first touch point and the second touch point Preview the sliding track on the interface, Adjusting a position of the first camera focus and the second camera focus, wherein the first camera focus and the second camera focus are on the same straight line.
  • a machine readable program the program causing a machine to perform the focusing method according to any one of the above aspects.
  • a storage medium storing a machine readable program, wherein the machine readable program causes the machine to perform the focusing method according to any one of the above aspects.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Optics & Photonics (AREA)
  • Studio Devices (AREA)

Abstract

一种对焦方法和一种对焦装置(400),其中,对焦方法包括:确定步骤(102),当处于双摄像头对应的拍摄预览界面时,若检测到拍摄预览界面上有两个触摸点,则分别确定双摄像头的两个摄像头焦点中,与两个触摸点中的第一触摸点对应的第一摄像头焦点,和与两个触摸点中的第二触摸点对应的第二摄像头焦点;焦点调节步骤(104),分别根据第一触摸点和第二触摸点在拍摄预览界面上的滑动轨迹,调节第一摄像头焦点和第二摄像头焦点的位置,其中,第一摄像头焦点和第二摄像头焦点位于同一条直线上。通过所述对焦方法可以实现两个触摸点分别控制两摄像头同时对焦,使用户可以利用双摄像头拍出高质量高清晰度的照片,进而达到提高用户使用体验的目的。

Description

对焦方法和对焦装置
技术领域
本发明涉及具有双摄像头的终端技术领域, 具体而言, 涉及一种对焦 方法和一种对焦装置。 背景技术
目前, 用户在使用单摄像头的终端进行拍照时, 如果想拍近景, 则远 景就会模糊, 如果想拍远景, 则近景就会模糊。
而在使用双摄像头的终端拍照时, 两个摄像头不能同时对焦, 用户体 验性较差。
因此, 需要一种新的技术方案, 可以实现两个摄像头同时对焦, 使用 户可以利用双摄像头拍出高质量高清晰度的照片, 进而达到提高用户使用 体验的目的。 发明内容
本发明正是基于上述问题, 提出了一种新的技术方案, 可以实现两个 摄像头同时对焦, 使用户可以利用双摄像头拍出高质量高清晰度的照片, 进而达到提高用户使用体验的目的。
有鉴于此, 本发明的一方面提出了一种对焦方法, 用于具有双摄像头 的终端, 其中, 所述双摄像头位于所述终端的一侧, 包括: 确定步骤, 当 处于所述双摄像头对应的拍摄预览界面时, 若检测到所述拍摄预览界面上 有两个触摸点, 则分别确定所述双摄像头的两个摄像头焦点中, 与所述两 个触摸点中的第一触摸点对应的第一摄像头焦点, 和与所述两个触摸点中 的第二触摸点对应的第二摄像头焦点; 焦点调节步骤, 分别根据所述第一 触摸点和所述第二触摸点在所述拍摄预览界面上的滑动轨迹, 调节所述第 一摄像头焦点和所述第二摄像头焦点的位置, 其中, 所述第一摄像头焦点 和所述第二摄像头焦点位于同一条直线上。 在该技术方案中, 当终端检测到拍摄预览界面上有两个触摸点时, 确 定出每个触摸点对应的摄像头焦点, 从而实现使用一个触摸点控制一个摄 像头焦点。 此时, 用户如果认为当前双摄像头中的拍摄预览界面不够清 晰, 可以通过滑动两触摸点来调整两触摸点分别对应的摄像头的焦点, 从 而保证两摄像头同时实现清晰对焦, 进而保证两摄像头拍出的合成照片具 有较高清晰度。
例如, 用户正在使用两个摄像头拍远景和拍近景, 此时通过滑动两触 摸点, 可以对两摄像头进行同时对焦, 即通过其中一个触摸点的滑动, 将 其中一个摄像头的焦点调节到远景, 同时通过另一个触摸点将另一个摄像 头的焦点调节到近景, 从而使两摄像头可以同时清晰对焦, 以得到远近景 都清晰的图片。
在上述技术方案中, 优选地, 所述焦点调节步骤, 具体包括: 分别获 取所述第一触摸点的滑动轨迹和所述第二触摸点的滑动轨迹; 根据所述第 一触摸点的滑动轨迹, 确定所述第一触摸点滑动的方向和滑动的水平位移 或竖直位移; 根据所述第一触摸点滑动的方向以及滑动的水平位移或竖直 位移, 按照预设位移和方向转换规则, 确定所述第一摄像头焦点的滑动方 向和滑动位移; 根据所述第二触摸点的滑动轨迹, 确定所述第二触摸点滑 动的方向和滑动的水平位移或竖直位移; 根据所述第二触摸点滑动的方向 以及滑动的水平位移或竖直位移, 按照预设的位移和方向转换规则, 确定 所述第二摄像头焦点的滑动方向和滑动位移; 按照所述第一摄像头焦点的 滑动方向和滑动位移调节所述第一摄像头焦点的位置, 按照所述第二摄像 头焦点的滑动方向和滑动位移调节所述第二摄像头焦点的位置。
在该技术方案中, 通过确定两触摸点对应轨迹的位移和方向, 可以准 确地确定出两触摸点的实时位置, 进而根据两触摸点的实时位置以及预设 的位移和方向转换规则, 可以准确地确定出两摄像头对应焦点的实时位 置。
在上述技术方案中, 优选地, 还包括: 在所述第一触摸点向所述第二 触摸点靠近 /远离时, 所述第一摄像头焦点向所述第二摄像头焦点靠近 /远 离, 在所述第二触摸点向所述第一触摸点靠近 /远离时, 所述第二摄像头 焦点向所述第一摄像头焦点靠近 /远离, 当所述第一触摸点和所述第二触 摸点相互靠近 /远离时, 所述第一摄像头焦点和所述第二摄像头焦点相互 靠近 /远离。
在该技术方案中, 两摄像头焦点的相对距离的变化与两触摸点之间的 相对距离的变化是一致的, 即当第一触摸点与第二触摸点的相对距离变小 时, 第一摄像头焦点与第二摄像头焦点的相对距离也随之变小, 这种变化 一致的关系比较符合用户的正常思维, 方便用户更好的调焦。
当然, 两摄像头焦点的相对距离的变化与两触摸点之间的相对距离的 变化的关系包括但不限于上述方式, 例如, 当第一触摸点与第二触摸点的 相对距离变小时, 第一摄像头焦点与第二摄像头焦点的相对距离也可以随 之变大。
在上述技术方案中, 优选地, 所述预设的位移和方向转换规则包括: 所述第一触摸点和所述第二触摸点的滑动位移与所述第一摄像头焦点和所 述第二摄像头焦点的滑动位移之间的位移比例, 以及所述第一触摸点和所 述第二触摸点的滑动方向与所述第一摄像头焦点和所述第二摄像头焦点的 滑动方向之间的对应关系。
在该技术方案中, 终端中预设有两触摸点的滑动位移与两摄像头焦点 的滑动位移之间的位移比例, 以及两触摸点的滑动方向与两摄像头焦点的 滑动方向之间的对应关系, 这样, 当两触摸点的滑动轨迹变化时, 两触摸 点对应的两摄像头焦点的具体位置就会自动地随着两触摸点的滑动轨迹的 变化而变化。 当然, 用户也可以根据个人需要, 手动调节该位移比例与对 应关系, 以满足不同用户的需求。
在上述技术方案中, 优选地, 所述确定步骤还包括: 当处于所述双摄 像头对应的拍摄预览界面时, 根据接收到的焦点选择命令判断是否需要调 节所述双摄像头焦点的位置, 以及在判断结果为是时, 若检测到所述拍摄 预览界面上有两个触摸点, 则分别确定所述双摄像头的两个摄像头焦点 中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和与所述 两个触摸点中的第二触摸点对应的第二摄像头焦点。
在该技术方案中, 用户可以根据个人需求选择调节或不调节双摄像头 焦点的位置, 例如, 如果用户认为终端默认的双摄像头焦点的位置已经可 以拍摄到清晰的图片, 则可以选择不调节双摄像头焦点的位置。 但是, 如 果用户选择调节双摄像头焦点的位置, 则终端会根据两个触摸点的位置自 动地调节与两个触摸点对应的双摄像头焦点的位置。
在上述技术方案中, 优选地, 还包括: 根据所述两个触摸点之间的相 对位置, 和所述双摄像头之间的相对位置, 确定所述双摄像头的两个摄像 头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和 与所述两个触摸点中的第二触摸点对应的第二摄像头焦点。
在该技术方案中, 终端会根据两个触摸点之间的相对位置, 和双摄像 头之间的相对位置, 自动地匹配与第一触摸点对应的第一摄像头焦点以及 与第二触摸点对应的第二摄像头焦点。 例如, 当检测到界面上有两个触摸 点时, 按照左右相距的方式, 左边的触摸点控制左边的摄像头, 右边的触 摸点控制右边的摄像头。
本发明的另一方面提出了一种对焦装置, 用于具有双摄像头的终端, 其中, 所述双摄像头位于所述终端的一侧, 包括: 确定单元, 当处于所述 双摄像头对应的拍摄预览界面时, 若检测到所述拍摄预览界面上有两个触 摸点, 则分别确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点 中的第一触摸点对应的第一摄像头焦点, 和与所述两个触摸点中的第二触 摸点对应的第二摄像头焦点; 焦点调节单元, 连接至所述确定单元, 分别 根据所述第一触摸点和所述第二触摸点在所述拍摄预览界面上的滑动轨 迹, 调节所述第一摄像头焦点和所述第二摄像头焦点的位置, 其中, 所述 第一摄像头焦点和所述第二摄像头焦点位于同一条直线上。
在该技术方案中, 当终端检测到拍摄预览界面上有两个触摸点时, 确 定出每个触摸点对应的摄像头焦点, 从而实现使用一个触摸点控制一个摄 像头焦点。 此时, 用户如果认为当前双摄像头中的拍摄预览界面不够清 晰, 可以通过滑动两触摸点来调整两触摸点分别对应的摄像头的焦点, 从 而保证两摄像头同时实现清晰对焦, 进而保证两摄像头拍出的合成照片具 有较高清晰度。
例如, 用户正在使用两个摄像头拍远景和拍近景, 此时通过滑动两触 摸点, 可以对两摄像头进行同时对焦, 即通过其中一个触摸点的滑动, 将 其中一个摄像头的焦点调节到远景, 同时通过另一个触摸点将另一个摄像 头的焦点调节到近景, 从而两摄像头可以同时清晰对焦, 以得到远近景都 清晰的图片。
在上述技术方案中, 优选地, 所述焦点调节单元具体用于: 分别获取 所述第一触摸点的滑动轨迹和所述第二触摸点的滑动轨迹; 根据所述第一 触摸点的滑动轨迹, 确定所述第一触摸点滑动的方向和滑动的水平位移或 竖直位移; 根据所述第一触摸点滑动的方向以及滑动的水平位移或竖直位 移, 按照预设位移和方向转换规则, 确定所述第一摄像头焦点的滑动方向 和滑动位移; 根据所述第二触摸点的滑动轨迹, 确定所述第二触摸点滑动 的方向和滑动的水平位移或竖直位移; 根据所述第二触摸点滑动的方向以 及滑动的水平位移或竖直位移, 按照预设的位移和方向转换规则, 确定所 述第二摄像头焦点的滑动方向和滑动位移; 按照所述第一摄像头焦点的滑 动方向和滑动位移调节所述第一摄像头焦, ^的位置, 按照所述第二摄像头 焦点的滑动方向和滑动位移调节所述第二摄像头焦点的位置。
在该技术方案中, 通过确定两触摸点对应轨迹的位移和方向, 可以准 确地确定出两触摸点的实时位置, 进而根据两触摸点的实时位置以及预设 的位移和方向转换规则, 可以准确地确定出两摄像头对应焦点的实时位 置。
在上述技术方案中, 优选地, 所述焦点调节单元还用于: 在所述第一 触摸点向所述第二触摸点靠近 /远离时, 所述第一摄像头焦点向所述第二 摄像头焦点靠近 /远离, 在所述第二触摸点向所述第一触摸点靠近 /远离 时, 所述第二摄像头焦点向所述第一摄像头焦点靠近 /远离, 当所述第一 触摸点和所述第二触摸点相互靠近 /远离时, 所述第一摄像头焦点和所述 第二摄像头焦点相互靠近 /远离。
在该技术方案中, 两摄像头焦点的相对距离的变化与两触摸点之间的 相对距离的变化是一致的, 即当第一触摸点与第二触摸点的相对距离变小 时, 第一摄像头焦点与第二摄像头焦点的相对距离也随之变小, 这种变化 一致的关系比较符合用户的正常思维, 方便用户更好的调焦。 当然, 两摄像头焦点的相对距离的变化与两触摸点之间的相对距离的 变化的关系包括但不限于上述方式, 例如, 当第一触摸点与第二触摸点的 相对距离变小时, 第一摄像头焦点与第二摄像头焦点的相对距离也可以随 之变大。
在上述技术方案中, 优选地, 所述预设的位移和方向转换规则包括: 所述第一触摸点和所述第二触摸点的滑动位移与所述第一摄像头焦点和所 述第二摄像头焦点的滑动位移之间的位移比例, 以及所述第一触摸点和所 述第二触摸点的滑动方向与所述第一摄像头焦点和所述第二摄像头焦点的 滑动方向之间的对应关系。
在该技术方案中, 终端中预设有两触摸点的滑动位移与两摄像头焦点 的滑动位移之间的位移比例, 以及两触摸点的滑动方向与两摄像头焦点的 滑动方向之间的对应关系, 这样, 当两触摸点的滑动轨迹变化时, 两触摸 点对应的两摄像头焦点的具体位置就会自动地随着两触摸点的滑动轨迹的 变化而变化。 当然, 用户也可以根据个人需要, 手动调节该位移比例与对 应关系, 以满足不同用户的需求。
在上述技术方案中, 优选地, 所述确定单元还包括: 判断单元, 当处 于所述双摄像头对应的拍摄预览界面时, 根据接收到的焦点选择命令判断 是否需要调节所述双摄像头焦点的位置, 以及所述确定单元还用于: 在判 断结果为是时, 若检测到所述拍摄预览界面上有两个触摸点, 则分别确定 所述双摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一触摸点对 应的第一摄像头焦点, 和与所述两个触摸点中的第二触摸点对应的第二摄 像头焦点。
在该技术方案中, 用户可以根据个人需求选择调节或不调节双摄像头 焦点的位置, 例如, 如果用户认为终端默认的双摄像头焦点的位置已经可 以拍摄到清晰的图片, 则可以选择不调节双摄像头焦点的位置。 但是, 如 果用户选择调节双摄像头焦点的位置, 则终端会根据两个触摸点的位置自 动地调节与两个触摸点对应的双摄像头焦点的位置。
在上述技术方案中, 优选地, 所述确定单元还用于: 根据所述两个触 摸点之间的相对位置, 和所述双摄像头之间的相对位置, 确定所述双摄像 头的两个摄像头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄 像头焦点, 和与所述两个触摸点中的第二触摸点对应的第二摄像头焦点。
在该技术方案中, 终端会根据两个触摸点之间的相对位置, 和双摄像 头之间的相对位置, 自动地匹配与第一触摸点对应的第一摄像头焦点以及 与第二触摸点对应的第二摄像头焦点。 例如, 当检测到界面上有两个触摸 点时, 按照左右相距的方式, 左边的触摸点控制左边的摄像头, 右边的触 摸点控制右边的摄像头。
通过以上技术方案, 可以实现两个触摸点分别控制两摄像头同时对 焦, 使用户可以利用双摄像头拍出高质量高清晰度的照片, 进而达到提高 用户使用体验的目的。 附图说明
图 1示出了根据本发明的实施例的对焦方法的流程示意图;
图 2A至图 2D 示出了根据本发明的实施例的两个触摸点与两摄像头 焦点之间的位置变化关系示意截图;
图 3示出了根据本发明的另一个实施例的对焦方法的流程示意图; 图 4示出了根据本发明的另一个实施例的对焦装置的结构示意图。 具体实施方式
为了能够更清楚地理解本发明的上述目的、 特征和优点, 下面结合附 图和具体实施方式对本发明进行进一步的详细描述。 需要说明的是, 在不 冲突的情况下, 本申请的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明, 但是, 本发明还可以釆用其他不同于在此描述的其他方式来实施, 因此, 本发明 的保护范围并不受下面公开的具体实施例的限制。
图 1示出了根据本发明的实施例的对焦方法的流程示意图。
如图 1 所示, 根据本发明的实施例的对焦方法, 包括: 确定步骤 102 , 当处于所述双摄像头对应的拍摄预览界面时, 若检测到所述拍摄预 览界面上有两个触摸点, 则分别确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和与所述两个 触摸点中的第二触摸点对应的第二摄像头焦点; 焦点调节步骤 104, 分别 根据所述第一触摸点和所述第二触摸点在所述拍摄预览界面上的滑动轨 迹, 调节所述第一摄像头焦点和所述第二摄像头焦点的位置, 其中, 所述 第一摄像头焦点和所述第二摄像头焦点位于同一条直线上。
在该技术方案中, 当终端检测到拍摄预览界面上有两个触摸点时, 确 定出每个触摸点对应的摄像头焦点, 从而实现使用一个触摸点控制一个摄 像头焦点。 此时, 用户如果认为当前双摄像头中的拍摄预览界面不够清 晰, 可以通过滑动两触摸点来调整两触摸点分别对应的摄像头的焦点, 从 而可以保证两摄像头同时实现清晰对焦, 进而保证两摄像头拍出的合成照 片具有较高清晰度。
例如, 用户正在使用两个摄像头拍远景和拍近景, 此时通过滑动两触 摸点, 可以对两摄像头进行同时对焦, 即通过其中一个触摸点的滑动, 将 其中一个摄像头的焦点调节到远景, 同时通过另一个触摸点将另一个摄像 头的焦点调节到近景, 从而使两摄像头可以同时清晰对焦, 以得到远近景 都清晰的图片。
在上述技术方案中, 优选地, 所述焦点调节步骤, 具体包括: 分别获 取所述第一触摸点的滑动轨迹和所述第二触摸点的滑动轨迹; 根据所述第 一触摸点的滑动轨迹, 确定所述第一触摸点滑动的方向和滑动的水平位移 或竖直位移; 根据所述第一触摸点滑动的方向以及滑动的水平位移或竖直 位移, 按照预设位移和方向转换规则, 确定所述第一摄像头焦点的滑动方 向和滑动位移; 根据所述第二触摸点的滑动轨迹, 确定所述第二触摸点滑 动的方向和滑动的水平位移或竖直位移; 根据所述第二触摸点滑动的方向 以及滑动的水平位移或竖直位移, 按照预设的位移和方向转换规则, 确定 所述第二摄像头焦点的滑动方向和滑动位移; 按照所述第一摄像头焦点的 滑动方向和滑动位移调节所述第一摄像头焦点的位置, 按照所述第二摄像 头焦点的滑动方向和滑动位移调节所述第二摄像头焦点的位置。
在该技术方案中, 通过确定两触摸点对应轨迹的位移和方向, 可以准 确地确定出两触摸点的实时位置, 进而根据两触摸点的实时位置以及预设 的位移和方向转换规则, 可以准确地确定出两摄像头对应焦点的实时位 置。
在上述技术方案中, 优选地, 还包括: 在所述第一触摸点向所述第二 触摸点靠近 /远离时, 所述第一摄像头焦点向所述第二摄像头焦点靠近 /远 离, 在所述第二触摸点向所述第一触摸点靠近 /远离时, 所述第二摄像头 焦点向所述第一摄像头焦点靠近 /远离, 当所述第一触摸点和所述第二触 摸点相互靠近 /远离时, 所述第一摄像头焦点和所述第二摄像头焦点相互 靠近 /远离。
在该技术方案中, 两摄像头焦点的相对距离的变化与两触摸点之间的 相对距离的变化是一致的, 即当第一触摸点与第二触摸点的相对距离变小 时, 第一摄像头焦点与第二摄像头焦点的相对距离也随之变小, 这种变化 一致的关系比较符合用户的正常思维, 方便用户更好的调焦。
当然, 两摄像头焦点的相对距离的变化与两触摸点之间的相对距离的 变化的关系包括但不限于上述方式, 例如, 当第一触摸点与第二触摸点的 相对距离变小时, 第一摄像头焦点与第二摄像头焦点的相对距离也可以随 之变大。
在上述技术方案中, 优选地, 所述预设的位移和方向转换规则包括: 所述第一触摸点和所述第二触摸点的滑动位移与所述第一摄像头焦点和所 述第二摄像头焦点的滑动位移之间的位移比例, 以及所述第一触摸点和所 述第二触摸点的滑动方向与所述第一摄像头焦点和所述第二摄像头焦点的 滑动方向之间的对应关系。
在该技术方案中, 终端中预设有两触摸点的滑动位移与两摄像头焦点 的滑动位移之间的位移比例, 以及两触摸点的滑动方向与两摄像头焦点的 滑动方向之间的对应关系, 这样, 当两触摸点的滑动轨迹变化时, 两触摸 点对应的两摄像头焦点的具体位置就会自动地随着两触摸点的滑动轨迹的 变化而变化。 当然, 用户也可以根据个人需要, 手动调节该位移比例与对 应关系, 以满足不同用户的需求。
在上述技术方案中, 优选地, 所述确定步骤还包括: 当处于所述双摄 像头对应的拍摄预览界面时, 根据接收到的焦点选择命令判断是否需要调 节所述双摄像头焦点的位置, 以及在判断结果为是时, 若检测到所述拍摄 预览界面上有两个触摸点, 则分别确定所述双摄像头的两个摄像头焦点 中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和与所述 两个触摸点中的第二触摸点对应的第二摄像头焦点。
在该技术方案中, 用户可以根据个人需求选择调节或不调节双摄像头 焦点的位置, 例如, 如果用户认为终端默认的双摄像头焦点的位置已经可 以拍摄到清晰的图片, 则可以选择不调节双摄像头焦点的位置。 但是, 如 果用户选择调节双摄像头焦点的位置, 则终端会根据两个触摸点的位置自 动地调节与两个触摸点对应的双摄像头焦点的位置。
在上述技术方案中, 优选地, 还包括: 根据所述两个触摸点之间的相 对位置, 和所述双摄像头之间的相对位置, 确定所述双摄像头的两个摄像 头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和 与所述两个触摸点中的第二触摸点对应的第二摄像头焦点。
在该技术方案中, 终端会根据两个触摸点之间的相对位置, 和双摄像 头之间的相对位置, 自动地匹配与第一触摸点对应的第一摄像头焦点以及 与第二触摸点对应的第二摄像头焦点。 例如, 当检测到界面上有两个触摸 点时, 按照左右相距的方式, 左边的触摸点控制左边的摄像头, 右边的触 摸点控制右边的摄像头。 图 2A至图 2D 示出了根据本发明的实施例的两 个触摸点与两摄像头焦点之间的位置变化关系示意截图。
图 2A至图 2D 中将以用户同时拍月亮和人物为例, 说明本发明的实 施例中的两个触摸点与两摄像头焦点之间的位置变化关系, 首先, 假定 A 摄像头用于拍摄月亮, B摄像头用于拍摄人物, 且触摸点 1对应 A摄像头 焦点, 触摸点 2对应 B摄像头焦点, 则
当用户打开 A摄像头和 B摄像头时, A摄像头焦点与 B摄像头焦点 的初始位置关系如图 2A所示;
当触摸点 1和触摸点 2相互靠近时, A摄像头焦点与 B摄像头焦点也 相互靠近, A摄像头焦点与 B摄像头焦点的位置关系如图 2B所示;
当触摸点 1和触摸点 2相互背离时, A摄像头焦点与 B摄像头焦点也 相互背离, A摄像头焦点与 B摄像头焦点的位置关系如图 2C所示; 当触摸点 1不动, 触摸点 2向触摸点 1靠近时, A摄像头焦点不动, B摄像头焦点向 A摄像头焦点靠近, A摄像头焦点与 B摄像头焦点的位 置关系如图 2D所示。
如图 2A至 2D 所示, 本实施例中的两摄像头焦点的相对距离的变化 与两触摸点之间的相对距离的变化是一致的, 即当第一触摸点与第二触摸 点的相对距离变小时, 第一摄像头焦点与第二摄像头焦点的相对距离也随 之变小, 当第一触摸点与第二触摸点的相对距离变大时, 第一摄像头焦点 与第二摄像头焦点的相对距离也随之变大, 而这种变化一致的关系比较符 合用户的正常思维, 方便用户更好的调焦。
图 3示出了根据本发明的另一个实施例的对焦方法的流程示意图。 如图 3所示, 根据本发明的另一个实施例的对焦方法, 包括: 步骤 302, 用户打开照相机。
步骤 304, 用户判断是否需要对焦两个焦点, 如果不需要, 则执行步 骤 306; 反之, 则执行步骤 310。
步骤 306, 滑动需要调节的触摸点, 以调整需要重新对焦的焦点, 使 需要对焦的焦点对焦更加清晰。
步骤 308, 在对焦结束后, 进行拍照。
步骤 310, 滑动两触摸点以调整两个摄像头的焦点。
步骤 312, 判断两个焦点是否已实现清晰对焦, 并在判断结果为否 时, 继续执行步骤 310; 在判断结果为是时, 执行步骤 314。
步骤 314, 手动按快门进行拍照或者自动拍照。
步骤 316, 合成一张前后景清晰度都比较高的照片。
图 4示出了根据本发明的实施例的对焦装置的结构示意图。
如图 4 所示, 根据本发明的实施例的对焦装置 400, 包括: 确定单元 402, 当处于所述双摄像头对应的拍摄预览界面时, 若检测到所述拍摄预 览界面上有两个触摸点, 则分别确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和与所述两个 触摸点中的第二触摸点对应的第二摄像头焦点; 焦点调节单元 404, 连接 至所述确定单元 402, 分别根据所述第一触摸点和所述第二触摸点在所述 拍摄预览界面上的滑动轨迹, 调节所述第一摄像头焦点和所述第二摄像头 焦点的位置, 其中, 所述第一摄像头焦点和所述第二摄像头焦点位于同一 条直线上。
在该技术方案中, 当终端检测到拍摄预览界面上有两个触摸点时, 确 定出每个触摸点对应的摄像头焦点, 从而实现使用一个触摸点控制一个摄 像头焦点。 此时, 用户如果认为当前双摄像头中的拍摄预览界面不够清 晰, 可以通过滑动两触摸点来调整两触摸点分别对应的摄像头的焦点, 从 而保证两摄像头同时实现清晰对焦, 进而保证两摄像头拍出的合成照片具 有较高清晰度。
例如, 用户正在使用两个摄像头拍远景和拍近景, 此时通过滑动两触 摸点, 可以对两摄像头进行同时对焦, 即通过其中一个触摸点的滑动, 将 其中一个摄像头的焦点调节到远景, 同时通过另一个触摸点将另一个摄像 头的焦点调节到近景, 从而两摄像头可以同时清晰对焦以得到远近景都清 晰的图片。
在上述技术方案中, 优选地, 所述焦点调节单元 404具体用于: 分别 获取所述第一触摸点的滑动轨迹和所述第二触摸点的滑动轨迹; 根据所述 第一触摸点的滑动轨迹, 确定所述第一触摸点滑动的方向和滑动的水平位 移或竖直位移; 根据所述第一触摸点滑动的方向以及滑动的水平位移或竖 直位移, 按照预设位移和方向转换规则, 确定所述第一摄像头焦点的滑动 方向和滑动位移; 根据所述第二触摸点的滑动轨迹, 确定所述第二触摸点 滑动的方向和滑动的水平位移或竖直位移; 根据所述第二触摸点滑动的方 向以及滑动的水平位移或竖直位移, 按照预设的位移和方向转换规则, 确 定所述第二摄像头焦点的滑动方向和滑动位移; 按照所述第一摄像头焦点 的滑动方向和滑动位移调节所述第一摄像头焦, 的位置, 按照所述第二摄 像头焦点的滑动方向和滑动位移调节所述第二摄像头焦点的位置。
在该技术方案中, 通过确定两触摸点对应轨迹的位移和方向, 可以准 确地确定出两触摸点的实时位置, 进而根据两触摸点的实时位置以及预设 的位移和方向转换规则, 可以准确地确定出两摄像头对应焦点的实时位 置。 在上述技术方案中, 优选地, 所述焦点调节单元 404还用于: 在所述 第一触摸点向所述第二触摸点靠近 /远离时, 所述第一摄像头焦点向所述 第二摄像头焦点靠近 /远离, 在所述第二触摸点向所述第一触摸点靠近 /远 离时, 所述第二摄像头焦点向所述第一摄像头焦点靠近 /远离, 当所述第 一触摸点和所述第二触摸点相互靠近 /远离时, 所述第一摄像头焦点和所 述第二摄像头焦点相互靠近 /远离。
在该技术方案中, 两摄像头焦点的相对距离的变化与两触摸点之间的 相对距离的变化是一致的, 即当第一触摸点与第二触摸点的相对距离变小 时, 第一摄像头焦点与第二摄像头焦点的相对距离也随之变小, 这种变化 一致的关系比较符合用户的正常思维, 方便用户更好的调焦。
当然, 两摄像头焦点的相对距离的变化与两触摸点之间的相对距离的 变化的关系包括但不限于上述方式, 例如, 当第一触摸点与第二触摸点的 相对距离变小时, 第一摄像头焦点与第二摄像头焦点的相对距离也可以随 之变大。
在上述技术方案中, 优选地, 所述预设的位移和方向转换规则包括: 所述第一触摸点和所述第二触摸点的滑动位移与所述第一摄像头焦点和所 述第二摄像头焦点的滑动位移之间的位移比例, 以及所述第一触摸点和所 述第二触摸点的滑动方向与所述第一摄像头焦点和所述第二摄像头焦点的 滑动方向之间的对应关系。
在该技术方案中, 终端中预设有两触摸点的滑动位移与两摄像头焦点 的滑动位移之间的位移比例, 以及两触摸点的滑动方向与两摄像头焦点的 滑动方向之间的对应关系, 这样, 当两触摸点的滑动轨迹变化时, 两触摸 点对应的两摄像头焦点的具体位置就会自动地随着两触摸点的滑动轨迹的 变化而变化。 当然, 用户也可以根据个人需要, 手动调节该位移比例与对 应关系, 以满足不同用户的需求。
在上述技术方案中, 优选地, 所述确定单元 402 还包括: 判断单元 4022 , 当处于所述双摄像头对应的拍摄预览界面时, 根据接收到的焦点选 择命令判断是否需要调节所述双摄像头焦点的位置, 以及所述确定单元
402 还用于: 在判断结果为是时, 若检测到所述拍摄预览界面上有两个触 摸点, 则分别确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点 中的第一触摸点对应的第一摄像头焦点, 和与所述两个触摸点中的第二触 摸点对应的第二摄像头焦点。
在该技术方案中, 用户可以根据个人需求选择调节或不调节双摄像头 焦点的位置, 例如, 如果用户认为终端默认的双摄像头焦点的位置已经可 以拍摄到清晰的图片, 则可以选择不调节双摄像头焦点的位置。 但是, 如 果用户选择调节双摄像头焦点的位置, 则终端会根据两个触摸点的位置自 动地调节与两个触摸点对应的双摄像头焦点的位置。
在上述技术方案中, 优选地, 所述确定单元 402还用于: 根据所述两 个触摸点之间的相对位置, 和所述双摄像头之间的相对位置, 确定所述双 摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一触摸点对应的第 一摄像头焦点, 和与所述两个触摸点中的第二触摸点对应的第二摄像头焦 点。
在该技术方案中, 终端会根据两个触摸点之间的相对位置, 和双摄像 头之间的相对位置, 自动地匹配与第一触摸点对应的第一摄像头焦点以及 与第二触摸点对应的第二摄像头焦点。 例如, 当检测到界面上有两个触摸 点时, 按照左右相距的方式, 左边的触摸点控制左边的摄像头, 右边的触 摸点控制右边的摄像头。 当然, 本实施例还可以用在很多场景下, 下面将 给出具体的两个应用场景, 以进一步说明本实施例的应用步骤:
应用场景一:
当用户需要同时对远近两个点进行对焦的时, 可通过滑动屏幕上的两 个触摸点, 以实现准确地调整焦点, 其操作步骤如下:
1 ) 开启相机, 选择拍照场景。
2 ) 确定触屏上的两个触摸点, 然后, 滑动左边的触摸点以调整到一 个近一点的焦点, 滑动右边的触摸点以调整到一个远一点的焦点, 进而实 现准确地对焦。
3 ) 当两个焦点都对焦清晰后, 用户按下拍照快门进行拍照时就可以 拍到远近景都比较清晰的照片。
应用场景二: 当用户已经捕捉到一个对焦点, 需要调整另外一个对焦点时, 可通过 滑动屏幕上的相应的触摸点, 以实现准确地调整焦点, 其操作步骤如下:
1 ) 用户开启相机, 选择拍照场景。
2 ) 当相机已经自动捕捉到一个用户需要的左焦点时, 如果用户还需 要选取一个比当前焦点更近一点的焦点, 可通过单手操作, 以向左拉近的 方式调整触摸点, 进而实现清晰对焦, 如果用户还需要选取一个比当前更 远一点的焦点, 可通过单手操作, 以向右调远的方式调整触摸点, 进而实 现清晰对焦。
3 ) 当该焦点对焦清晰后, 用户按下拍照快门进行拍照时就可以拍到 远近景都比较清晰的照片。
以上结合附图详细说明了本发明的技术方案, 通过本发明的技术方 案, 可以实现两个触摸点分别控制两摄像头同时对焦, 使用户可以利用双 摄像头拍出高质量高清晰度的照片, 进而达到提高用户使用体验的目的。
根据本发明的实施方式, 还提供了一种存储在非易失性机器可读介质 上的程序产品, 用于终端对焦, 所述程序产品包括用于使计算机系统执行 以下步骤的机器可执行指令: 当处于所述双摄像头对应的拍摄预览界面 时, 若检测到所述拍摄预览界面上有两个触摸点, 则分别确定所述双摄像 头的两个摄像头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄 像头焦点, 和与所述两个触摸点中的第二触摸点对应的第二摄像头焦点; 分别根据所述第一触摸点和所述第二触摸点在所述拍摄预览界面上的滑动 轨迹, 调节所述第一摄像头焦点和所述第二摄像头焦点的位置, 其中, 所 述第一摄像头焦点和所述第二摄像头焦点位于同一条直线上。
根据本发明的实施方式, 还提供了一种非易失机器可读介质, 存储有 用于终端对焦的程序产品, 所述程序产品包括用于使计算机系统执行以下 步骤的机器可执行指令: 当处于所述双摄像头对应的拍摄预览界面时, 若 检测到所述拍摄预览界面上有两个触摸点, 则分别确定所述双摄像头的两 个摄像头焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦 点, 和与所述两个触摸点中的第二触摸点对应的第二摄像头焦点; 分别根 据所述第一触摸点和所述第二触摸点在所述拍摄预览界面上的滑动轨迹, 调节所述第一摄像头焦点和所述第二摄像头焦点的位置, 其中, 所述第一 摄像头焦点和所述第二摄像头焦点位于同一条直线上。
根据本发明的实施方式, 还提供了一种机器可读程序, 所述程序使机 器执行如上所述技术方案中任一所述的对焦方法。
根据本发明的实施方式, 还提供了一种存储有机器可读程序的存储介 质, 其中, 所述机器可读程序使得机器执行如上所述技术方案中任一所述 的对焦方法。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于 本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精 神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 的保护范围之内。

Claims

权 利 要 求 书
1. 一种对焦方法, 用于具有双摄像头的终端, 其中, 所述双摄像头 位于所述终端的一侧, 其特征在于, 包括:
确定步骤, 当处于所述双摄像头对应的拍摄预览界面时, 若检测到所 述拍摄预览界面上有两个触摸点, 则分别确定所述双摄像头的两个摄像头 焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和与 所述两个触摸点中的第二触摸点对应的第二摄像头焦点;
焦点调节步骤, 分别根据所述第一触摸点和所述第二触摸点在所述拍 摄预览界面上的滑动轨迹, 调节所述第一摄像头焦点和所述第二摄像头焦 点的位置, 其中, 所述第一摄像头焦点和所述第二摄像头焦点位于同一条 直线上。
2. 根据权利要求 1 所述的对焦方法, 其特征在于, 所述焦点调节步 骤, 具体包括:
分别获取所述第一触摸点的滑动轨迹和所述第二触摸点的滑动轨迹; 根据所述第一触摸点的滑动轨迹, 确定所述第一触摸点滑动的方向和 滑动的水平位移或竖直位移;
根据所述第一触摸点滑动的方向以及滑动的水平位移或竖直位移, 按 照预设位移和方向转换规则, 确定所述第一摄像头焦点的滑动方向和滑动 位移;
根据所述第二触摸点的滑动轨迹, 确定所述第二触摸点滑动的方向和 滑动的水平位移或竖直位移;
根据所述第二触摸点滑动的方向以及滑动的水平位移或竖直位移, 按 照预设的位移和方向转换规则, 确定所述第二摄像头焦点的滑动方向和滑 动位移;
按照所述第一摄像头焦点的滑动方向和滑动位移调节所述第一摄像头 焦点的位置, 按照所述第二摄像头焦点的滑动方向和滑动位移调节所述第 二摄像头焦点的位置。
3. 根据权利要求 2所述的对焦方法, 其特征在于, 还包括: 在所述第一触摸点向所述第二触摸点靠近 /远离时, 所述第一摄像头 焦点向所述第二摄像头焦点靠近 /远离, 在所述第二触摸点向所述第一触 摸点靠近 /远离时, 所述第二摄像头焦点向所述第一摄像头焦点靠近 /远 离, 当所述第一触摸点和所述第二触摸点相互靠近 /远离时, 所述第一摄 像头焦点和所述第二摄像头焦点相互靠近 /远离。
4. 根据权利要求 2 所述的对焦方法, 其特征在于, 所述预设的位移 和方向转换规则包括:
所述第一触摸点和所述第二触摸点的滑动位移与所述第一摄像头焦点 和所述第二摄像头焦点的滑动位移之间的位移比例, 以及
所述第一触摸点和所述第二触摸点的滑动方向与所述第一摄像头焦点 和所述第二摄像头焦点的滑动方向之间的对应关系。
5. 根据权利要求 1 所述的对焦方法, 其特征在于, 所述确定步骤还 包括:
当处于所述双摄像头对应的拍摄预览界面时, 根据接收到的焦点选择 命令判断是否需要调节所述双摄像头焦点的位置;
在判断结果为是时, 若检测到所述拍摄预览界面上有两个触摸点, 则 分别确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一 触摸点对应的第一摄像头焦点, 和与所述两个触摸点中的第二触摸点对应 的第二摄像头焦点。
6. 根据权利要求 1 至 5 中任一项所述的对焦方法, 其特征在于, 还 包括:
根据所述两个触摸点之间的相对位置, 和所述双摄像头之间的相对位 置, 确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一 触摸点对应的第一摄像头焦点, 和与所述两个触摸点中的第二触摸点对应 的第二摄像头焦点。
7. 一种对焦装置, 用于具有双摄像头的终端, 其中, 所述双摄像头 位于所述终端的一侧, 其特征在于, 包括:
确定单元, 当处于所述双摄像头对应的拍摄预览界面时, 若检测到所 述拍摄预览界面上有两个触摸点, 则分别确定所述双摄像头的两个摄像头 焦点中, 与所述两个触摸点中的第一触摸点对应的第一摄像头焦点, 和与 所述两个触摸点中的第二触摸点对应的第二摄像头焦点;
焦点调节单元, 连接至所述确定单元, 分别根据所述第一触摸点和所 述第二触摸点在所述拍摄预览界面上的滑动轨迹, 调节所述第一摄像头焦 点和所述第二摄像头焦点的位置, 其中, 所述第一摄像头焦点和所述第二 摄像头焦点位于同一条直线上。
8. 根据权利要求 7 所述的对焦装置, 其特征在于, 所述焦点调节单 元具体用于:
分别获取所述第一触摸点的滑动轨迹和所述第二触摸点的滑动轨迹; 根据所述第一触摸点的滑动轨迹, 确定所述第一触摸点滑动的方向和 滑动的水平位移或竖直位移;
根据所述第一触摸点滑动的方向以及滑动的水平位移或竖直位移, 按 照预设位移和方向转换规则, 确定所述第一摄像头焦点的滑动方向和滑动 位移;
根据所述第二触摸点的滑动轨迹, 确定所述第二触摸点滑动的方向和 滑动的水平位移或竖直位移;
根据所述第二触摸点滑动的方向以及滑动的水平位移或竖直位移, 按 照预设的位移和方向转换规则, 确定所述第二摄像头焦点的滑动方向和滑 动位移;
按照所述第一摄像头焦点的滑动方向和滑动位移调节所述第一摄像头 焦点的位置, 按照所述第二摄像头焦点的滑动方向和滑动位移调节所述第 二摄像头焦点的位置。
9. 根据权利要求 8 所述的对焦装置, 其特征在于, 所述焦点调节单 元还用于:
在所述第一触摸点向所述第二触摸点靠近 /远离时, 所述第一摄像头 焦点向所述第二摄像头焦点靠近 /远离, 在所述第二触摸点向所述第一触 摸点靠近 /远离时, 所述第二摄像头焦点向所述第一摄像头焦点靠近 /远 离, 当所述第一触摸点和所述第二触摸点相互靠近 /远离时, 所述第一摄 像头焦点和所述第二摄像头焦点相互靠近 /远离。
10. 根据权利要求 8所述的对焦装置, 其特征在于, 所述预设的位移 和方向转换规则包括:
所述第一触摸点和所述第二触摸点的滑动位移与所述第一摄像头焦点 和所述第二摄像头焦点的滑动位移之间的位移比例, 以及
所述第一触摸点和所述第二触摸点的滑动方向与所述第一摄像头焦点 和所述第二摄像头焦点的滑动方向之间的对应关系。
11. 根据权利要求 7所述的对焦装置, 其特征在于, 所述确定单元还 包括:
判断单元, 当处于所述双摄像头对应的拍摄预览界面时, 根据接收到 的焦点选择命令判断是否需要调节所述双摄像头焦点的位置, 以及
确定单元还用于: 在判断结果为是时, 若检测到所述拍摄预览界面上 有两个触摸点, 则分别确定所述双摄像头的两个摄像头焦点中, 与所述两 个触摸点中的第一触摸点对应的第一摄像头焦点, 和与所述两个触摸点中 的第二触摸点对应的第二摄像头焦点。
12. 根据权利要求 7 至 11 中任一项所述的对焦装置, 其特征在于, 所述确定单元还用于:
根据所述两个触摸点之间的相对位置, 和所述双摄像头之间的相对位 置, 确定所述双摄像头的两个摄像头焦点中, 与所述两个触摸点中的第一 触摸点对应的第一摄像头焦点, 和与所述两个触摸点中的第二触摸点对应 的第二摄像头焦点。
PCT/CN2014/083359 2014-07-30 2014-07-30 对焦方法和对焦装置 WO2016015261A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201480080664.1A CN107076961B (zh) 2014-07-30 2014-07-30 对焦方法和对焦装置
PCT/CN2014/083359 WO2016015261A1 (zh) 2014-07-30 2014-07-30 对焦方法和对焦装置
EP14899049.2A EP3159722A1 (en) 2014-07-30 2014-07-30 Focusing method and focusing apparatus
US15/412,298 US10440253B2 (en) 2014-07-30 2017-01-23 Focusing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/083359 WO2016015261A1 (zh) 2014-07-30 2014-07-30 对焦方法和对焦装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/412,298 Continuation-In-Part US10440253B2 (en) 2014-07-30 2017-01-23 Focusing method and terminal

Publications (1)

Publication Number Publication Date
WO2016015261A1 true WO2016015261A1 (zh) 2016-02-04

Family

ID=55216622

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083359 WO2016015261A1 (zh) 2014-07-30 2014-07-30 对焦方法和对焦装置

Country Status (4)

Country Link
US (1) US10440253B2 (zh)
EP (1) EP3159722A1 (zh)
CN (1) CN107076961B (zh)
WO (1) WO2016015261A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10701256B2 (en) 2016-06-12 2020-06-30 Apple Inc. Switchover control techniques for dual-sensor camera system
KR102593824B1 (ko) * 2016-08-31 2023-10-25 삼성전자주식회사 카메라를 제어하기 위한 방법 및 그 전자 장치
CN107426500B (zh) * 2017-08-07 2021-04-06 深圳传音控股股份有限公司 一种移动终端的相机对焦方法、对焦装置以及移动终端
CN110071961A (zh) * 2019-03-15 2019-07-30 徐戈 一种图像获取方法及装置
CN110602409B (zh) * 2019-10-23 2021-06-04 Oppo广东移动通信有限公司 拍照方法、装置、电子设备及存储介质
CN112616022A (zh) * 2020-12-21 2021-04-06 努比亚技术有限公司 一种多点对焦方法、装置、终端及可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010204483A (ja) * 2009-03-04 2010-09-16 Fujifilm Corp 撮像装置、方法およびプログラム
CN102511013A (zh) * 2010-07-23 2012-06-20 索尼公司 摄像装置及其控制方法和程序
CN103312979A (zh) * 2012-03-15 2013-09-18 奥林巴斯映像株式会社 摄影设备以及摄影设备的控制方法
CN103763477A (zh) * 2014-02-21 2014-04-30 上海果壳电子有限公司 一种双摄像头拍后调焦成像装置和方法
EP2728852A2 (en) * 2012-10-30 2014-05-07 Samsung Electronics Co., Ltd Imaging apparatus and control method
US20140160245A1 (en) * 2012-12-10 2014-06-12 Mediatek Inc. Method and apparatus for stereoscopic focus control of stereo camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9204026B2 (en) * 2010-11-01 2015-12-01 Lg Electronics Inc. Mobile terminal and method of controlling an image photographing therein
US20120120277A1 (en) * 2010-11-16 2012-05-17 Apple Inc. Multi-point Touch Focus
CN202103758U (zh) * 2010-12-29 2012-01-04 东莞宇龙通信科技有限公司 一种带有双摄像头的便携式电子设备
CN103729128B (zh) * 2012-10-10 2017-12-22 腾讯科技(深圳)有限公司 一种摄像设备变换焦距的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010204483A (ja) * 2009-03-04 2010-09-16 Fujifilm Corp 撮像装置、方法およびプログラム
CN102511013A (zh) * 2010-07-23 2012-06-20 索尼公司 摄像装置及其控制方法和程序
CN103312979A (zh) * 2012-03-15 2013-09-18 奥林巴斯映像株式会社 摄影设备以及摄影设备的控制方法
EP2728852A2 (en) * 2012-10-30 2014-05-07 Samsung Electronics Co., Ltd Imaging apparatus and control method
US20140160245A1 (en) * 2012-12-10 2014-06-12 Mediatek Inc. Method and apparatus for stereoscopic focus control of stereo camera
CN103763477A (zh) * 2014-02-21 2014-04-30 上海果壳电子有限公司 一种双摄像头拍后调焦成像装置和方法

Also Published As

Publication number Publication date
CN107076961A (zh) 2017-08-18
US10440253B2 (en) 2019-10-08
CN107076961B (zh) 2019-08-02
US20170134640A1 (en) 2017-05-11
EP3159722A1 (en) 2017-04-26

Similar Documents

Publication Publication Date Title
WO2016015261A1 (zh) 对焦方法和对焦装置
US9756241B2 (en) Image capturing apparatus
JP2019135879A (ja) プレビュー画像表示方法及び装置、並びに端末
US10165199B2 (en) Image capturing apparatus for photographing object according to 3D virtual object
WO2015180548A1 (zh) 一种实现自动拍摄的方法及装置
TWI528225B (zh) 電子設備及其根據手勢控制拍照的方法
US9992421B2 (en) Image pickup apparatus having FA zoom function, method for controlling the apparatus, and recording medium
US9344634B2 (en) Imaging apparatus having subject detection function, method for controlling the imaging apparatus, and storage medium
WO2014071840A1 (zh) 一种拍摄照片和视频的方法及装置
CN105847664B (zh) 一种移动终端拍照的方法和装置
WO2015184723A1 (zh) 拍摄控制方法、装置及终端
WO2015180509A1 (zh) 一种图像获取终端和图像获取方法
CN105120179B (zh) 一种拍照方法和装置
CN107835375B (zh) 全景摄像的方法及装置
KR102407190B1 (ko) 영상 촬영 장치 및 그 동작 방법
WO2014153950A1 (zh) 快速自动聚焦的方法和图像采集装置
WO2015192547A1 (zh) 一种基于移动终端的三维照片拍摄方法及移动终端
US10250795B2 (en) Identifying a focus point in a scene utilizing a plurality of cameras
CN104580899B (zh) 物体成像的控制方法及成像装置
JP2017011579A (ja) 撮像装置及びその制御方法、プログラム、並びに記憶媒体
JP2015019376A (ja) 撮影制御システム及びその制御方法
TWI516117B (zh) 電子裝置及輔助拍攝方法
CN105554401A (zh) 一种基于变焦的拍照处理装置和方法
EP2958308A1 (en) Method for taking a self-portrait
CN104580898A (zh) 成像装置的控制方法和成像装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14899049

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014899049

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014899049

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE