[go: up one dir, main page]

CN104601883B - A kind of method and device of image taking - Google Patents

A kind of method and device of image taking Download PDF

Info

Publication number
CN104601883B
CN104601883B CN201410844052.7A CN201410844052A CN104601883B CN 104601883 B CN104601883 B CN 104601883B CN 201410844052 A CN201410844052 A CN 201410844052A CN 104601883 B CN104601883 B CN 104601883B
Authority
CN
China
Prior art keywords
focus
shooting
focusing
unit
parameter value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410844052.7A
Other languages
Chinese (zh)
Other versions
CN104601883A (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 CN201410844052.7A priority Critical patent/CN104601883B/en
Publication of CN104601883A publication Critical patent/CN104601883A/en
Application granted granted Critical
Publication of CN104601883B publication Critical patent/CN104601883B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

本发明实施例公开了一种图像拍摄的方法及装置。其中的方法包括:当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值;控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值;根据所述第一对焦参数值和所述第二对焦参数值,确定所述终端的对焦点;采用所述终端的对焦点,完成拍摄动作。本发明实施例还相应地公开了一种图像拍摄的装置。采用本发明实施例,通过终端的第一拍摄单元和第二拍摄单元同时进行对焦操作,实现拍摄过程中的快速对焦。

The embodiment of the invention discloses an image shooting method and device. The method includes: when receiving a shooting instruction, controlling the first shooting unit to perform a focusing operation along a preset direction, and acquiring a first focusing parameter value; controlling the second shooting unit to perform a focusing operation in a direction opposite to the preset direction performing a focusing operation, and obtaining a second focusing parameter value; determining a focusing point of the terminal according to the first focusing parameter value and the second focusing parameter value; and completing the shooting action by using the focusing point of the terminal. The embodiment of the invention also correspondingly discloses an image capturing device. By adopting the embodiment of the present invention, the first photographing unit and the second photographing unit of the terminal perform focusing operations at the same time, so as to realize rapid focusing during the photographing process.

Description

一种图像拍摄的方法及装置Method and device for capturing images

技术领域technical field

本发明涉及图像处理技术领域,尤其涉及一种图像拍摄的方法及装置。The present invention relates to the technical field of image processing, in particular to an image capturing method and device.

背景技术Background technique

目前,大多数具有拍照功能的便携设备如普通相机、手机、平板电脑等通常采用单摄像头技术来实现图像的拍摄,设备采用单摄像头的对焦过程一般为通过移动马达位置寻找最清晰点,并将此位置作为准确对焦位置。在整个对焦过程中,设备中感光元件上的成像会出现从模糊到清晰再到模糊,然后通过马达进行返程小步搜索来找到最清晰位置点。上述对焦方式虽然能够实现对焦功能,但在反复调整对焦马达过程耗费了大量的时间,延长了设备的图像拍摄时间,无法满足便携设备实现图像拍摄中快速对焦的要求。At present, most portable devices with camera functions, such as ordinary cameras, mobile phones, and tablet computers, usually use single-camera technology to capture images. The focusing process of devices using a single-camera is generally to find the clearest point by moving the position of the motor, and This position serves as the in-focus position. During the entire focusing process, the image on the photosensitive element in the device will change from blurred to clear and then to blurred, and then the motor will search in small steps to find the clearest position. Although the above-mentioned focusing method can achieve the focusing function, it takes a lot of time to repeatedly adjust the focus motor, which prolongs the image shooting time of the device, and cannot meet the requirements of fast focusing in image shooting for portable devices.

发明内容Contents of the invention

本发明实施例提供一种图像拍摄的方法及装置,可实现拍摄过程中的快速对焦。Embodiments of the present invention provide an image shooting method and device, which can realize fast focusing during the shooting process.

本发明实施例提供了一种图像拍摄的方法,应用于终端中,所述终端至少包括第一拍摄单元和第二拍摄单元,包括:An embodiment of the present invention provides an image capturing method, which is applied to a terminal, and the terminal includes at least a first capturing unit and a second capturing unit, including:

当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值;When receiving a shooting instruction, control the first shooting unit to perform a focusing operation along a preset direction, and acquire a first focusing parameter value;

控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值;controlling the second shooting unit to perform a focusing operation in a direction opposite to the preset direction, and acquiring a second focusing parameter value;

根据所述第一对焦参数值和所述第二对焦参数值,确定所述终端的对焦点;determining a focus point of the terminal according to the first focus parameter value and the second focus parameter value;

采用所述终端的对焦点,完成拍摄动作。The shooting action is completed by using the focusing point of the terminal.

相应地,本发明实施例还提供了一种图像拍摄的装置,包括:Correspondingly, an embodiment of the present invention also provides an image capturing device, including:

第一获取单元,用于当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值;The first acquiring unit is configured to, when receiving the shooting instruction, control the first shooting unit to perform a focusing operation along a preset direction, and acquire a first focusing parameter value;

第二获取单元,用于控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值;The second acquiring unit is configured to control the second photographing unit to perform a focusing operation in a direction opposite to the preset direction, and acquire a second focusing parameter value;

确定单元,用于根据所述第一对焦参数值和所述第二对焦参数值,确定所述终端的对焦点;a determining unit, configured to determine the focus point of the terminal according to the first focus parameter value and the second focus parameter value;

执行单元,用于采用所述终端的对焦点,完成拍摄动作。The execution unit is configured to use the focusing point of the terminal to complete the shooting action.

在本发明实施例中,可通过终端的第一拍摄单元和第二拍摄单元同时进行对焦操作,实现拍摄过程中的快速对焦。In the embodiment of the present invention, the first photographing unit and the second photographing unit of the terminal can perform focusing operations simultaneously, so as to realize rapid focusing during the photographing process.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1是本发明实施例提供的一种图像拍摄的方法的流程示意图;FIG. 1 is a schematic flowchart of an image capturing method provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种图像拍摄的方法的流程示意图;Fig. 2 is a schematic flow chart of another image capturing method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种图像拍摄的装置的结构示意图;Fig. 3 is a schematic structural diagram of an image capturing device provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种图像拍摄的装置的结构示意图。Fig. 4 is a schematic structural diagram of another image capturing device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参照图1,为本发明实施例提供的一种图像拍摄的方法的流程示意图,应用于终端中,所述终端至少包括第一拍摄单元和第二拍摄单元,该方法包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of an image capturing method provided by an embodiment of the present invention, which is applied to a terminal, and the terminal includes at least a first capturing unit and a second capturing unit. The method includes the following steps:

S101,当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值。S101. When a shooting instruction is received, control the first shooting unit to perform a focusing operation along a preset direction, and acquire a first focusing parameter value.

具体实现中,本实施例可应用于拥有两个或多个摄像头的具有拍摄功能的设备中,所述具有拍摄功能的设备可以包括具有两个或多个摄像头的相机、手机、平板电脑、笔记本电脑等,拍摄对象可以为人像,也可以为如风景、物品等。所述终端至少包括第一拍摄单元和第二拍摄单元,其中,第一拍摄单元对应实体装置为第一组摄像头,所述第一组摄像头可以为一个或多个固定在第一区域范围内的摄像头;第二拍摄单元对应实体装置为第二组摄像头,所述第二组摄像头可以为一个或多个固定在第二区域范围内的摄像头。所述终端中的第一区域可以为镜头中心和成像平面中心之间的距离的中点为界限,第一区域与第二区域为中心点的两侧位置,如靠近镜头的区域为第一区域,远离镜头的区域为第二区域,或者远离镜头的区域为第一区域,靠近镜头的区域为第二区域。在拍照时将拍摄对象锁定与镜头内后,可开启终端的两个或多个摄像头同时进行对焦,完成图像拍摄任务。In a specific implementation, this embodiment can be applied to a device with a shooting function having two or more cameras, and the device with a shooting function may include a camera with two or more cameras, a mobile phone, a tablet computer, a notebook Computers, etc. The subject can be a portrait, or it can be a landscape, an object, etc. The terminal includes at least a first photographing unit and a second photographing unit, wherein the first photographing unit corresponds to a first group of cameras, and the first group of cameras may be one or more cameras fixed within the first area. The camera; the second shooting unit corresponds to the second group of cameras as the physical device, and the second group of cameras may be one or more cameras fixed within the range of the second area. The first area in the terminal can be bounded by the midpoint of the distance between the center of the lens and the center of the imaging plane, the first area and the second area are the positions on both sides of the center point, such as the area close to the lens is the first area , the area far away from the lens is the second area, or the area far away from the lens is the first area, and the area close to the lens is the second area. After locking the subject in the lens when taking a photo, two or more cameras of the terminal can be turned on to focus at the same time to complete the image shooting task.

在进行拍摄前,终端的预设方向可以通过根据第一拍摄单元和第二拍摄单元的具体位置来决定,终端接收到拍摄指令时,开始控制所述第一拍摄单元沿着预设的方向执行对焦操作,获取第一对焦参数值,所述第一对焦参数值为在对焦过程中获取的多个第一对焦参数值。Before shooting, the preset direction of the terminal can be determined according to the specific positions of the first shooting unit and the second shooting unit. When the terminal receives the shooting instruction, it starts to control the first shooting unit to execute along the preset direction. A focus operation is to acquire a first focus parameter value, where the first focus parameter value is a plurality of first focus parameter values acquired during the focus process.

S102,控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值。S102. Control the second photographing unit to perform a focusing operation in a direction opposite to the preset direction, and acquire a second focusing parameter value.

具体实现中,在终端接收到拍摄指令时,控制所述第一拍摄单元沿着预设的方向执行对焦操作的同时,终端也控制所述第二拍摄单元沿着预设方向的反方向执行对焦操作,即第一拍摄单元和第二拍摄单元进行相对运动,执行对焦操作,并获取第二对焦参数值,所述第二对焦参数值为在对焦过程中获取的多个第二对焦参数值。In a specific implementation, when the terminal receives the shooting instruction, while controlling the first shooting unit to perform a focusing operation along a preset direction, the terminal also controls the second shooting unit to perform a focusing operation along a direction opposite to the preset direction. operation, that is, the first photographing unit and the second photographing unit perform relative movement, perform a focusing operation, and obtain a second focusing parameter value, and the second focusing parameter value is a plurality of second focusing parameter values obtained during the focusing process.

S103,根据所述第一对焦参数值和所述第二对焦参数值,确定所述终端的对焦点。S103. Determine a focus point of the terminal according to the first focus parameter value and the second focus parameter value.

具体实现中,终端的第一拍摄单元和第二拍摄单元在接收到拍摄指令后,同时执行对焦操作,且在对焦过程中实时地获取所述第一对焦参数值和所述第二对焦参数值,并根据对焦参数值的变化趋势,判断对焦是否完成,或通过调整对焦操作继续进行对焦,直到确定所述终端的对焦点。In a specific implementation, after receiving the shooting instruction, the first shooting unit and the second shooting unit of the terminal perform a focusing operation at the same time, and acquire the first focusing parameter value and the second focusing parameter value in real time during the focusing process , and judge whether the focusing is completed according to the change trend of the focusing parameter value, or continue focusing by adjusting the focusing operation until the focusing point of the terminal is determined.

S104,采用所述终端的对焦点,完成拍摄动作。S104, using the focusing point of the terminal to complete the shooting action.

具体实现中,当确定所述终端的对焦点后,采用所述终端的对焦点,执行拍摄动作,可通过终端的电子屏显示或其它方式存储拍摄到的清晰的图像。In a specific implementation, after the focus point of the terminal is determined, the focus point of the terminal is used to perform a shooting action, and the captured clear image can be stored on the electronic screen display of the terminal or in other ways.

采用本发明实施例,可通过终端的第一拍摄单元和第二拍摄单元同时进行对焦操作,实现拍摄过程中的快速对焦。By adopting the embodiment of the present invention, the first photographing unit and the second photographing unit of the terminal can perform focusing operations at the same time, so as to realize rapid focusing during the photographing process.

请参照图2,为本发明实施例提供的另一种图像拍摄的方法的流程示意图,该方法包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of another image capturing method provided by an embodiment of the present invention. The method includes the following steps:

S201,当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取所述第一摄像单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两个对焦参数值。S201. When a shooting instruction is received, control the first camera unit to perform a focusing operation along a preset direction, and acquire at least two Focus parameter value.

具体实现中,本实施例可应用于拥有两个或多个摄像头的具有拍摄功能的设备中,所述具有拍摄功能的设备可以包括具有两个或多个摄像头的相机、手机、平板电脑、笔记本电脑等,被拍摄对象可以为人像,也可以为如风景、物品等。所述终端至少包括第一拍摄单元和第二拍摄单元,其中,第一拍摄单元对应实体装置为第一组摄像头,所述第一组摄像头可以为一个或多个固定在第一区域范围内的摄像头;第二拍摄单元对应实体装置为第二组摄像头,所述第二组摄像头可以为一个或多个固定在第二区域范围内的摄像头。所述终端中的第一区域可以为镜头中心和成像平面中心之间的距离的中点为界限,第一区域与第二区域为中心点的两侧位置,如靠近镜头的区域为第一区域,远离镜头的区域为第二区域,或者远离镜头的区域为第一区域,靠近镜头的区域为第二区域。在拍照时将拍摄对象锁定与镜头内后,可开启终端的两个或多个摄像头同时进行对焦,完成图像拍摄任务。In a specific implementation, this embodiment can be applied to a device with a shooting function having two or more cameras, and the device with a shooting function may include a camera with two or more cameras, a mobile phone, a tablet computer, a notebook Computers, etc. The subject can be a portrait, or it can be a landscape, an object, etc. The terminal includes at least a first photographing unit and a second photographing unit, wherein the first photographing unit corresponds to a first group of cameras, and the first group of cameras may be one or more cameras fixed within the first area. The camera; the second shooting unit corresponds to the second group of cameras as the physical device, and the second group of cameras may be one or more cameras fixed within the range of the second area. The first area in the terminal can be bounded by the midpoint of the distance between the center of the lens and the center of the imaging plane, the first area and the second area are the positions on both sides of the center point, such as the area close to the lens is the first area , the area far away from the lens is the second area, or the area far away from the lens is the first area, and the area close to the lens is the second area. After locking the subject in the lens when taking a photo, two or more cameras of the terminal can be turned on to focus at the same time to complete the image shooting task.

在进行拍摄前,终端的预设方向可以通过根据第一拍摄单元和第二拍摄单元的具体位置来决定,其中预设方向可以为从拍摄对象至所述终端的水平方向,则所述预设方向的反方向为从所述终端至所述拍摄对象的水平方向,也可以是预设方向为从所述终端至所述拍摄对象的水平方向,则所述预设方向的反方向为从拍摄对象至所述终端的水平方向。从开始执行对焦操作到结束对焦操作的过程中,由终端根据对焦算法获得第一摄像单元的至少两个对焦参数值,并反馈当前对焦的清晰位置与镜头的距离。Before shooting, the preset direction of the terminal can be determined according to the specific positions of the first shooting unit and the second shooting unit, wherein the preset direction can be the horizontal direction from the shooting object to the terminal, then the preset The opposite direction of the direction is the horizontal direction from the terminal to the subject, or the preset direction is the horizontal direction from the terminal to the subject, then the opposite direction of the preset direction is from the The horizontal orientation of the object to the terminal. During the process from the start of the focus operation to the end of the focus operation, the terminal obtains at least two focus parameter values of the first camera unit according to the focus algorithm, and feeds back the distance between the currently focused clear position and the lens.

S202,控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取所述第二摄像单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两组对焦参数值。S202. Control the second camera unit to perform a focusing operation in a direction opposite to the preset direction, and obtain at least two sets of focus parameter values obtained by the second camera unit from the start of the focus operation to the end of the focus operation.

具体实现中,所述第一拍摄单元和第二拍摄单元的对焦操作是同时进行的,即在接收到拍摄指令时,终端同时控制第一拍摄单元和第二拍摄单元执行对焦操作,但第一拍摄单元和第二拍摄单元的对焦操作方向是互为反方向。以双摄像头的移动设备为例,两个摄像头从指定位置开始移动镜头去搜索最佳对焦位置,一个摄像头为靠近拍摄对象的位置,其对焦马达沿着拍摄对象向成像平面或感光元件方向移动镜头,另一个摄像头的对焦马达与前一摄像头的对焦马达移动方向相反,每个摄像头根据对焦算法计算对焦参数值,并实时反馈对焦清晰位置与镜头的距离。In a specific implementation, the focusing operations of the first shooting unit and the second shooting unit are performed simultaneously, that is, when a shooting instruction is received, the terminal simultaneously controls the first shooting unit and the second shooting unit to perform the focusing operation, but the first The focusing operation directions of the photographing unit and the second photographing unit are opposite to each other. Take a dual-camera mobile device as an example. The two cameras move the lens from the specified position to search for the best focus position. One camera is close to the subject, and its focus motor moves the lens along the subject to the imaging plane or photosensitive element. , the focus motor of the other camera moves in the opposite direction to the focus motor of the previous camera, each camera calculates the focus parameter value according to the focus algorithm, and feeds back the distance between the clear focus position and the lens in real time.

S203,根据所述第一对焦参数值和所述第二对焦参数值的变化趋势,判断是否对焦成功。S203. Determine whether focusing is successful according to the variation trend of the first focusing parameter value and the second focusing parameter value.

具体实现中,终端根据所述第一对焦参数值和所述第二对焦参数值的变化趋势来判断是否对焦成功,可以将所述第一对焦参数值和所述第二对焦参数值的变化趋势分为两种情况。In a specific implementation, the terminal judges whether the focus is successful according to the change trend of the first focus parameter value and the second focus parameter value, and the change trend of the first focus parameter value and the second focus parameter value Divided into two situations.

第一种情况是,当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值的变化趋势和所述第二对焦参数值的变化趋势均为递增趋势,判断所述第一拍摄单元到拍摄对象的距离与所述第二拍摄单元到拍摄对象的距离是否相等,即在进行对焦过程中实时监测对焦参数值以及对焦平面与镜头距离,以双摄像头的移动设备为例,如果第一对焦参数值和所述第二对焦参数值都同时在不断增大,感光平面上的成像也会越来越清晰,当监测到两个摄像头反馈的当前清晰对焦平面与镜头距离相等时,则可以直接判定当前已经对焦成功。The first situation is that when the first photographing unit and the second photographing unit perform focusing operations, if the change trend of the first focus parameter value and the change trend of the second focus parameter value are both increasing trends, it is judged that Whether the distance from the first shooting unit to the shooting object is equal to the distance from the second shooting unit to the shooting object, that is, the focusing parameter value and the distance between the focusing plane and the lens are monitored in real time during the focusing process, and the mobile device with dual cameras For example, if the value of the first focusing parameter and the value of the second focusing parameter are increasing at the same time, the imaging on the photosensitive plane will become clearer and clearer. When the distances are equal, it can be directly determined that the current focus has been successfully focused.

第二种情况是,当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值与所述第二对焦参数值中任一种的变化趋势为递减趋势,将所述变化趋势为递减趋势的拍摄单元的对焦操作进行反向调整,并执行返程小步搜索动作,当所述变化趋势为递减趋势的拍摄单元通过返程小步搜索动作完成对焦后,将第一拍摄单元和第二拍摄单元中变化趋势为非递减趋势的拍摄单元参考所述完成对焦的拍摄单元执行对焦动作,并确定对焦成功。即在进行对焦过程中实时监测对焦参数值以及对焦平面与镜头距离,以双摄像头的移动设备为例,将第一个摄像头视为第一拍摄单元,第二个摄像头视为第二拍摄单元,当第一个摄像头的对焦参数值出现递减趋势时,则需要将第一摄像头的对焦操作进行反向调整,并通过返程小步搜索,找到对焦清晰的位置点,此时将第二个摄像头参考第一个摄像头的对焦清晰的位置点,直接移动到该位置,即判定当前对焦成功。The second situation is that when the first shooting unit and the second shooting unit perform focusing operations, if the change trend of any one of the first focus parameter value and the second focus parameter value is a decreasing trend, the The focusing operation of the shooting unit whose changing trend is a decreasing trend is reversely adjusted, and a small-step return search action is performed. The photographing unit whose change trend is non-decreasing among the photographing unit and the second photographing unit performs a focusing action with reference to the photographing unit that has completed focusing, and determines that the focusing is successful. That is, during the focusing process, the focus parameter value and the distance between the focus plane and the lens are monitored in real time. Taking a mobile device with dual cameras as an example, the first camera is regarded as the first shooting unit, and the second camera is regarded as the second shooting unit. When the focus parameter value of the first camera shows a decreasing trend, it is necessary to reversely adjust the focus operation of the first camera, and search in small steps on the return trip to find a point with clear focus. The focus point of the first camera is clear, if you directly move to this position, it is judged that the current focus is successful.

S204,若对焦成功,为所述终端确定对焦点。S204. If the focus is successful, determine a focus point for the terminal.

具体实现中,当第一对焦单元和第二对焦单元寻找到对焦点位置时,即说明终端对焦成功,图像拍摄过程中只有在对焦成功时,才能够拍摄出较为清晰的图像,因此,如果终端检测到对焦成功时,为所述终端确定对焦点,便于终端拍摄出较为清晰的图像。In the specific implementation, when the first focusing unit and the second focusing unit find the position of the focus point, it means that the terminal has successfully focused, and only when the focus is successful during the image shooting process can a clearer image be captured. Therefore, if the terminal When it is detected that the focus is successful, the focus point is determined for the terminal, so that the terminal can take a clearer image.

S205,采用所述终端的对焦点,完成拍摄动作。S205, using the focus point of the terminal to complete the shooting action.

具体实现中,所述终端确定了对焦点,在拍摄时可在终端处于已经对焦成功的状态时,获取拍摄对象的图像,并通过显示屏显示或者存储于终端存储单元中。In a specific implementation, the terminal has determined the focus point, and when the terminal is in a state where the focus has been successfully focused, the terminal can acquire the image of the object to be photographed, and display it on the display screen or store it in the storage unit of the terminal.

采用本发明实施例,可通过所述终端的第一拍摄单元和第二拍摄单元共同完成对焦操作,并根据获取的所述对焦参数值的变化趋势判断是否对焦成功,缩减了对焦的时间,实现拍摄过程中的快速对焦。By adopting the embodiment of the present invention, the focusing operation can be completed jointly by the first shooting unit and the second shooting unit of the terminal, and whether the focusing is successful can be judged according to the obtained variation trend of the focusing parameter value, thereby shortening the focusing time and realizing Fast focusing during shooting.

请参照图3,为本发明实施例提供的一种图像拍摄的装置的结构示意图,该装置包括如下单元:Please refer to FIG. 3 , which is a schematic structural diagram of an image capturing device provided by an embodiment of the present invention. The device includes the following units:

第一获取单元11,用于当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值。The first acquiring unit 11 is configured to control the first photographing unit to perform a focusing operation along a preset direction and acquire a first focusing parameter value when a photographing instruction is received.

具体实现中,本实施例可应用于拥有两个或多个摄像头的具有拍摄功能的设备中,所述具有拍摄功能的设备可以包括具有两个或多个摄像头的相机、手机、平板电脑、笔记本电脑等,拍摄对象可以为人像,也可以为如风景、物品等。所述终端至少包括第一拍摄单元和第二拍摄单元,其中,第一拍摄单元对应实体装置为第一组摄像头,所述第一组摄像头可以为一个或多个固定在第一区域范围内的摄像头;第二拍摄单元对应实体装置为第二组摄像头,所述第二组摄像头可以为一个或多个固定在第二区域范围内的摄像头。所述终端中的第一区域可以为镜头中心和成像平面中心之间的距离的中点为界限,第一区域与第二区域为中心点的两侧位置,如靠近镜头的区域为第一区域,远离镜头的区域为第二区域,或者远离镜头的区域为第一区域,靠近镜头的区域为第二区域。在拍照时将拍摄对象锁定与镜头内后,可开启终端的两个或多个摄像头同时进行对焦,完成图像拍摄任务。In a specific implementation, this embodiment can be applied to a device with a shooting function having two or more cameras, and the device with a shooting function may include a camera with two or more cameras, a mobile phone, a tablet computer, a notebook Computers, etc. The subject can be a portrait, or it can be a landscape, an object, etc. The terminal includes at least a first photographing unit and a second photographing unit, wherein the first photographing unit corresponds to a first group of cameras, and the first group of cameras may be one or more cameras fixed within the first area. The camera; the second shooting unit corresponds to the second group of cameras as the physical device, and the second group of cameras may be one or more cameras fixed within the range of the second area. The first area in the terminal can be bounded by the midpoint of the distance between the center of the lens and the center of the imaging plane, the first area and the second area are the positions on both sides of the center point, such as the area close to the lens is the first area , the area far away from the lens is the second area, or the area far away from the lens is the first area, and the area close to the lens is the second area. After locking the subject in the lens when taking a photo, two or more cameras of the terminal can be turned on to focus at the same time to complete the image shooting task.

在进行拍摄前,终端的预设方向可以通过根据第一拍摄单元和第二拍摄单元的具体位置来决定,终端接收到拍摄指令时,开始控制所述第一拍摄单元沿着预设的方向执行对焦操作,获取第一对焦参数值,所述第一对焦参数值为在对焦过程中获取的多个第一对焦参数值。Before shooting, the preset direction of the terminal can be determined according to the specific positions of the first shooting unit and the second shooting unit. When the terminal receives the shooting instruction, it starts to control the first shooting unit to execute along the preset direction. A focus operation is to acquire a first focus parameter value, where the first focus parameter value is a plurality of first focus parameter values acquired during the focus process.

第二获取单元12,用于控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值。The second acquiring unit 12 is configured to control the second photographing unit to perform a focusing operation in a direction opposite to the preset direction, and acquire a second focusing parameter value.

具体实现中,在终端接收到拍摄指令时,控制所述第一拍摄单元沿着预设的方向执行对焦操作的同时,终端也控制所述第二拍摄单元沿着预设方向的反方向执行对焦操作,即第一拍摄单元和第二拍摄单元进行相对运动,执行对焦操作,并获取第二对焦参数值,所述第二对焦参数值为在对焦过程中获取的多个第二对焦参数值。In a specific implementation, when the terminal receives the shooting instruction, while controlling the first shooting unit to perform a focusing operation along a preset direction, the terminal also controls the second shooting unit to perform a focusing operation along a direction opposite to the preset direction. operation, that is, the first photographing unit and the second photographing unit perform relative movement, perform a focusing operation, and obtain a second focusing parameter value, and the second focusing parameter value is a plurality of second focusing parameter values obtained during the focusing process.

确定单元13,用于根据所述第一对焦参数值和所述第二对焦参数值,确定所述终端的对焦点。The determination unit 13 is configured to determine the focus point of the terminal according to the first focus parameter value and the second focus parameter value.

具体实现中,终端的第一拍摄单元和第二拍摄单元在接收到拍摄指令后,同时执行对焦操作,且在对焦过程中实时地获取所述第一对焦参数值和所述第二对焦参数值,并根据对焦参数值的变化趋势,判断对焦是否完成,或通过调整对焦操作继续进行对焦,直到确定所述终端的对焦点。In a specific implementation, after receiving the shooting instruction, the first shooting unit and the second shooting unit of the terminal perform a focusing operation at the same time, and acquire the first focusing parameter value and the second focusing parameter value in real time during the focusing process , and judge whether the focusing is completed according to the change trend of the focusing parameter value, or continue focusing by adjusting the focusing operation until the focusing point of the terminal is determined.

执行单元14,用于采用所述终端的对焦点,完成拍摄动作。The execution unit 14 is configured to use the focusing point of the terminal to complete the shooting action.

具体实现中,当确定所述终端的对焦点后,采用所述终端的对焦点,执行拍摄动作,可通过终端的电子屏显示或其它方式存储拍摄到的清晰的图像。In a specific implementation, after the focus point of the terminal is determined, the focus point of the terminal is used to perform a shooting action, and the captured clear image can be stored on the electronic screen display of the terminal or in other ways.

采用本发明实施例,可通过终端的第一拍摄单元和第二拍摄单元同时进行对焦操作,实现拍摄过程中的快速对焦。By adopting the embodiment of the present invention, the first photographing unit and the second photographing unit of the terminal can perform focusing operations at the same time, so as to realize rapid focusing during the photographing process.

请参照图4,为本发明实施例提供的另一种图像拍摄的装置的结构示意图,该装置包括如下单元:Please refer to FIG. 4, which is a schematic structural diagram of another image capturing device provided by an embodiment of the present invention. The device includes the following units:

第一获取单元21,当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取所述第一摄像单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两个对焦参数值。The first acquisition unit 21, when receiving a shooting instruction, controls the first shooting unit to perform a focusing operation along a preset direction, and obtains the information acquired by the first imaging unit from the start of the focusing operation to the end of the focusing operation. At least two focusing parameter values for .

具体实现中,本实施例可应用于拥有两个或多个摄像头的具有拍摄功能的设备中,所述具有拍摄功能的设备可以包括具有两个或多个摄像头的相机、手机、平板电脑、笔记本电脑等,被拍摄对象可以为人像,也可以为如风景、物品等。所述终端至少包括第一拍摄单元和第二拍摄单元,其中,第一拍摄单元对应实体装置为第一组摄像头,所述第一组摄像头可以为一个或多个固定在第一区域范围内的摄像头;第二拍摄单元对应实体装置为第二组摄像头,所述第二组摄像头可以为一个或多个固定在第二区域范围内的摄像头。所述终端中的第一区域可以为镜头中心和成像平面中心之间的距离的中点为界限,第一区域与第二区域为中心点的两侧位置,如靠近镜头的区域为第一区域,远离镜头的区域为第二区域,或者远离镜头的区域为第一区域,靠近镜头的区域为第二区域。在拍照时将拍摄对象锁定与镜头内后,可开启终端的两个或多个摄像头同时进行对焦,完成图像拍摄任务。In a specific implementation, this embodiment can be applied to a device with a shooting function having two or more cameras, and the device with a shooting function may include a camera with two or more cameras, a mobile phone, a tablet computer, a notebook Computers, etc. The subject can be a portrait, or it can be a landscape, an object, etc. The terminal includes at least a first photographing unit and a second photographing unit, wherein the first photographing unit corresponds to a first group of cameras, and the first group of cameras may be one or more cameras fixed within the first area. The camera; the second shooting unit corresponds to the second group of cameras as the physical device, and the second group of cameras may be one or more cameras fixed within the range of the second area. The first area in the terminal can be bounded by the midpoint of the distance between the center of the lens and the center of the imaging plane, the first area and the second area are the positions on both sides of the center point, such as the area close to the lens is the first area , the area far away from the lens is the second area, or the area far away from the lens is the first area, and the area close to the lens is the second area. After locking the subject in the lens when taking a photo, two or more cameras of the terminal can be turned on to focus at the same time to complete the image shooting task.

在进行拍摄前,终端的预设方向可以通过根据第一拍摄单元和第二拍摄单元的具体位置来决定,其中预设方向可以为从拍摄对象至所述终端的水平方向,则所述预设方向的反方向为从所述终端至所述拍摄对象的水平方向,也可以是预设方向为从所述终端至所述拍摄对象的水平方向,则所述预设方向的反方向为从拍摄对象至所述终端的水平方向。从开始执行对焦操作到结束对焦操作的过程中,由终端根据对焦算法获得第一摄像单元的至少两个对焦参数值,并反馈当前对焦的清晰位置与镜头的距离。Before shooting, the preset direction of the terminal can be determined according to the specific positions of the first shooting unit and the second shooting unit, wherein the preset direction can be the horizontal direction from the shooting object to the terminal, then the preset The opposite direction of the direction is the horizontal direction from the terminal to the subject, or the preset direction is the horizontal direction from the terminal to the subject, then the opposite direction of the preset direction is from the The horizontal orientation of the object to the terminal. During the process from the start of the focus operation to the end of the focus operation, the terminal obtains at least two focus parameter values of the first camera unit according to the focus algorithm, and feeds back the distance between the currently focused clear position and the lens.

第二获取单元22,控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取所述第二摄像单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两组对焦参数值。The second acquiring unit 22 is configured to control the second photographing unit to perform a focusing operation in the opposite direction to the preset direction, and acquire at least two groups of images acquired by the second photographing unit from the start of the focusing operation to the end of the focusing operation. Focus parameter value.

具体实现中,所述第一拍摄单元和第二拍摄单元的对焦操作是同时进行的,即在接收到拍摄指令时,终端同时控制第一拍摄单元和第二拍摄单元执行对焦操作,但第一拍摄单元和第二拍摄单元的对焦操作方向是互为反方向。以双摄像头的移动设备为例,两个摄像头从指定位置开始移动镜头去搜索最佳对焦位置,一个摄像头为靠近拍摄对象的位置,其对焦马达沿着拍摄对象向成像平面或感光元件方向移动镜头,另一个摄像头的对焦马达与前一摄像头的对焦马达移动方向相反,每个摄像头根据对焦算法计算对焦参数值,并实时反馈对焦清晰位置与镜头的距离。In a specific implementation, the focusing operations of the first shooting unit and the second shooting unit are performed simultaneously, that is, when a shooting instruction is received, the terminal simultaneously controls the first shooting unit and the second shooting unit to perform the focusing operation, but the first The focusing operation directions of the photographing unit and the second photographing unit are opposite to each other. Take a dual-camera mobile device as an example. The two cameras move the lens from the specified position to search for the best focus position. One camera is close to the subject, and its focus motor moves the lens along the subject to the imaging plane or photosensitive element. , the focus motor of the other camera moves in the opposite direction to the focus motor of the previous camera, each camera calculates the focus parameter value according to the focus algorithm, and feeds back the distance between the clear focus position and the lens in real time.

判断单元23,根据所述第一对焦参数值和所述第二对焦参数值的变化趋势,判断是否对焦成功。The judging unit 23 judges whether the focusing is successful according to the variation trend of the first focusing parameter value and the second focusing parameter value.

具体实现中,终端根据所述第一对焦参数值和所述第二对焦参数值的变化趋势来判断是否对焦成功,可以将所述第一对焦参数值和所述第二对焦参数值的变化趋势分为两种情况。In a specific implementation, the terminal judges whether the focus is successful according to the change trend of the first focus parameter value and the second focus parameter value, and the change trend of the first focus parameter value and the second focus parameter value Divided into two situations.

第一种情况是,当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值的变化趋势和所述第二对焦参数值的变化趋势均为递增趋势,判断所述第一拍摄单元到拍摄对象的距离与所述第二拍摄单元到拍摄对象的距离是否相等,即在进行对焦过程中实时监测对焦参数值以及对焦平面与镜头距离,以双摄像头的移动设备为例,如果第一对焦参数值和所述第二对焦参数值都同时在不断增大,感光平面上的成像也会越来越清晰,当监测到两个摄像头反馈的当前清晰对焦平面与镜头距离相等时,则可以直接判定当前已经对焦成功。The first situation is that when the first photographing unit and the second photographing unit perform focusing operations, if the change trend of the first focus parameter value and the change trend of the second focus parameter value are both increasing trends, it is judged that Whether the distance from the first shooting unit to the shooting object is equal to the distance from the second shooting unit to the shooting object, that is, the focusing parameter value and the distance between the focusing plane and the lens are monitored in real time during the focusing process, and the mobile device with dual cameras For example, if the value of the first focusing parameter and the value of the second focusing parameter are increasing at the same time, the imaging on the photosensitive plane will become clearer and clearer. When the distances are equal, it can be directly determined that the current focus has been successfully focused.

第二种情况是,当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值与所述第二对焦参数值中任一种的变化趋势为递减趋势,将所述变化趋势为递减趋势的拍摄单元的对焦操作进行反向调整,并执行返程小步搜索动作,当所述变化趋势为递减趋势的拍摄单元通过返程小步搜索动作完成对焦后,将第一拍摄单元和第二拍摄单元中变化趋势为非递减趋势的拍摄单元参考所述完成对焦的拍摄单元执行对焦动作,并确定对焦成功。即在进行对焦过程中实时监测对焦参数值以及对焦平面与镜头距离,以双摄像头的移动设备为例,将第一个摄像头视为第一拍摄单元,第二个摄像头视为第二拍摄单元,当第一个摄像头的对焦参数值出现递减趋势时,则需要将第一摄像头的对焦操作进行反向调整,并通过返程小步搜索,找到对焦清晰的位置点,此时将第二个摄像头参考第一个摄像头的对焦清晰的位置点,直接移动到该位置,即判定当前对焦成功。The second situation is that when the first shooting unit and the second shooting unit perform focusing operations, if the change trend of any one of the first focus parameter value and the second focus parameter value is a decreasing trend, the The focusing operation of the shooting unit whose changing trend is a decreasing trend is reversely adjusted, and a small-step return search action is performed. The photographing unit whose change trend is non-decreasing among the photographing unit and the second photographing unit performs a focusing action with reference to the photographing unit that has completed focusing, and determines that the focusing is successful. That is, during the focusing process, the focus parameter value and the distance between the focus plane and the lens are monitored in real time. Taking a mobile device with dual cameras as an example, the first camera is regarded as the first shooting unit, and the second camera is regarded as the second shooting unit. When the focus parameter value of the first camera shows a decreasing trend, it is necessary to reversely adjust the focus operation of the first camera, and search in small steps on the return trip to find a point with clear focus. The focus point of the first camera is clear, if you directly move to this position, it is judged that the current focus is successful.

对焦确定单元24,若对焦成功,为所述终端确定对焦点。The focus determination unit 24 determines a focus point for the terminal if the focus is successful.

具体实现中,当第一对焦单元和第二对焦单元寻找到对焦点位置时,即说明终端对焦成功,图像拍摄过程中只有在对焦成功时,才能够拍摄出较为清晰的图像,因此,如果终端检测到对焦成功时,为所述终端确定对焦点,便于终端拍摄出较为清晰的图像。In the specific implementation, when the first focusing unit and the second focusing unit find the position of the focus point, it means that the terminal has successfully focused, and only when the focus is successful during the image shooting process can a clearer image be captured. Therefore, if the terminal When it is detected that the focus is successful, the focus point is determined for the terminal, so that the terminal can take a clearer image.

执行单元25,采用所述终端的对焦点,完成拍摄动作。The execution unit 25 uses the focusing point of the terminal to complete the shooting action.

具体实现中,所述终端确定了对焦点,在拍摄时可在终端处于已经对焦成功的状态时,获取拍摄对象的图像,并通过显示屏显示或者存储于终端存储单元中。In a specific implementation, the terminal has determined the focus point, and when the terminal is in a state where the focus has been successfully focused, the terminal can acquire the image of the object to be photographed, and display it on the display screen or store it in the storage unit of the terminal.

采用本发明实施例,可通过所述终端的第一拍摄单元和第二拍摄单元共同完成对焦操作,并根据获取的所述对焦参数值的变化趋势判断是否对焦成功,缩减了对焦的时间,实现拍摄过程中的快速对焦。By adopting the embodiment of the present invention, the focusing operation can be completed jointly by the first shooting unit and the second shooting unit of the terminal, and whether the focusing is successful can be judged according to the obtained variation trend of the focusing parameter value, thereby shortening the focusing time and realizing Fast focusing during shooting.

本发明所有实施例中的模块或子模块,可以通过通用集成电路,例如CPU(CentralProcessing Unit,中央处理器),或通过ASIC(Application Specific IntegratedCircuit,专用集成电路)来实现。The modules or sub-modules in all the embodiments of the present invention can be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit, central processing unit), or an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit).

本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the methods of the embodiments of the present invention can be adjusted, combined and deleted according to actual needs.

本发明实施例装置中的单元可以根据实际需要进行合并、划分和删减。The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (8)

1.一种图像拍摄的方法,应用于终端中,所述终端至少包括第一拍摄单元和第二拍摄单元,所述方法包括:1. A method for photographing an image, applied in a terminal, the terminal at least including a first photographing unit and a second photographing unit, the method comprising: 当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值;When receiving a shooting instruction, control the first shooting unit to perform a focusing operation along a preset direction, and acquire a first focusing parameter value; 控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值;controlling the second shooting unit to perform a focusing operation in a direction opposite to the preset direction, and acquiring a second focusing parameter value; 当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值的变化趋势和所述第二对焦参数值的变化趋势均为递增趋势,判断所述第一拍摄单元到拍摄对象的距离与所述第二拍摄单元到拍摄对象的距离是否相等;若相等,确定对焦成功,为所述终端确定对焦点;When the first shooting unit and the second shooting are performing focusing operations, if the change trend of the first focus parameter value and the change trend of the second focus parameter value are both increasing trends, determine that the first shooting unit Whether the distance to the shooting object is equal to the distance from the second shooting unit to the shooting object; if they are equal, determine that the focus is successful, and determine the focus point for the terminal; 采用所述终端的对焦点,完成拍摄动作。The shooting action is completed by using the focusing point of the terminal. 2.如权利要求1所述的方法,其特征在于,所述预设方向为:从拍摄对象至所述终端的水平方向;2. The method according to claim 1, wherein the preset direction is: a horizontal direction from the subject to the terminal; 所述预设方向的反方向为:从所述终端至所述拍摄对象的水平方向。The opposite direction of the preset direction is: a horizontal direction from the terminal to the object to be photographed. 3.如权利要求2所述的方法,其特征在于,所述第一对焦参数值包括:所述第一拍摄单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两个对焦参数值;3. The method according to claim 2, wherein the first focus parameter value comprises: at least two focus parameters obtained by the first photographing unit from the start of the focus operation to the end of the focus operation value; 所述第二对焦参数值包括:所述第二拍摄单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两个对焦参数值。The second focus parameter value includes: at least two focus parameter values obtained by the second photographing unit from the start of the focus operation to the end of the focus operation. 4.如权利要求1所述的方法,其特征在于,所述方法还包括:4. The method of claim 1, further comprising: 当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值与所述第二对焦参数值中任一种的变化趋势为递减趋势,将所述变化趋势为递减趋势的拍摄单元的对焦操作进行反向调整,并执行返程小步搜索动作;When the first shooting unit and the second shooting are performing focusing operations, if the change trend of any one of the first focus parameter value and the second focus parameter value is a decreasing trend, set the change trend as a decreasing trend. The focus operation of the shooting unit of the trend is adjusted in reverse, and the return search action is performed in small steps; 当所述变化趋势为递减趋势的拍摄单元通过返程小步搜索动作完成对焦后,将第一拍摄单元和第二拍摄单元中变化趋势为非递减趋势的拍摄单元参考所述完成对焦的拍摄单元执行对焦动作,并确定对焦成功。After the shooting unit whose change trend is decreasing trend completes focusing through the small step search action on the return journey, the shooting unit whose changing trend is non-decreasing trend in the first shooting unit and the second shooting unit refers to the shooting unit that has completed focusing. Focus action, and confirm that the focus is successful. 5.一种图像拍摄装置,应用于终端中,所述终端至少包括第一拍摄单元和第二拍摄单元,所述装置包括:5. An image capturing device, applied to a terminal, the terminal at least comprising a first capturing unit and a second capturing unit, the device comprising: 第一获取单元,用于当接收到拍摄指令时,控制所述第一拍摄单元沿预设方向执行对焦操作,并获取第一对焦参数值;The first acquiring unit is configured to, when receiving the shooting instruction, control the first shooting unit to perform a focusing operation along a preset direction, and acquire a first focusing parameter value; 第二获取单元,用于控制所述第二拍摄单元沿预设方向的反方向执行对焦操作,并获取第二对焦参数值;The second acquiring unit is configured to control the second photographing unit to perform a focusing operation in a direction opposite to the preset direction, and acquire a second focusing parameter value; 判断单元,用于当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值的变化趋势和所述第二对焦参数值的变化趋势均为递增趋势,判断所述第一拍摄单元到拍摄对象的距离与所述第二拍摄单元到拍摄对象的距离是否相等;若相等,确定对焦成功;A judging unit, configured to determine whether the first focus parameter value's change trend and the second focus parameter value's change trend are increasing trends when the first camera unit and the second camera perform a focusing operation. Whether the distance from the first shooting unit to the shooting object is equal to the distance from the second shooting unit to the shooting object; if they are equal, it is determined that the focus is successful; 对焦确定单元,用于若对焦成功,则为所述终端确定对焦点;a focus determination unit, configured to determine a focus point for the terminal if the focus is successful; 执行单元,用于采用所述终端的对焦点,完成拍摄动作。The execution unit is configured to use the focusing point of the terminal to complete the shooting action. 6.如权利要求5所述的装置,其特征在于,所述预设方向为:从拍摄对象至所述终端的水平方向;6. The device according to claim 5, wherein the preset direction is: a horizontal direction from the subject to the terminal; 所述预设方向的反方向为:从所述终端至所述拍摄对象的水平方向。The opposite direction of the preset direction is: a horizontal direction from the terminal to the shooting object. 7.如权利要求6所述的装置,其特征在于,所述第一对焦参数值包括:所述第一拍摄单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两组对焦参数值;7. The device according to claim 6, wherein the first focus parameter value comprises: at least two groups of focus parameters obtained by the first photographing unit from the start of the focus operation to the end of the focus operation value; 所述第二对焦参数值包括:所述第二拍摄单元从开始执行对焦操作到结束对焦操作的过程中所获取的至少两组对焦参数值。The second focus parameter value includes: at least two groups of focus parameter values acquired by the second photographing unit from the start of the focus operation to the end of the focus operation. 8.如权利要求5所述的装置,其特征在于,所述判断单元还用于:8. The device according to claim 5, wherein the judging unit is further configured to: 当所述第一拍摄单元和第二拍摄执行对焦操作时,若所述第一对焦参数值与述第二对焦参数值中任一种的变化趋势为递减趋势,将所述变化趋势为递减趋势的拍摄单元的对焦操作进行反向调整,并执行返程小步搜索动作;When the first shooting unit and the second shooting are performing focusing operations, if the change trend of any one of the first focus parameter value and the second focus parameter value is a decreasing trend, the change trend is a decreasing trend The focus operation of the shooting unit is adjusted in reverse, and the return search action is performed in small steps; 当所述变化趋势为递减趋势的拍摄单元通过返程小步搜索动作完成对焦后,将第一拍摄单元和第二拍摄单元中变化趋势为非递减趋势的拍摄单元参考所述完成对焦的拍摄单元执行对焦动作,并确定对焦成功。After the shooting unit whose change trend is decreasing trend completes focusing through the small step search action on the return journey, the shooting unit whose changing trend is non-decreasing trend in the first shooting unit and the second shooting unit refers to the shooting unit that has completed focusing. Focus action, and confirm that the focus is successful.
CN201410844052.7A 2014-12-30 2014-12-30 A kind of method and device of image taking Expired - Fee Related CN104601883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410844052.7A CN104601883B (en) 2014-12-30 2014-12-30 A kind of method and device of image taking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410844052.7A CN104601883B (en) 2014-12-30 2014-12-30 A kind of method and device of image taking

Publications (2)

Publication Number Publication Date
CN104601883A CN104601883A (en) 2015-05-06
CN104601883B true CN104601883B (en) 2018-01-23

Family

ID=53127350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410844052.7A Expired - Fee Related CN104601883B (en) 2014-12-30 2014-12-30 A kind of method and device of image taking

Country Status (1)

Country Link
CN (1) CN104601883B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072348B (en) * 2015-08-27 2018-05-15 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal of rapid focus face
CN106534696A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Focusing apparatus and method
CN107483822A (en) * 2017-08-28 2017-12-15 上海创功通讯技术有限公司 Focusing method, device and the electronic equipment of dual camera
CN112492210B (en) * 2020-12-01 2022-04-19 维沃移动通信有限公司 Photographing method, device, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254874A (en) * 1998-11-25 2000-05-31 鸿友科技股份有限公司 Optical scanning module components
CN101632295A (en) * 2007-03-09 2010-01-20 伊斯曼柯达公司 Multiple lens camera operable in various modes
CN103246130A (en) * 2013-04-16 2013-08-14 广东欧珀移动通信有限公司 Focusing method and device
CN104902160A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4198449B2 (en) * 2002-02-22 2008-12-17 富士フイルム株式会社 Digital camera
KR101616422B1 (en) * 2009-12-23 2016-04-28 삼성전자주식회사 Method and apparatus for processing the digital image by using fast AF

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254874A (en) * 1998-11-25 2000-05-31 鸿友科技股份有限公司 Optical scanning module components
CN101632295A (en) * 2007-03-09 2010-01-20 伊斯曼柯达公司 Multiple lens camera operable in various modes
CN103246130A (en) * 2013-04-16 2013-08-14 广东欧珀移动通信有限公司 Focusing method and device
CN104902160A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN104601883A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
JP6267363B2 (en) Method and apparatus for taking images
EP3038345B1 (en) Auto-focusing method and auto-focusing device
CN105578026B (en) A kind of image pickup method and user terminal
US10021307B2 (en) Processing apparatus for camera shake correction
CN105376487B (en) A focusing method and device
US8718459B2 (en) Method and digital camera having improved autofocus
CN104618643B (en) A shooting method and device
CN108028893B (en) Method and apparatus for performing image autofocus operation
CN105554367A (en) Movement photographing method and mobile terminal
CN106412437B (en) Terminal focusing method and device and terminal
JP2017069618A (en) Electronic apparatus and imaging method
CN104601883B (en) A kind of method and device of image taking
US9451149B2 (en) Processing apparatus, processing method, and program
CN105007410B (en) A kind of big visual angle camera control method and user terminal
CN105872378A (en) Control method, control device and electronic device
CN104994288A (en) Shooting method and user terminal
CN105100557A (en) Portable electronic device and image extraction method
CN104994282B (en) A kind of big visual angle camera control method and user terminal
CN104601884B (en) A kind of camera control method and terminal
CN104460184B (en) Method and facility for focusing in shooting device
WO2019134513A1 (en) Shot focusing method, device, storage medium, and electronic device
US9723189B2 (en) Portable electronic-devices and methods for image extraction
US9581882B2 (en) Image capturing device and auto-focus method thereof
CN107124538B (en) A camera method and mobile terminal
CN105700111B (en) A kind of Atomatic focusing method of mobile terminal, device and mobile 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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123