CN109120839B - A focusing method and terminal for dual cameras - Google Patents

A focusing method and terminal for dual cameras Download PDF

Info

Publication number
CN109120839B
CN109120839B CN201710492055.2A CN201710492055A CN109120839B CN 109120839 B CN109120839 B CN 109120839B CN 201710492055 A CN201710492055 A CN 201710492055A CN 109120839 B CN109120839 B CN 109120839B
Authority
CN
China
Prior art keywords
fov
camera
focusing
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710492055.2A
Other languages
Chinese (zh)
Other versions
CN109120839A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710492055.2A priority Critical patent/CN109120839B/en
Publication of CN109120839A publication Critical patent/CN109120839A/en
Application granted granted Critical
Publication of CN109120839B publication Critical patent/CN109120839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

本申请实施例公开了一种双摄像头的对焦方法及终端,用于提高摄像头的对焦效率。本申请实施例方法包括:获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;根据所述第一对焦信息确定所述第一摄像头的第一目标FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV;根据所述第一摄像头和所述第二摄像头的FOV对应关系,以及所述第一目标FOV确定所述第二摄像头的第二可选FOV;根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,控制所述第一摄像头移动到所述第一目标FOV所对应的位置,和控制所述第二摄像头移动到所述第二目标FOV所对应的位置。

Figure 201710492055

The embodiments of the present application disclose a dual camera focusing method and terminal, which are used to improve the focusing efficiency of the cameras. The method according to the embodiment of the present application includes: acquiring first focus information of a first camera and second focus information of a second camera; determining a first target FOV of the first camera according to the first focus information, and determining the first target FOV of the first camera according to the first focus information. The second focus information determines the first optional FOV of the second camera; according to the FOV correspondence between the first camera and the second camera, and the first target FOV, the second optional FOV of the second camera is determined FOV is selected; the first optional FOV and the second optional FOV are determined according to the first confidence in the first focus information and the second confidence in the second focus information from the first optional FOV and the second optional FOV The second target FOV of the two cameras controls the first camera to move to a position corresponding to the first target FOV, and controls the second camera to move to a position corresponding to the second target FOV.

Figure 201710492055

Description

一种双摄像头的对焦方法及终端A focusing method and terminal for dual cameras

技术领域technical field

本申请涉及图像处理领域,尤其涉及一种双摄像头的对焦方法及终端。The present application relates to the field of image processing, and in particular, to a focusing method and terminal for dual cameras.

背景技术Background technique

随着智能终端如手机或者平板电脑等的飞速发展,移动终端给用户的生活、工作、娱乐等方面提供了越来越多的帮助。其中,拍摄功能已成为移动终端不可或缺的一部分,而且随着人们生活品质的提高,人们对拍摄效果的要求越来越高,因此,拍摄过程中的对焦效果也越来越重要。With the rapid development of smart terminals such as mobile phones or tablet computers, mobile terminals provide more and more help to users in terms of life, work, and entertainment. Among them, the shooting function has become an indispensable part of the mobile terminal, and with the improvement of people's quality of life, people have higher and higher requirements for the shooting effect, therefore, the focusing effect during the shooting process is also more and more important.

现有技术中,一台具有双摄像头(摄像头A和摄像头B)的手机,摄像头A和摄像头B的对焦过程是独立的,并没有明显交互过程,由于摄像头A和摄像头B没有交互,很容易出现摄像头A很快稳定,而摄像头B出现了大幅度的拉风箱现象(即表现为摄像头来回搜索,用户看到界面明显有清晰,模糊的变化),这对摄像头B成像显示是非常糟糕的,如果用了未对焦成功的数据还会导致照片的效果问题;除了上述问题,现有技术中还存在摄像头A先完成对焦,而摄像头B慢慢搜索对焦,很长时间之后才完成对焦等问题。In the prior art, in a mobile phone with dual cameras (camera A and camera B), the focusing processes of camera A and camera B are independent, and there is no obvious interaction process. Since camera A and camera B do not interact, it is easy to occur. Camera A stabilizes very quickly, while camera B has a large bellows phenomenon (that is, the camera searches back and forth, and the user sees clear and blurred changes in the interface), which is very bad for camera B's imaging display. The use of unfocused data will also cause problems with the effect of photos; in addition to the above problems, there are problems in the prior art, such as camera A completes focusing first, while camera B slowly searches for focusing, and then completes focusing after a long time.

以上出现的两种对焦,用户会看到明显的对焦清晰模糊来回切换,或者看到慢慢对焦的过程,这些对焦过程都会使得摄像头的对焦效率低下。For the above two types of focusing, the user will see obvious clear and blurred focus switching back and forth, or see the process of focusing slowly. These focusing processes will make the focusing efficiency of the camera low.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种双摄像头的对焦方法及终端,用于提高摄像头的对焦效率。Embodiments of the present application provide a dual camera focusing method and terminal, which are used to improve the focusing efficiency of the cameras.

本申请实施例的第一方面提供一种双摄像头的对焦方法,其中,双摄像头包括第一摄像头和第二摄像头,具体包括:A first aspect of the embodiments of the present application provides a method for focusing with dual cameras, wherein the dual cameras include a first camera and a second camera, and specifically includes:

当终端中的摄像头需要进行对焦的时候,终端会获取第一获取第一摄像头的第一对焦信息,和第二摄像头的第二对焦信息;然后根据第一对焦信息确定第一摄像头的第一目标 FOV,并根据第二对焦信息确定第二摄像头的第一可选FOV,之后根据第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV确定第二摄像头的第二可选FOV;再根据第一对焦信息中的第一置信度和第二对焦信息中的第二置信度从第一可选FOV和第二可选 FOV中确定第二摄像头的第二目标FOV,其中,第一置信度用于表征第一对焦信息的可靠程度,第二置信度用于表征第二对焦信息的可靠程度;最后控制第一摄像头移动到第一目标FOV所对应的位置,和控制第二摄像头移动到第二目标FOV所对应的位置。本申请实施例中的终端根据第一摄像头和第二摄像头的对应关系实现双摄像头的联动调整,可以提高摄像头的对焦效率,从而提升用户体验。When the camera in the terminal needs to focus, the terminal will obtain the first focus information of the first camera and the second focus information of the second camera; and then determine the first target of the first camera according to the first focus information FOV, and determine the first optional FOV of the second camera according to the second focus information, and then determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV; The second target FOV of the second camera is determined from the first selectable FOV and the second selectable FOV according to the first confidence in the first focus information and the second confidence in the second focus information, wherein the first confidence The degree of reliability is used to represent the reliability of the first focus information, and the second confidence degree is used to represent the reliability of the second focus information; finally, the first camera is controlled to move to the position corresponding to the first target FOV, and the second camera is controlled to move to The position corresponding to the second target FOV. The terminal in the embodiment of the present application realizes the linkage adjustment of the dual cameras according to the corresponding relationship between the first camera and the second camera, which can improve the focusing efficiency of the cameras, thereby improving the user experience.

在一种可能的设计中,在本申请实施例第一方面的第一种实现方式中,根据第一对焦信息中的第一置信度和第二对焦信息中的第二置信度从第一可选FOV和第二可选FOV中确定第二摄像头的第二目标FOV包括:当终端判断出第一可选FOV与所述第二可选FOV 之间的差值大于预设值的时候,则根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV。本申请实施例增加了根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标 FOV的前提条件,丰富了实施例的具体实现方式。In a possible design, in the first implementation manner of the first aspect of the embodiments of the present application, the first confidence level in the first focusing information and the second confidence level in the second focusing information Determining the second target FOV of the second camera in the optional FOV and the second optional FOV includes: when the terminal determines that the difference between the first optional FOV and the second optional FOV is greater than a preset value, then The second target FOV is determined from the first selectable FOV and the second selectable FOV according to the first confidence level and the second confidence level. This embodiment of the present application adds a precondition for determining the second target FOV from the first optional FOV and the second optional FOV according to the first confidence level and the second confidence level, which enriches the The specific implementation of the embodiment.

在一种可能的设计中,在本申请实施例第一方面的第二种实现方式中,所述方法还包括:当终端判断出第一可选FOV与所述第二可选FOV之间的差值不大于预设值的时候,此时可以将所述第一可选FOV确定为所述第二摄像头的第二目标FOV。本申请实施例追加了当第一可选FOV和所述第二可选FOV之间的所述差不大于所述预设值的结果,增加了本申请实施例的完整性。In a possible design, in a second implementation manner of the first aspect of the embodiments of the present application, the method further includes: when the terminal determines that there is a difference between the first optional FOV and the second optional FOV When the difference is not greater than the preset value, the first selectable FOV may be determined as the second target FOV of the second camera at this time. In this embodiment of the present application, a result that the difference between the first optional FOV and the second optional FOV is not greater than the preset value is added, which increases the integrity of the embodiment of the present application.

在一种可能的设计中,在本申请实施例第一方面的第三种实现方式中,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV 和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:当终端判断出第一可选FOV所指示的移动方向与所述第二可选FOV所指示的移动方向相反的时候,此时则根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV。本申请实施例增加了根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV的另一个前提条件,丰富了实施例的具体实现方式。In a possible design, in a third implementation manner of the first aspect of the embodiments of the present application, the first confidence level in the first focusing information and the second The confidence in determining the second target FOV of the second camera from the first optional FOV and the second optional FOV includes: when the terminal determines that the moving direction indicated by the first optional FOV is different from the first optional FOV. When the moving directions indicated by the two optional FOVs are opposite, at this time, according to the first confidence level and the second confidence level, determine the Second target FOV. This embodiment of the present application adds another precondition for determining the second target FOV from the first optional FOV and the second optional FOV according to the first confidence level and the second confidence level, The specific implementation of the embodiment is enriched.

在一种可能的设计中,在本申请实施例第一方面的第四种实现方式中,所述根据所述第一对焦信息确定所述第一摄像头的第一目标FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV包括:首先终端从第一对焦信息中获取所述第一摄像头的第一当前FOV以及第一FOV差值,并且从所述第二对焦信息中获取所述第二当前FOV以及第二FOV差值;然后再根据所述第一当前FOV以及所述第一FOV差值确定所述第一摄像头的第一目标FOV,根据所述第二当前FOV以及所述第二FOV差值确定所述第二摄像头的第一可选FOV。本申请实施例细化了如何根据所述第一对焦信息确定所述第一摄像头的第一目标FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV,丰富了实施例的具体实现手段。In a possible design, in a fourth implementation manner of the first aspect of the embodiments of the present application, the first target FOV of the first camera is determined according to the first focus information, and the first target FOV of the first camera is determined according to the first focus information, and the second Determining the first optional FOV of the second camera from the focusing information includes: first, the terminal obtains the first current FOV and the first FOV difference of the first camera from the first focusing information, and obtains the first FOV of the first camera from the first focusing information, and obtains the first FOV difference from the second focusing information. Obtain the second current FOV and the second FOV difference in The FOV and the second FOV difference determine a first selectable FOV for the second camera. The embodiment of the present application details how to determine the first target FOV of the first camera according to the first focus information, and determine the first optional FOV of the second camera according to the second focus information, which enriches the implementation The specific implementation means of the example.

在一种可能的设计中,在本申请实施例第一方面的第五种实现方式中,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV 和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:如果第一对焦信息的对焦方式和所述第二对焦信息的对焦方式是相同的,那么则选择所述第一置信度与所述第二置信度中的较大者所对应的可选FOV作为所述第二目标FOV;本申请实施例说明了如何根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,丰富了本申请实施例的具体实现方式。In a possible design, in a fifth implementation manner of the first aspect of the embodiments of the present application, the first confidence level in the first focusing information and the second The confidence in determining the second target FOV of the second camera from the first selectable FOV and the second selectable FOV includes: if the focusing mode of the first focusing information and the focusing mode of the second focusing information are the same, then the optional FOV corresponding to the larger of the first confidence level and the second confidence level is selected as the second target FOV; A first confidence level in the focus information and a second confidence level in the second focus information determine a second target FOV of the second camera from the first selectable FOV and the second selectable FOV , which enriches the specific implementation of the embodiments of the present application.

在一种可能的设计中,在本申请实施例第一方面的第六种实现方式中,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV 和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:如果所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式不同,那么就根据对焦方式的优先级排序选择所述第一置信度与所述第二置信度中的具有更高优先级的置信度所对应的可选FOV作为所述第二目标FOV。本申请实施例说明了如何根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,丰富了本申请实施例的具体实现方式。In a possible design, in a sixth implementation manner of the first aspect of the embodiments of the present application, the first confidence level in the first focusing information and the second The confidence in determining the second target FOV of the second camera from the first optional FOV and the second optional FOV includes: if the focusing mode of the first focusing information and the difference between the second focusing information If the focusing methods are different, then the optional FOV corresponding to the first confidence level and the confidence level with a higher priority among the second confidence levels is selected as the second target FOV according to the priority ordering of the focusing methods . This embodiment of the present application describes how to extract information from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information Determining the second target FOV of the second camera enriches the specific implementation of the embodiments of the present application.

在一种可能的设计中,在本申请实施例第一方面的第七种实现方式中,所述FOV对应关系为所述第一摄像头和所述第二摄像头之间的FOV对应表。本申请实施例具体说明了FOV对应关系的存在方式,增加了实施例的具体实现方式。In a possible design, in a seventh implementation manner of the first aspect of the embodiments of the present application, the FOV correspondence is a FOV correspondence table between the first camera and the second camera. The embodiment of the present application specifically describes the existence mode of the FOV correspondence, and adds the specific implementation mode of the embodiment.

在一种可能的设计中,在本申请实施例第一方面的第八种实现方式中,所述第一对焦信息和所述第二对焦信息中的至少一个通过如下任一项得到:相位差对焦方式、激光对焦方式或对比度对焦方式。本申请实施例说明了第一对焦信息和第二对焦信息的对焦方式,增加了本申请实施例的可操作性。In a possible design, in an eighth implementation manner of the first aspect of the embodiments of the present application, at least one of the first focus information and the second focus information is obtained by any one of the following: a phase difference Focusing method, laser focusing method or contrast focusing method. The embodiments of the present application describe the focusing methods of the first focusing information and the second focusing information, which increases the operability of the embodiments of the present application.

本申请实施例的第二方面提供一种用于实现双摄像头对焦的终端,所述双摄像头包括第一摄像头和第二摄像头,包括:A second aspect of the embodiments of the present application provides a terminal for implementing dual-camera focusing, where the dual-camera includes a first camera and a second camera, including:

获取单元,用于获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;an acquisition unit, configured to acquire the first focus information of the first camera and the second focus information of the second camera;

第一确定单元,用于根据所述第一对焦信息确定所述第一摄像头的第一目标视场角 FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV;a first determining unit, configured to determine the first target field of view FOV of the first camera according to the first focus information, and determine the first optional FOV of the second camera according to the second focus information;

第二确定单元,用于根据所述第一摄像头和所述第二摄像头的FOV对应关系,以及所述第一目标FOV确定所述第二摄像头的第二可选FOV;a second determining unit, configured to determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV;

第三确定单元,用于根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标 FOV,所述第一置信度用于表征所述第一对焦信息的可靠程度,所述第二置信度用于表征所述第二对焦信息的可靠程度;a third determining unit, configured to extract data from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information determining the second target FOV of the second camera, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information;

控制单元,用于控制所述第一摄像头移动到所述第一目标FOV所对应的位置,和控制所述第二摄像头移动到所述第二目标FOV所对应的位置。A control unit, configured to control the first camera to move to a position corresponding to the first target FOV, and to control the second camera to move to a position corresponding to the second target FOV.

本申请实施例中的终端可以根据第一摄像头和第二摄像头的对应关系实现双摄像头的联动调整,可以提高摄像头的对焦效率,从而提升用户体验。The terminal in the embodiment of the present application can realize the linkage adjustment of the dual cameras according to the corresponding relationship between the first camera and the second camera, which can improve the focusing efficiency of the cameras, thereby improving the user experience.

在一种可能的设计中,在本申请实施例第二方面的第一种实现方式中,第三确定单元包括:In a possible design, in a first implementation manner of the second aspect of the embodiment of the present application, the third determining unit includes:

第一确定子单元,用于当所述第一可选FOV与所述第二可选FOV之间的差大于预设值时,根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV 中确定所述第二目标FOV。The first determination subunit is configured to, when the difference between the first selectable FOV and the second selectable FOV is greater than a preset value, determine the value from the selected value according to the first confidence level and the second confidence level. The second target FOV is determined from the first selectable FOV and the second selectable FOV.

本申请实施例增加了根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV的前提条件,丰富了实施例的具体实现方式。This embodiment of the present application adds a precondition for determining the second target FOV from the first optional FOV and the second optional FOV according to the first confidence level and the second confidence level, which enriches the The specific implementation of the embodiment.

在一种可能的设计中,在本申请实施例第二方面的第二种实现方式中,终端还包括:In a possible design, in the second implementation manner of the second aspect of the embodiment of the present application, the terminal further includes:

第四确定单元,用于当所述第一可选FOV和所述第二可选FOV之间的所述差不大于所述预设值时,将所述第一可选FOV确定为所述第二摄像头的第二目标FOV。a fourth determining unit, configured to determine the first selectable FOV as the first selectable FOV when the difference between the first selectable FOV and the second selectable FOV is not greater than the preset value The second target FOV of the second camera.

本申请实施例追加了当第一可选FOV和所述第二可选FOV之间的所述差不大于所述预设值的结果,增加了本申请实施例的完整性。In this embodiment of the present application, a result that the difference between the first optional FOV and the second optional FOV is not greater than the preset value is added, which increases the integrity of the embodiment of the present application.

在一种可能的设计中,在本申请实施例第二方面的第三种实现方式中,第三确定单元包括:In a possible design, in a third implementation manner of the second aspect of the embodiment of the present application, the third determining unit includes:

第二确定子单元,用于当所述第一可选FOV所指示的移动方向与所述第二可选FOV所指示的移动方向相反时,根据所述第一置信度和所述第二置信度从所述第一可选FOV 和所述第二可选FOV中确定所述第二目标FOV。A second determination subunit, configured to, when the moving direction indicated by the first selectable FOV is opposite to the moving direction indicated by the second selectable FOV, according to the first confidence level and the second confidence The second target FOV is determined from the first selectable FOV and the second selectable FOV.

本申请实施例增加了根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV的另一个前提条件,丰富了实施例的具体实现方式。This embodiment of the present application adds another precondition for determining the second target FOV from the first optional FOV and the second optional FOV according to the first confidence level and the second confidence level, The specific implementation of the embodiment is enriched.

在一种可能的设计中,在本申请实施例第二方面的第四种实现方式中,所述第一确定单元包括:In a possible design, in a fourth implementation manner of the second aspect of the embodiments of the present application, the first determining unit includes:

第一获取子单元,用于从所述第一对焦信息中获取所述第一摄像头的第一当前FOV 以及第一FOV差值,从所述第二对焦信息中获取所述第二当前FOV以及第二FOV差值;a first obtaining subunit, configured to obtain the first current FOV and the first FOV difference of the first camera from the first focusing information, and obtain the second current FOV and the first FOV from the second focusing information The second FOV difference;

第三确定子单元,用于根据所述第一当前FOV以及所述第一FOV差值确定所述第一摄像头的第一目标FOV,根据所述第二当前FOV以及所述第二FOV差值确定所述第二摄像头的第一可选FOV。A third determination subunit, configured to determine the first target FOV of the first camera according to the first current FOV and the first FOV difference, and determine the first target FOV of the first camera according to the second current FOV and the second FOV difference A first selectable FOV for the second camera is determined.

本申请实施例细化了如何根据所述第一对焦信息确定所述第一摄像头的第一目标 FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV,丰富了实施例的具体实现手段。The embodiment of the present application details how to determine the first target FOV of the first camera according to the first focus information, and determine the first optional FOV of the second camera according to the second focus information, which enriches the implementation The specific implementation means of the example.

在一种可能的设计中,在本申请实施例第二方面的第五种实现方式中,所述第三确定单元包括:In a possible design, in a fifth implementation manner of the second aspect of the embodiment of the present application, the third determining unit includes:

第一选择子单元,用于当所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式相同时,选择所述第一置信度与所述第二置信度中的较大者所对应的可选FOV作为所述第二目标FOV;a first selection subunit, configured to select the larger of the first confidence level and the second confidence level when the focusing method of the first focusing information and the focusing method of the second focusing information are the same The corresponding optional FOV is used as the second target FOV;

本申请实施例说明了如何根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,丰富了本申请实施例的具体实现方式。This embodiment of the present application describes how to extract information from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information Determining the second target FOV of the second camera enriches the specific implementation of the embodiments of the present application.

在一种可能的设计中,在本申请实施例第二方面的第六种实现方式中,所述第三确定单元包括:In a possible design, in a sixth implementation manner of the second aspect of the embodiment of the present application, the third determining unit includes:

第二选择子单元,用于当所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式不同时,根据对焦方式的优先级排序选择所述第一置信度与所述第二置信度中的具有更高优先级的置信度所对应的可选FOV作为所述第二目标FOV。A second selection subunit, configured to select the first confidence level and the second confidence level according to the priority ordering of the focusing methods when the focusing method of the first focusing information and the focusing method of the second focusing information are different The optional FOV corresponding to the confidence level with a higher priority among the confidence levels is used as the second target FOV.

本申请实施例说明了如何根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,丰富了本申请实施例的具体实现方式。This embodiment of the present application describes how to extract information from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information Determining the second target FOV of the second camera enriches the specific implementation of the embodiments of the present application.

在一种可能的设计中,在本申请实施例第二方面的第七种实现方式中,所述FOV对应关系为所述第一摄像头和所述第二摄像头之间的FOV对应表。In a possible design, in a seventh implementation manner of the second aspect of the embodiments of the present application, the FOV correspondence is a FOV correspondence table between the first camera and the second camera.

本申请实施例具体说明了FOV对应关系的存在方式,增加了实施例的具体实现方式。The embodiment of the present application specifically describes the existence mode of the FOV correspondence, and adds the specific implementation mode of the embodiment.

在一种可能的设计中,在本申请实施例第二方面的第八种实现方式中,所述第一对焦信息和所述第二对焦信息中的至少一个通过如下任一项得到:相位差对焦方式、激光对焦方式或对比度对焦方式。In a possible design, in an eighth implementation manner of the second aspect of the embodiments of the present application, at least one of the first focus information and the second focus information is obtained by any one of the following: a phase difference Focusing method, laser focusing method or contrast focusing method.

本申请实施例说明了第一对焦信息和第二对焦信息的对焦方式,增加了本申请实施例的可操作性。The embodiments of the present application describe the focusing methods of the first focusing information and the second focusing information, which increases the operability of the embodiments of the present application.

本申请实施例的第三方面提供一种用于实现双摄像头对焦的终端,所述双摄像头包括第一摄像头和第二摄像头,包括:A third aspect of the embodiments of the present application provides a terminal for implementing dual-camera focusing, where the dual-camera includes a first camera and a second camera, including:

处理器和存储器;processor and memory;

所述存储器存储操作指令;the memory stores operation instructions;

所述处理器,用于通过调用所述存储器存储的所述操作指令,执行如下步骤:The processor is configured to perform the following steps by invoking the operation instruction stored in the memory:

获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;Obtain the first focus information of the first camera and the second focus information of the second camera;

根据所述第一对焦信息确定所述第一摄像头的第一目标视场角FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV;Determine a first target field of view FOV of the first camera according to the first focus information, and determine a first selectable FOV of the second camera according to the second focus information;

根据所述第一摄像头和所述第二摄像头的FOV对应关系,以及所述第一目标FOV确定所述第二摄像头的第二可选FOV;Determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV;

根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,所述第一置信度用于表征所述第一对焦信息的可靠程度,所述第二置信度用于表征所述第二对焦信息的可靠程度;According to the first confidence level in the first focus information and the second confidence level in the second focus information, it is determined from the first optional FOV and the second optional FOV that the a second target FOV, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information;

控制所述第一摄像头移动到所述第一目标FOV所对应的位置,和控制所述第二摄像头移动到所述第二目标FOV所对应的位置。The first camera is controlled to move to a position corresponding to the first target FOV, and the second camera is controlled to move to a position corresponding to the second target FOV.

本申请实施例中的终端根据第一摄像头和第二摄像头的对应关系实现双摄像头的联动调整,可以提高摄像头的对焦效率,从而提升用户体验。The terminal in the embodiment of the present application realizes the linkage adjustment of the dual cameras according to the corresponding relationship between the first camera and the second camera, which can improve the focusing efficiency of the cameras, thereby improving the user experience.

本申请的又一方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Yet another aspect of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

本申请的又一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods of the above aspects.

附图说明Description of drawings

图1为本发明实施例中摄像头获取FOV的一个示意图;1 is a schematic diagram of a camera acquiring FOV in an embodiment of the present invention;

图2为本发明实施例中摄像头位置与FOV的关系图;Fig. 2 is the relational diagram of camera position and FOV in the embodiment of the present invention;

图3为本发明实施例中终端的框架图;3 is a frame diagram of a terminal in an embodiment of the present invention;

图4为本发明实施例中双摄像头的对焦方法的一个实施例示意图;4 is a schematic diagram of an embodiment of a focusing method for dual cameras in an embodiment of the present invention;

图5为本发明实施例中双摄像头的对焦方法的另一个实施例示意图;FIG. 5 is a schematic diagram of another embodiment of a focusing method for dual cameras in an embodiment of the present invention;

图6为本发明实施例中终端的一个实施例示意图;FIG. 6 is a schematic diagram of an embodiment of a terminal in an embodiment of the present invention;

图7为本发明实施例中终端的另一个实施例示意图。FIG. 7 is a schematic diagram of another embodiment of a terminal in an embodiment of the present invention.

具体实施方式Detailed ways

本申请实施例提供了一种双摄像头的对焦方法及终端,用于提高摄像头的对焦效率。Embodiments of the present application provide a dual camera focusing method and terminal, which are used to improve the focusing efficiency of the cameras.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

如图1所示,本发明实施例中的终端可以通过摄像头获取视场角(field of view,FOV)。 FOV的定义为:以光学仪器的摄像头为顶点,以被测目标的物像可通过镜头的最大范围的两条边缘构成的夹角。如图1所示的角aob即为视场角。视场角的大小决定了光学仪器的视野范围,视场角越大,视野就越大,光学倍率就越小,通俗地说,目标物体超过这个角就不会被收在镜头里。As shown in FIG. 1 , the terminal in this embodiment of the present invention may acquire a field of view (field of view, FOV) through a camera. The definition of FOV is: the angle formed by the two edges of the maximum range of the object image of the measured target that can pass through the lens with the camera of the optical instrument as the vertex. The angle aob shown in Figure 1 is the field of view. The size of the field of view determines the field of view of the optical instrument. The larger the field of view, the larger the field of view and the smaller the optical magnification. In layman's terms, the target object will not be contained in the lens beyond this angle.

如图2所示,摄像头的位置变化会带来FOV变化,当摄像头往左移动时,FOV变小,摄像头往右移动时FOV变大。当摄像头从微距往无穷远推动时,FOV是单调非线性递增的。As shown in Figure 2, the change of the position of the camera will bring about the change of FOV. When the camera moves to the left, the FOV becomes smaller, and when the camera moves to the right, the FOV becomes larger. As the camera is pushed from macro to infinity, the FOV increases monotonically and non-linearly.

本发明实施例中的终端的框架图如图3所示,终端包括:网络设备301、输入单元302、 I/O接口303、显示单元304、扩充卡305、处理器306、图像处理单元307、电源308、RF 电路309、存储器310、摄像头311等部件。本领域技术人员可以理解,图3中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The frame diagram of the terminal in the embodiment of the present invention is shown in FIG. 3 . The terminal includes: a network device 301, an input unit 302, an I/O interface 303, a display unit 304, an expansion card 305, a processor 306, an image processing unit 307, Power supply 308, RF circuit 309, memory 310, camera 311 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 3 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

下面结合图3对终端的各个构成部件的功能进行介绍:The functions of each component of the terminal are described below with reference to Figure 3:

网络设备301,用于帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。例如网络设备301可以是调制解调器或基带处理器。The network device 301 is used to help users send and receive emails, browse web pages, access streaming media, etc. It provides users with wireless broadband Internet access. For example, network device 301 may be a modem or a baseband processor.

输入单元302,用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。输入单元302可以使键盘、触摸屏或触摸板等。The input unit 302 is used for receiving input digital or character information, and generating key signal input related to user setting and function control of the mobile phone. The input unit 302 may be a keyboard, a touch screen, a touch pad, or the like.

I/O端口303,负责实现处理器306通过系统总线把I/O电路和外围设备联系在一起。该外围电路可以是各类外设,如耳机或充电器等。The I/O port 303 is responsible for realizing that the processor 306 connects the I/O circuit and peripheral devices through the system bus. The peripheral circuits can be various peripherals, such as earphones or chargers.

显示单元304,用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元304可以是各类屏幕,包括触摸屏。The display unit 304 is used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 304 may be various types of screens, including a touch screen.

音频电路305,可将接收到的音频数据转换后的电信号。The audio circuit 305 can convert the received audio data into an electrical signal.

处理器306,用于控制终端的操作以及执行各类终端需要的运算处理操作。The processor 306 is used to control the operation of the terminal and perform arithmetic processing operations required by various types of terminals.

图像处理单元307,用于处理通过摄像头311获取到的图像信息,或执行用户的图像处理指令。The image processing unit 307 is configured to process the image information obtained by the camera 311, or execute the user's image processing instruction.

电源308,用于向终端提供电能。例如,电源308是电源管理电路。The power supply 308 is used to provide power to the terminal. For example, power supply 308 is a power management circuit.

RF电路309,用于收发信息或通话过程中,无线信号的接收和发送,可以与网络设备 301配合工作。该无线信号可以是蜂窝无线信号或短距离无线信号等。The RF circuit 309 is used for receiving and transmitting wireless signals in the process of sending and receiving information or during a call, and can cooperate with the network device 301 to work. The wireless signal may be a cellular wireless signal or a short-range wireless signal, or the like.

存储器310,用于存储软件程序以及模块。The memory 310 is used to store software programs and modules.

摄像头311,用于获取图像等信息,例如执行拍摄。The camera 311 is used to obtain information such as images, for example, to perform shooting.

下面对本实施例中的双摄像头的对焦方法进行详细的描述,其中,双摄像头包括第一摄像头和第二摄像头;The focusing method of the dual cameras in this embodiment is described in detail below, wherein the dual cameras include a first camera and a second camera;

请参阅图4,本发明实施例中双摄像头的对焦方法的一个实施例包括:Referring to FIG. 4, an embodiment of the focusing method of the dual cameras in the embodiment of the present invention includes:

401、获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息。401. Acquire first focus information of a first camera and second focus information of a second camera.

本实施例中,当第一摄像头和/或第二摄像头捕捉到图像信息生成(如摄像头启动、双目合成、虚化功能开启等),或者终端内部的陀螺仪等设备感应到终端发生转动时,终端中的处理器会指示第一摄像头和第二摄像头开始对焦,并且通过第一摄像头获取第一对焦信息,通过第二摄像头获取第二对焦信息,其中,对焦信息用于摄像头对焦,对焦信息包括置信度、FOV差值和当前FOV值等,其中置信度用于表征所述对焦信息的可靠程度。In this embodiment, when the first camera and/or the second camera captures the generation of image information (such as camera activation, binocular synthesis, blur function activation, etc.), or when a device such as a gyroscope inside the terminal senses that the terminal rotates , the processor in the terminal will instruct the first camera and the second camera to start focusing, and obtain the first focusing information through the first camera, and obtain the second focusing information through the second camera, wherein the focusing information is used for the cameras to focus, and the focusing information Including confidence, FOV difference value, and current FOV value, etc., where confidence is used to represent the reliability of the focus information.

对焦信息可以由摄像头生成,该摄像头可包括光学器件、机械结构(如马达)、传感器和处理电路。具体地,所述处理电路可以根据预设方式生成对焦信息。对焦信息的生成算法或方式可以由市场上存在的摄像头提供商提供,不同的摄像头提供商通常具有不同的技术来实现对焦信息的生成。例如,本实施例的第一对焦信息和第二对焦信息中的至少一个通过如下任一项得到:相位差对焦方式、激光对焦方式或对比度对焦方式。Focus information may be generated by a camera, which may include optics, mechanical structures (eg, motors), sensors, and processing circuitry. Specifically, the processing circuit may generate focus information according to a preset manner. The algorithm or method for generating the focus information can be provided by camera providers existing in the market, and different camera providers usually have different technologies to realize the generation of the focus information. For example, at least one of the first focusing information and the second focusing information in this embodiment is obtained by any one of the following: a phase difference focusing method, a laser focusing method, or a contrast focusing method.

402、从第一对焦信息中获取第一摄像头的第一当前FOV以及第一FOV差值,从第二对焦信息中获取第二当前FOV以及第二FOV差值。402. Obtain the first current FOV and the first FOV difference of the first camera from the first focusing information, and obtain the second current FOV and the second FOV difference from the second focusing information.

本实施例中,当终端获取到第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息时,会从上述第一对焦信息中提取第一摄像头的第一当前FOV,并通过预置的对焦算法根据第一对焦信息获取第一摄像头的第一FOV差值,并从上述第二对焦信息中提取第二摄像头的第二当前FOV,及通过预置的对焦算法根据第二对焦信息获取第二摄像头的第二FOV差值第二FOV差值,其中,对焦算法可以根据对焦信息获取FOV差值;In this embodiment, when the terminal acquires the first focus information of the first camera and the second focus information of the second camera, it will extract the first current FOV of the first camera from the above-mentioned first focus information, and pre- The preset focusing algorithm obtains the first FOV difference value of the first camera according to the first focusing information, and extracts the second current FOV of the second camera from the above-mentioned second focusing information, and uses the preset focusing algorithm according to the second focusing information. obtaining the second FOV difference and the second FOV difference of the second camera, wherein the focusing algorithm can obtain the FOV difference according to the focusing information;

403、根据第一当前FOV以及第一FOV差值确定第一摄像头的第一目标FOV,根据第二当前FOV以及第二FOV差值确定第二摄像头的第一可选FOV。403. Determine the first target FOV of the first camera according to the first current FOV and the first FOV difference, and determine the first selectable FOV of the second camera according to the second current FOV and the second FOV difference.

本实施例中,当获取到第一当前FOV、第一FOV差值、第二当前FOV、及第二FOV 差值之后,终端会根据该第一当前FOV以及第一FOV差值确定第一摄像头的目标FOV,即第一目标FOV,并根据第二当前FOV以及第二FOV差值确定第二摄像头的第一可选 FOV,确定第一目标FOV的方法为:α=β+χ,其中,α为第一目标FOV,β为第一当前FOV,χ为第一FOV差值;确定第一可选FOV的方法为:δ=ε+φ,其中,δ为第一可选FOV,ε为第二当前FOV,φ为第二FOV差值。In this embodiment, after acquiring the first current FOV, the first FOV difference, the second current FOV, and the second FOV difference, the terminal determines the first camera according to the first current FOV and the first FOV difference The target FOV is the first target FOV, and the first optional FOV of the second camera is determined according to the second current FOV and the second FOV difference. The method for determining the first target FOV is: α=β+χ, where, α is the first target FOV, β is the first current FOV, and χ is the first FOV difference; the method for determining the first optional FOV is: δ=ε+φ, where δ is the first optional FOV, and ε is The second current FOV, φ is the second FOV difference.

404、根据第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV确定第二摄像头的第二可选FOV。404. Determine a second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera and the first target FOV.

本实施例中,第一摄像头和第二摄像头的FOV对应关系为第一摄像头和第二摄像头之间的FOV对应表,FOV对应表除了存有第一摄像头和第二摄像头的FOV对应关系,还存有FOV与摄像头位置的对应关系,FOV对应表如表1所示:In this embodiment, the FOV correspondence between the first camera and the second camera is the FOV correspondence table between the first camera and the second camera. In addition to storing the FOV correspondence between the first camera and the second camera, the FOV correspondence table also stores the FOV correspondence between the first camera and the second camera. There is a correspondence between FOV and camera position, and the FOV correspondence table is shown in Table 1:

表1:Table 1:

Figure BDA0001330708970000071
Figure BDA0001330708970000071

Figure BDA0001330708970000081
Figure BDA0001330708970000081

当第一摄像头的第一目标FOV为71的时候,通过查找FOV对应表可知,此时第二摄像头的FOV为68.5,即第二可选FOV为68.5。When the first target FOV of the first camera is 71, it can be known by searching the FOV corresponding table that the FOV of the second camera is 68.5 at this time, that is, the second optional FOV is 68.5.

405、当第一可选FOV与第二可选FOV之间的差大于预设值时,根据第一置信度和第二置信度从第一可选FOV和第二可选FOV中确定第二目标FOV。405. When the difference between the first selectable FOV and the second selectable FOV is greater than the preset value, determine the second selectable FOV from the first selectable FOV and the second selectable FOV according to the first confidence level and the second confidence level. target FOV.

本实施例中,当通过第二对焦信息得出第二摄像头的第一可选FOV的值为67,通过第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV得出第二摄像头的第二可选FOV为68.5时,第一可选FOV与第二可选FOV之间的差为1.5,若此时预设值为1,由于1.5大于1,此时第一可选FOV和第二可选FOV中必然存在一个FOV是不合适的,此时则需要根据第一对焦信息中的第一置信度和第二对焦信息中的第二置信度从第一可选FOV和第二可选FOV中确定第二摄像头的第二目标FOV,其中,第一置信度用于表征第一对焦信息的可靠程度,第二置信度用于表征第二对焦信息的可靠程度。In this embodiment, when the value of the first selectable FOV of the second camera is obtained from the second focus information, the value of the first optional FOV of the second camera is 67, and the second camera is obtained by the corresponding relationship between the FOVs of the first camera and the second camera, and the first target FOV. When the second selectable FOV of the It is not appropriate that there must be one FOV in the second optional FOV. In this case, it is necessary to select the FOV from the first optional FOV and the second In the optional FOV, the second target FOV of the second camera is determined, wherein the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information.

其中,如果第一对焦信息的对焦方式和第二对焦信息的对焦方式相同,则此时选择第一置信度与第二置信度中的较大者所对应的可选FOV作为第二摄像头的目标FOV,即第二目标FOV;但如果第一置信度与第二置信度的值都低于阈值(置信度低于阈值表示该对焦信息可靠程度低),则终端需要获取第一摄像头和/或第二摄像头其他对焦方式对应的对焦信息,再根据重新获取到的对焦信息执行步骤401至406。Wherein, if the focusing method of the first focusing information and the focusing method of the second focusing information are the same, at this time, the optional FOV corresponding to the larger of the first confidence level and the second confidence level is selected as the target of the second camera FOV, that is, the second target FOV; but if the values of the first confidence level and the second confidence level are both lower than the threshold (the confidence level lower than the threshold indicates that the reliability of the focus information is low), the terminal needs to obtain the first camera and/or For the focusing information corresponding to other focusing modes of the second camera, steps 401 to 406 are executed according to the newly acquired focusing information.

如果第一对焦信息的对焦方式和第二对焦信息的对焦方式不同,那么就根据对焦方式的优先级排序选择第一置信度与第二置信度中的具有更高优先级的置信度所对应的可选 FOV作为第二目标FOV,其中,对焦方式的优先级排序为,相位差对焦方式>激光对焦方式>对比度对焦方式,即,如果第一对焦信息的对焦方式为相位差对焦方式,第二对焦信息的对焦方式为激光对焦方式,由于相位差对焦方式的优先级高于激光对焦方式的优先级,则此时选取第一对焦信息所对应的可选FOV作为第二摄像头的目标FOV,即第二目标FOV,If the focusing mode of the first focusing information and the focusing mode of the second focusing information are different, then select the one corresponding to the first confidence level and the confidence level with a higher priority in the second confidence level according to the priority ordering of the focusing modes. The FOV can be selected as the second target FOV, wherein the priority of the focusing method is: phase difference focusing method>laser focusing method>contrast focusing method, that is, if the focusing method of the first focusing information is the phase difference focusing method, the second The focusing method of the focusing information is the laser focusing method. Since the priority of the phase difference focusing method is higher than that of the laser focusing method, at this time, the optional FOV corresponding to the first focusing information is selected as the target FOV of the second camera, that is, Second target FOV,

需要说明的是,本实施例中,至少有一个摄像头对应至少两种对焦方式。例如,对焦方式可以是相位差对焦方式、激光对焦方式或对比度对焦方式。每种对焦方式已经是本领域中比较成熟的传统技术,本实施例对此不作赘述。It should be noted that, in this embodiment, at least one camera corresponds to at least two focusing modes. For example, the focusing method may be a phase difference focusing method, a laser focusing method or a contrast focusing method. Each focusing mode is already a relatively mature traditional technology in the field, and details are not described in this embodiment.

需要说明的是,本实施例中所提及的预设值根据摄像头的特性决定,可以为1,还可以为其他数值,具体此处不做限定。It should be noted that the preset value mentioned in this embodiment is determined according to the characteristics of the camera, and may be 1 or other values, which are not specifically limited here.

需要说明的是,如果第一可选FOV和第二可选FOV之间的差不大于预设值,那么终端可以直接将第一可选FOV确定为第二摄像头的第二目标FOV。It should be noted that, if the difference between the first selectable FOV and the second selectable FOV is not greater than the preset value, the terminal may directly determine the first selectable FOV as the second target FOV of the second camera.

406、控制第一摄像头移动到第一目标FOV所对应的位置,和控制第二摄像头移动到第二目标FOV所对应的位置。406. Control the first camera to move to a position corresponding to the first target FOV, and control the second camera to move to a position corresponding to the second target FOV.

本实施例中,第一摄像头搭载有第一马达,第二摄像头搭载有第二马达,当终端确定了第一目标FOV和第二目标FOV之后,终端将会控制第一马达推动第一摄像头至第一目标FOV所对应的位置并控制第二马达推动第二摄像头至第二目标FOV所对应的位置,其中,FOV与摄像头的位置对应关系如步骤403中的表1所示。In this embodiment, the first camera is equipped with a first motor, and the second camera is equipped with a second motor. After the terminal determines the first target FOV and the second target FOV, the terminal will control the first motor to push the first camera to The position corresponding to the first target FOV is controlled and the second motor is controlled to push the second camera to the position corresponding to the second target FOV, wherein the corresponding relationship between the FOV and the position of the camera is shown in Table 1 in step 403 .

需要说明的是,本实施例中的第一摄像头和第二摄像头可以互换。It should be noted that, the first camera and the second camera in this embodiment can be interchanged.

本实施例中,根据第一摄像头和第二摄像头的FOV对应关系,实现双摄像头的联动调整,减少了不合适的搜索步骤,可以提高摄像头的对焦效率,从而提升用户体验。In this embodiment, according to the FOV correspondence between the first camera and the second camera, the linkage adjustment of the dual cameras is realized, inappropriate search steps are reduced, the focusing efficiency of the cameras can be improved, and the user experience can be improved.

请参阅图5,本发明实施例中双摄像头的对焦方法的另一个实施例包括:Referring to FIG. 5 , another embodiment of the focusing method of the dual cameras in the embodiment of the present invention includes:

501、获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息。501. Acquire first focus information of a first camera and second focus information of a second camera.

502、从第一对焦信息中获取第一摄像头的第一当前FOV以及第一FOV差值,从第二对焦信息中获取第二当前FOV以及第二FOV差值。502. Obtain the first current FOV and the first FOV difference of the first camera from the first focusing information, and obtain the second current FOV and the second FOV difference from the second focusing information.

503、根据第一当前FOV以及第一FOV差值确定第一摄像头的第一目标FOV,根据第二当前FOV以及第二FOV差值确定第二摄像头的第一可选FOV。503. Determine the first target FOV of the first camera according to the first current FOV and the first FOV difference, and determine the first selectable FOV of the second camera according to the second current FOV and the second FOV difference.

504、根据第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV确定第二摄像头的第二可选FOV。504. Determine a second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera and the first target FOV.

本实施例中,步骤501至步骤504与图4中的401至404类似,具体此处不做赘述。In this embodiment, steps 501 to 504 are similar to 401 to 404 in FIG. 4 , and details are not repeated here.

505、当第一可选FOV所指示的移动方向与第二可选FOV所指示的移动方向相反时,根据第一置信度和第二置信度从第一可选FOV和第二可选FOV中确定第二目标FOV。505. When the moving direction indicated by the first selectable FOV is opposite to the moving direction indicated by the second selectable FOV, select from the first selectable FOV and the second selectable FOV according to the first confidence level and the second confidence level. A second target FOV is determined.

本实施例中,当终端通过FOV与摄像头位置的对应关系得出,第一可选FOV所指示的移动方向与第二可选FOV所指示的移动方向相反的时候(如第二摄像头根据第一可选FOV向左移动,根据第二可选FOV向右移动的时候),此时说明,第一摄像头和第二摄像头的对焦策略矛盾,肯定有一个对焦方向是错误的,则根据第一置信度和第二置信度从第一可选FOV和第二可选FOV中确定第二目标FOV,其中,第一置信度用于表征第一对焦信息的可靠程度,第二置信度用于表征第二对焦信息的可靠程度。In this embodiment, when the terminal obtains from the correspondence between the FOV and the position of the camera, the moving direction indicated by the first optional FOV is opposite to the moving direction indicated by the second optional FOV (for example, the second camera The optional FOV moves to the left, according to when the second optional FOV moves to the right). At this time, it means that the focusing strategies of the first camera and the second camera are contradictory, and there must be one focusing direction that is wrong, then according to the first confidence The second target FOV is determined from the first optional FOV and the second optional FOV, wherein the first confidence is used to characterize the reliability of the first focus information, and the second confidence is used to characterize the first 2 How reliable the focus information is.

其中,如果第一对焦信息的对焦方式和第二对焦信息的对焦方式相同,则此时选择第一置信度与第二置信度中的较大者所对应的可选FOV作为第二摄像头的目标FOV,即第二目标FOV;但如果第一置信度与第二置信度的值都低于阈值(置信度低于阈值表示该对焦信息可靠程度低),则终端需要获取第一摄像头和/或第二摄像头其他对焦方式对应的对焦信息,再根据重新获取到的对焦信息执行步骤401至406。Wherein, if the focusing method of the first focusing information and the focusing method of the second focusing information are the same, at this time, the optional FOV corresponding to the larger of the first confidence degree and the second confidence degree is selected as the target of the second camera FOV, that is, the second target FOV; but if the values of the first confidence level and the second confidence level are both lower than the threshold (the confidence level lower than the threshold indicates that the reliability of the focus information is low), the terminal needs to obtain the first camera and/or For the focusing information corresponding to other focusing modes of the second camera, steps 401 to 406 are executed according to the newly acquired focusing information.

如果第一对焦信息的对焦方式和第二对焦信息的对焦方式不同,那么就根据对焦方式的优先级排序选择第一置信度与第二置信度中的具有更高优先级的置信度所对应的可选 FOV作为第二目标FOV,其中,对焦方式的优先级排序为,相位差对焦方式>激光对焦方式>对比度对焦方式,即,如果第一对焦信息的对焦方式为相位差对焦方式,第二对焦信息的对焦方式为激光对焦方式,由于相位差对焦方式的优先级高于激光对焦方式的优先级,则此时选取第一对焦信息所对应的可选FOV作为第二摄像头的目标FOV,即第二目标FOV,If the focusing mode of the first focusing information and the focusing mode of the second focusing information are different, then select the one corresponding to the first confidence level and the confidence level with a higher priority in the second confidence level according to the priority ordering of the focusing modes. The FOV can be selected as the second target FOV, wherein the priority of the focusing method is: phase difference focusing method>laser focusing method>contrast focusing method, that is, if the focusing method of the first focusing information is the phase difference focusing method, the second The focusing method of the focusing information is the laser focusing method. Since the priority of the phase difference focusing method is higher than that of the laser focusing method, at this time, the optional FOV corresponding to the first focusing information is selected as the target FOV of the second camera, that is, Second target FOV,

需要说明的是,本实施例中,至少有一个摄像头对应至少两种对焦方式。例如,对焦方式可以是相位差对焦方式、激光对焦方式或对比度对焦方式。每种对焦方式已经是本领域中比较成熟的传统技术,本实施例对此不作赘述。It should be noted that, in this embodiment, at least one camera corresponds to at least two focusing modes. For example, the focusing method may be a phase difference focusing method, a laser focusing method or a contrast focusing method. Each focusing mode is already a relatively mature traditional technology in the field, and details are not described in this embodiment.

需要说明的是,本实施例中所提及的预设值根据摄像头的特性决定,可以为1,还可以为其他数值,具体此处不做限定。It should be noted that the preset value mentioned in this embodiment is determined according to the characteristics of the camera, and may be 1 or other values, which are not specifically limited here.

506、控制第一摄像头移动到第一目标FOV所对应的位置,和控制第二摄像头移动到第二目标FOV所对应的位置。506. Control the first camera to move to a position corresponding to the first target FOV, and control the second camera to move to a position corresponding to the second target FOV.

本实施例中,步骤506与图4中的步骤406类似,具体此处不再赘述。In this embodiment, step 506 is similar to step 406 in FIG. 4 , and details are not repeated here.

本实施例中,根据第一摄像头和第二摄像头的FOV对应关系,实现双摄像头的联动调整,摄像头可以减少摄像头错误的搜索方向,提高摄像头的对焦效率,从而提升用户体验。In this embodiment, according to the FOV correspondence between the first camera and the second camera, the linkage adjustment of the dual cameras is realized, the cameras can reduce the wrong search direction of the cameras, improve the focusing efficiency of the cameras, and thus improve the user experience.

在以上实施例中,置信度是包括在对焦信息中的,对焦信息则是在摄像头在对焦过程中生成的,通过不同的对焦方式,例如之前提到相位差对焦方式、激光对焦方式或对比度对焦方式,摄像头可形成对应的对焦信息,只不过不同对焦方式获得的对焦信息可能不同,并且任一种对焦方式对应的对焦信息中的置信度用于表征该对焦信息的可靠程度。在每种对焦方式下,包括置信度在内的对焦信息的获取过程是现有技术,可以由摄像头提供商提供,不在本申请的讨论范围内。In the above embodiment, the confidence level is included in the focusing information, and the focusing information is generated during the focusing process of the camera. Through different focusing methods, such as the aforementioned phase difference focusing method, laser focusing method or contrast focusing method The camera can form the corresponding focusing information, but the focusing information obtained by different focusing methods may be different, and the confidence in the focusing information corresponding to any focusing method is used to represent the reliability of the focusing information. In each focusing mode, the process of acquiring the focusing information including the confidence level is the prior art, which can be provided by the camera provider, which is not within the scope of discussion of this application.

上述实施例对本发明实施例中双摄像头的对焦方法进行了详细说明,下面对本发明实施例中终端进行详细描述。The above embodiments describe in detail the focusing method of the dual cameras in the embodiment of the present invention, and the terminal in the embodiment of the present invention is described in detail below.

请参阅图6,图6为本发明实施例中用于实现双摄像头对焦的终端的一个实施例,其中,双摄像头包括第一摄像头和第二摄像头,本实施例包括:Please refer to FIG. 6. FIG. 6 is an embodiment of a terminal for implementing dual-camera focusing in an embodiment of the present invention, wherein the dual-camera includes a first camera and a second camera, and this embodiment includes:

获取单元601,用于获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;an acquisition unit 601, configured to acquire first focus information of the first camera and second focus information of the second camera;

第一确定单元602,用于根据第一对焦信息确定第一摄像头的第一目标视场角FOV,根据第二对焦信息确定第二摄像头的第一可选FOV;A first determining unit 602, configured to determine the first target field of view FOV of the first camera according to the first focusing information, and determine the first optional FOV of the second camera according to the second focusing information;

第二确定单元603,用于根据第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV确定第二摄像头的第二可选FOV;A second determining unit 603, configured to determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV;

第三确定单元604,用于根据第一对焦信息中的第一置信度和第二对焦信息中的第二置信度从第一可选FOV和第二可选FOV中确定第二摄像头的第二目标FOV,第一置信度用于表征第一对焦信息的可靠程度,第二置信度用于表征第二对焦信息的可靠程度;The third determining unit 604 is configured to determine the second camera's second camera from the first selectable FOV and the second selectable FOV according to the first confidence in the first focus information and the second confidence in the second focus information Target FOV, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information;

控制单元605,用于控制第一摄像头移动到第一目标FOV所对应的位置,和控制第二摄像头移动到第二目标FOV所对应的位置。The control unit 605 is configured to control the first camera to move to a position corresponding to the first target FOV, and to control the second camera to move to a position corresponding to the second target FOV.

请参阅图7,图7为本发明实施例中用于实现双摄像头对焦的终端的另一个实施例,其中,双摄像头包括第一摄像头和第二摄像头,本实施例包括:Please refer to FIG. 7. FIG. 7 is another embodiment of a terminal for implementing dual-camera focusing in an embodiment of the present invention, wherein the dual-camera includes a first camera and a second camera, and this embodiment includes:

获取单元701,用于获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;an acquisition unit 701, configured to acquire first focus information of the first camera and second focus information of the second camera;

第一确定单元702,用于根据第一对焦信息确定第一摄像头的第一目标视场角FOV,根据第二对焦信息确定第二摄像头的第一可选FOV;A first determining unit 702, configured to determine the first target field of view FOV of the first camera according to the first focusing information, and determine the first optional FOV of the second camera according to the second focusing information;

其中,第一确定单元702包括:Wherein, the first determining unit 702 includes:

第一获取子单元7021,用于从第一对焦信息中获取第一摄像头的第一当前FOV以及第一FOV差值,从第二对焦信息中获取第二当前FOV以及第二FOV差值;The first obtaining subunit 7021 is used to obtain the first current FOV and the first FOV difference of the first camera from the first focusing information, and obtain the second current FOV and the second FOV difference from the second focusing information;

第三确定子单元7022,用于根据第一当前FOV以及第一FOV差值确定第一摄像头的第一目标FOV,根据第二当前FOV以及第二FOV差值确定第二摄像头的第一可选FOV。The third determination subunit 7022 is configured to determine the first target FOV of the first camera according to the first current FOV and the first FOV difference, and determine the first optional FOV of the second camera according to the second current FOV and the second FOV difference FOV.

第二确定单元703,用于根据第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV确定第二摄像头的第二可选FOV;A second determining unit 703, configured to determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV;

第三确定单元704,用于根据第一对焦信息中的第一置信度和第二对焦信息中的第二置信度从第一可选FOV和第二可选FOV中确定第二摄像头的第二目标FOV,第一置信度用于表征第一对焦信息的可靠程度,第二置信度用于表征第二对焦信息的可靠程度;A third determining unit 704, configured to determine the second camera of the second camera from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information Target FOV, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information;

其中,第三确定单元704还包括:Wherein, the third determining unit 704 further includes:

第一确定子单元7041,用于当第一可选FOV与第二可选FOV之间的差大于预设值时,根据第一置信度和第二置信度从第一可选FOV和第二可选FOV中确定第二目标FOV;The first determination subunit 7041 is configured to, when the difference between the first selectable FOV and the second selectable FOV is greater than a preset value, select the first selectable FOV and the second selectable FOV according to the first confidence Determine the second target FOV in the optional FOV;

和/或,and / or,

第二确定子单元7042,用于当第一可选FOV所指示的移动方向与第二可选FOV所指示的移动方向相反时,根据第一置信度和第二置信度从第一可选FOV和第二可选FOV中确定第二目标FOV。The second determination subunit 7042 is configured to, when the moving direction indicated by the first selectable FOV is opposite to the moving direction indicated by the second selectable FOV, select the and a second selectable FOV to determine a second target FOV.

和/或,and / or,

第一选择子单元7043,用于当第一对焦信息的对焦方式和第二对焦信息的对焦方式相同时,选择第一置信度与第二置信度中的较大者所对应的可选FOV作为第二目标FOV;The first selection subunit 7043 is configured to select the optional FOV corresponding to the larger of the first confidence level and the second confidence level as the The second target FOV;

和/或,and / or,

第二选择子单元7044,用于当第一对焦信息的对焦方式和第二对焦信息的对焦方式不同时,根据对焦方式的优先级排序选择第一置信度与第二置信度中的具有更高优先级的置信度所对应的可选FOV作为第二目标FOV。The second selection subunit 7044 is configured to select, according to the priority ordering of the focusing methods, when the focusing method of the first focusing information and the focusing method of the second focusing information are different, the first confidence level and the second confidence level have the higher confidence level. The optional FOV corresponding to the confidence level of the priority is used as the second target FOV.

控制单元705,用于控制第一摄像头移动到第一目标FOV所对应的位置,和控制第二摄像头移动到第二目标FOV所对应的位置。The control unit 705 is configured to control the first camera to move to a position corresponding to the first target FOV, and to control the second camera to move to a position corresponding to the second target FOV.

第四确定单元706,用于当第一可选FOV和第二可选FOV之间的差不大于预设值,将第一可选FOV确定为第二摄像头的第二目标FOV。The fourth determining unit 706 is configured to determine the first selectable FOV as the second target FOV of the second camera when the difference between the first selectable FOV and the second selectable FOV is not greater than a preset value.

需要说明的是,在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。It should be noted that, in the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product.

计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本发明实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid StateDisk(SSD))等。A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present invention result in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium can be any available medium that can be stored by a computer or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. Useful media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM, Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

在一个实例中,在图6和图7对应的终端实施例中,该终端可以是软件装置或硬件装置,用于实现双摄像头的对焦。当该终端是不需要运行软件的硬件装置时,以上提到的每个单元或子单元可以是一个用于实现相关运算处理的集成电路单元,即每个单元或子单元包括集成电路所需的电路结构,如数字电路、门电路或模拟电路等。In an example, in the terminal embodiments corresponding to FIG. 6 and FIG. 7 , the terminal may be a software device or a hardware device, which is used to realize the focusing of the dual cameras. When the terminal is a hardware device that does not need to run software, each unit or sub-unit mentioned above may be an integrated circuit unit for implementing relevant arithmetic processing, that is, each unit or sub-unit includes the required Circuit structure, such as digital circuit, gate circuit or analog circuit, etc.

在另一个实例中,终端可以包括运行软件指令的硬件,请参阅图3。现在对图3中的处理器306和存储器310进行详细的说明。In another example, the terminal may include hardware that runs software instructions, see FIG. 3 . The processor 306 and memory 310 of FIG. 3 will now be described in detail.

存储器310可以包括只读存储器和随机存取存储器,并向处理器306提供指令和数据。存储器310的一部分还可以包括非易失性随机存取存储器(英文全称:Non-VolatileRandom Access Memory,英文缩写:NVRAM)。Memory 310 may include read-only memory and random access memory, and provides instructions and data to processor 306 . A part of the memory 310 may further include a non-volatile random access memory (full name in English: Non-Volatile Random Access Memory, abbreviation: NVRAM).

存储器310存储了如下的元素的任一种,如可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:Memory 310 stores any of the following elements, such as executable modules or data structures, or a subset thereof, or an extended set thereof:

操作指令:包括各种代码化的操作指令,用于实现各种操作;Operation instructions: including various coded operation instructions, used to realize various operations;

操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating System: Includes various system programs for implementing various basic services and handling hardware-based tasks.

本发明实施例中存储器310可保存有指令程序,处理器306用于读取所述指令程序并在所述指令程序的驱动下执行:In the embodiment of the present invention, the memory 310 may store an instruction program, and the processor 306 is configured to read the instruction program and execute it under the driving of the instruction program:

获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;Obtain the first focus information of the first camera and the second focus information of the second camera;

根据第一对焦信息确定第一摄像头的第一目标视场角FOV,根据第二对焦信息确定第二摄像头的第一可选FOV;Determine the first target field of view FOV of the first camera according to the first focus information, and determine the first optional FOV of the second camera according to the second focus information;

根据第一摄像头和第二摄像头的FOV对应关系,以及第一目标FOV确定第二摄像头的第二可选FOV;Determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV;

根据第一对焦信息中的第一置信度和第二对焦信息中的第二置信度从第一可选FOV 和第二可选FOV中确定第二摄像头的第二目标FOV,第一置信度用于表征第一对焦信息的可靠程度,第二置信度用于表征第二对焦信息的可靠程度;The second target FOV of the second camera is determined from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information, and the first confidence level is determined by: In order to characterize the reliability of the first focus information, the second confidence is used to characterize the reliability of the second focus information;

控制第一摄像头移动到第一目标FOV所对应的位置,和控制第二摄像头移动到第二目标FOV所对应的位置。The first camera is controlled to move to a position corresponding to the first target FOV, and the second camera is controlled to move to a position corresponding to the second target FOV.

处理器306控制终端8的操作,处理器306例如可以是中央处理单元(英文全称:Central Processing Unit,英文缩写:CPU)。其中,终端8中的处理器306可以集成图像信号处理器(英文全称:Image Signal Process,英文缩写:ISP),终端还可以外置ISP,并通过处理器306控制ISP执行图像信号处理操作。在另一种实施例中,处理器306可以就是ISP。The processor 306 controls the operation of the terminal 8, and the processor 306 may be, for example, a central processing unit (full name in English: Central Processing Unit, abbreviation: CPU). The processor 306 in the terminal 8 can integrate an image signal processor (full name in English: Image Signal Process, abbreviation: ISP), and the terminal can also have an external ISP, and the processor 306 controls the ISP to perform image signal processing operations. In another embodiment, the processor 306 may be the ISP.

存储器310可以包括只读存储器和随机存取存储器,并向处理器306提供指令和数据。存储器310的一部分还可以包括NVRAM。具体的应用中,终端8的各个组件可以通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。Memory 310 may include read-only memory and random access memory, and provides instructions and data to processor 306 . A portion of memory 310 may also include NVRAM. In a specific application, various components of the terminal 8 may be coupled together through a bus system, where the bus system may include a power bus, a control bus, a status signal bus, and the like in addition to a data bus.

上述本发明实施例揭示的方法可以应用于处理器306中,或者由处理器306实现。处理器306可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器306中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器306可以是通用处理器、数字信号处理器(英文全称:Digital Signal Processing,英文缩写:DSP)、专用集成电路(英文全称:Application Specific Integrated Circuit,英文缩写: ASIC)、现成可编程门阵列(英文全称:Field-Programmable Gate Array,英文缩写:FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器310,处理器306读取存储器310中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 306 or implemented by the processor 306 . The processor 306 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 306 or an instruction in the form of software. The above-mentioned processor 306 may be a general-purpose processor, a digital signal processor (full English name: Digital Signal Processing, English abbreviation: DSP), an application-specific integrated circuit (full English name: Application Specific Integrated Circuit, English abbreviation: ASIC), ready-made programmable Gate Array (English full name: Field-Programmable Gate Array, English abbreviation: FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 310, and the processor 306 reads the information in the memory 310, and completes the steps of the above method in combination with its hardware.

图3的相关描述可以参阅图4和图5方法部分的相关描述和效果进行理解,此处不做过多赘述。The related description of FIG. 3 can be understood by referring to the related description and effect of the method part in FIG. 4 and FIG. 5 , and details are not repeated here.

需要说明的是,本申请实施例所提及的终端可为手机终端内的处理器或手机终端本身。It should be noted that the terminal mentioned in the embodiments of the present application may be a processor in the mobile phone terminal or the mobile phone terminal itself.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (19)

1.一种双摄像头的对焦方法,其特征在于,所述双摄像头包括第一摄像头和第二摄像头,所述方法包括:1. A method for focusing of dual cameras, wherein the dual cameras comprise a first camera and a second camera, and the method comprises: 获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;Obtain the first focus information of the first camera and the second focus information of the second camera; 根据所述第一对焦信息确定所述第一摄像头的第一目标视场角FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV;Determine a first target field of view FOV of the first camera according to the first focus information, and determine a first selectable FOV of the second camera according to the second focus information; 根据所述第一摄像头和所述第二摄像头的FOV对应关系,以及所述第一目标FOV确定所述第二摄像头的第二可选FOV;Determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV; 根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,所述第一置信度用于表征所述第一对焦信息的可靠程度,所述第二置信度用于表征所述第二对焦信息的可靠程度;According to the first confidence level in the first focus information and the second confidence level in the second focus information, it is determined from the first optional FOV and the second optional FOV that the a second target FOV, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information; 控制所述第一摄像头移动到所述第一目标FOV所对应的位置,和控制所述第二摄像头移动到所述第二目标FOV所对应的位置。The first camera is controlled to move to a position corresponding to the first target FOV, and the second camera is controlled to move to a position corresponding to the second target FOV. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:2 . The method according to claim 1 , wherein the method according to the first confidence level in the first focus information and the second confidence level in the second focus information is selected from the first Determining the second target FOV of the second camera in the FOV and the second optional FOV includes: 当所述第一可选FOV与所述第二可选FOV之间的差大于预设值时,根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV。When the difference between the first selectable FOV and the second selectable FOV is greater than a preset value, the first selectable FOV and the selected The second target FOV is determined from the second selectable FOV. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 若所述第一可选FOV和所述第二可选FOV之间的所述差不大于所述预设值,则将所述第一可选FOV确定为所述第二摄像头的第二目标FOV。If the difference between the first selectable FOV and the second selectable FOV is not greater than the preset value, determining the first selectable FOV as the second target of the second camera FOV. 4.根据权利要求1所述的方法,其特征在于,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:4 . The method according to claim 1 , wherein the method according to the first confidence level in the first focus information and the second confidence level in the second focus information is selected from the first Determining the second target FOV of the second camera in the FOV and the second optional FOV includes: 当所述第一可选FOV所指示的移动方向与所述第二可选FOV所指示的移动方向相反时,根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV。When the moving direction indicated by the first selectable FOV is opposite to the moving direction indicated by the second selectable FOV, according to the first confidence level and the second confidence level The second target FOV is determined from the FOV and the second selectable FOV. 5.根据权利要求1至4中任一项所述的方法,其特征在于,所述根据所述第一对焦信息确定所述第一摄像头的第一目标FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV包括:The method according to any one of claims 1 to 4, wherein the determining the first target FOV of the first camera according to the first focusing information, and determining the first target FOV according to the second focusing information The first selectable FOV of the second camera includes: 从所述第一对焦信息中获取所述第一摄像头的第一当前FOV以及第一FOV差值,从所述第二对焦信息中获取第二当前FOV以及第二FOV差值;Obtain the first current FOV and the first FOV difference of the first camera from the first focus information, and obtain the second current FOV and the second FOV difference from the second focus information; 根据所述第一当前FOV以及所述第一FOV差值确定所述第一摄像头的第一目标FOV,根据所述第二当前FOV以及所述第二FOV差值确定所述第二摄像头的第一可选FOV。The first target FOV of the first camera is determined according to the first current FOV and the first FOV difference, and the first target FOV of the second camera is determined according to the second current FOV and the second FOV difference. An optional FOV. 6.根据权利要求1至4中任一项所述的方法,其特征在于,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:6. The method according to any one of claims 1 to 4, wherein the first confidence level in the first focusing information and the second confidence level in the second focusing information are calculated from Determining the second target FOV of the second camera in the first selectable FOV and the second selectable FOV includes: 若所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式相同,则选择所述第一置信度与所述第二置信度中的较大者所对应的可选FOV作为所述第二目标FOV。If the focusing method of the first focusing information and the focusing method of the second focusing information are the same, the optional FOV corresponding to the larger of the first confidence level and the second confidence level is selected as the Describe the second target FOV. 7.根据权利要求1至4中任一项所述的方法,其特征在于,所述根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV包括:7. The method according to any one of claims 1 to 4, characterized in that, according to the first confidence in the first focusing information and the second confidence in the second focusing information from Determining the second target FOV of the second camera in the first selectable FOV and the second selectable FOV includes: 若所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式不同,则根据对焦方式的优先级排序选择所述第一置信度与所述第二置信度中的具有更高优先级的置信度所对应的可选FOV作为所述第二目标FOV。If the focusing method of the first focusing information and the focusing method of the second focusing information are different, select the first confidence level and the second confidence level with a higher priority according to the priority order of the focusing methods The optional FOV corresponding to the confidence level of the level is used as the second target FOV. 8.根据权利要求1至4中任一项所述的方法,其特征在于,所述FOV对应关系为所述第一摄像头和所述第二摄像头之间的FOV对应表。8 . The method according to claim 1 , wherein the FOV correspondence is a FOV correspondence table between the first camera and the second camera. 9 . 9.根据权利要求1至4中任一项所述的方法,其特征在于,所述第一对焦信息和所述第二对焦信息中的至少一个通过如下任一项得到:相位差对焦方式、激光对焦方式或对比度对焦方式。9. The method according to any one of claims 1 to 4, wherein at least one of the first focusing information and the second focusing information is obtained by any one of the following: a phase difference focusing method, Laser focus or contrast focus. 10.一种用于实现双摄像头对焦的终端,其特征在于,所述双摄像头包括第一摄像头和第二摄像头,所述终端包括:10. A terminal for realizing dual-camera focusing, wherein the dual-camera comprises a first camera and a second camera, and the terminal comprises: 获取单元,用于获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;an acquisition unit, configured to acquire the first focus information of the first camera and the second focus information of the second camera; 第一确定单元,用于根据所述第一对焦信息确定所述第一摄像头的第一目标视场角FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV;a first determining unit, configured to determine the first target field of view FOV of the first camera according to the first focusing information, and determine the first optional FOV of the second camera according to the second focusing information; 第二确定单元,用于根据所述第一摄像头和所述第二摄像头的FOV对应关系,以及所述第一目标FOV确定所述第二摄像头的第二可选FOV;a second determining unit, configured to determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV; 第三确定单元,用于根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,所述第一置信度用于表征所述第一对焦信息的可靠程度,所述第二置信度用于表征所述第二对焦信息的可靠程度;a third determining unit, configured to extract data from the first selectable FOV and the second selectable FOV according to the first confidence level in the first focus information and the second confidence level in the second focus information determining the second target FOV of the second camera, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information; 控制单元,用于控制所述第一摄像头移动到所述第一目标FOV所对应的位置,和控制所述第二摄像头移动到所述第二目标FOV所对应的位置。A control unit, configured to control the first camera to move to a position corresponding to the first target FOV, and to control the second camera to move to a position corresponding to the second target FOV. 11.根据权利要求10所述的终端,其特征在于,所述第三确定单元包括:11. The terminal according to claim 10, wherein the third determining unit comprises: 第一确定子单元,用于当所述第一可选FOV与所述第二可选FOV之间的差大于预设值时,根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV。The first determination subunit is configured to, when the difference between the first selectable FOV and the second selectable FOV is greater than a preset value, determine the value from the selected value according to the first confidence level and the second confidence level. The second target FOV is determined from the first selectable FOV and the second selectable FOV. 12.根据权利要求11所述的终端,其特征在于,所述终端还包括:12. The terminal according to claim 11, wherein the terminal further comprises: 第四确定单元,用于当所述第一可选FOV和所述第二可选FOV之间的所述差不大于所述预设值时,将所述第一可选FOV确定为所述第二摄像头的第二目标FOV。a fourth determining unit, configured to determine the first selectable FOV as the first selectable FOV when the difference between the first selectable FOV and the second selectable FOV is not greater than the preset value The second target FOV of the second camera. 13.根据权利要求11所述的终端,其特征在于,所述第三确定单元包括:13. The terminal according to claim 11, wherein the third determining unit comprises: 第二确定子单元,用于当所述第一可选FOV所指示的移动方向与所述第二可选FOV所指示的移动方向相反时,根据所述第一置信度和所述第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二目标FOV。A second determination subunit, configured to, when the moving direction indicated by the first selectable FOV is opposite to the moving direction indicated by the second selectable FOV, according to the first confidence level and the second confidence The second target FOV is determined from the first selectable FOV and the second selectable FOV. 14.根据权利要求11至13中任一项所述的终端,其特征在于,所述第一确定单元包括:14. The terminal according to any one of claims 11 to 13, wherein the first determining unit comprises: 第一获取子单元,用于从所述第一对焦信息中获取所述第一摄像头的第一当前FOV以及第一FOV差值,从所述第二对焦信息中获取第二当前FOV以及第二FOV差值;The first obtaining subunit is used to obtain the first current FOV and the first FOV difference value of the first camera from the first focusing information, and obtain the second current FOV and the second focusing information from the second focusing information. FOV difference; 第三确定子单元,用于根据所述第一当前FOV以及所述第一FOV差值确定所述第一摄像头的第一目标FOV,根据所述第二当前FOV以及所述第二FOV差值确定所述第二摄像头的第一可选FOV。A third determination subunit, configured to determine the first target FOV of the first camera according to the first current FOV and the first FOV difference, and determine the first target FOV of the first camera according to the second current FOV and the second FOV difference A first selectable FOV for the second camera is determined. 15.根据权利要求11至13中任一项所述的终端,其特征在于,所述第三确定单元包括:15. The terminal according to any one of claims 11 to 13, wherein the third determining unit comprises: 第一选择子单元,用于当所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式相同时,选择所述第一置信度与所述第二置信度中的较大者所对应的可选FOV作为所述第二目标FOV。a first selection subunit, configured to select the larger of the first confidence level and the second confidence level when the focusing method of the first focusing information and the focusing method of the second focusing information are the same The corresponding optional FOV is used as the second target FOV. 16.根据权利要求11至13中任一项所述的终端,其特征在于,所述第三确定单元包括:16. The terminal according to any one of claims 11 to 13, wherein the third determining unit comprises: 第二选择子单元,用于当所述第一对焦信息的对焦方式和所述第二对焦信息的对焦方式不同时,根据对焦方式的优先级排序选择所述第一置信度与所述第二置信度中的具有更高优先级的置信度所对应的可选FOV作为所述第二目标FOV。A second selection subunit, configured to select the first confidence level and the second confidence level according to the priority ordering of the focusing methods when the focusing method of the first focusing information and the focusing method of the second focusing information are different An optional FOV corresponding to a confidence level with a higher priority among the confidence levels is used as the second target FOV. 17.根据权利要求11至13中任一项所述的终端,其特征在于,所述FOV对应关系为所述第一摄像头和所述第二摄像头之间的FOV对应表。The terminal according to any one of claims 11 to 13, wherein the FOV correspondence is a FOV correspondence table between the first camera and the second camera. 18.根据权利要求11至13中任一项所述的终端,其特征在于,所述第一对焦信息和所述第二对焦信息中的至少一个通过如下任一项得到:相位差对焦方式、激光对焦方式或对比度对焦方式。18. The terminal according to any one of claims 11 to 13, wherein at least one of the first focusing information and the second focusing information is obtained by any one of the following: a phase difference focusing method, Laser focus or contrast focus. 19.一种用于实现双摄像头对焦的终端,其特征在于,所述双摄像头包括第一摄像头和第二摄像头,包括:19. A terminal for realizing dual-camera focusing, wherein the dual-camera comprises a first camera and a second camera, comprising: 处理器和存储器;processor and memory; 所述存储器存储操作指令;the memory stores operation instructions; 所述处理器,用于通过调用所述存储器存储的所述操作指令,执行如下步骤:The processor is configured to perform the following steps by invoking the operation instructions stored in the memory: 获取第一摄像头的第一对焦信息,以及第二摄像头的第二对焦信息;obtaining the first focus information of the first camera and the second focus information of the second camera; 根据所述第一对焦信息确定所述第一摄像头的第一目标视场角FOV,根据所述第二对焦信息确定所述第二摄像头的第一可选FOV;Determine a first target field of view FOV of the first camera according to the first focus information, and determine a first selectable FOV of the second camera according to the second focus information; 根据所述第一摄像头和所述第二摄像头的FOV对应关系,以及所述第一目标FOV确定所述第二摄像头的第二可选FOV;Determine the second optional FOV of the second camera according to the FOV correspondence between the first camera and the second camera, and the first target FOV; 根据所述第一对焦信息中的第一置信度和所述第二对焦信息中的第二置信度从所述第一可选FOV和所述第二可选FOV中确定所述第二摄像头的第二目标FOV,所述第一置信度用于表征所述第一对焦信息的可靠程度,所述第二置信度用于表征所述第二对焦信息的可靠程度;According to the first confidence level in the first focus information and the second confidence level in the second focus information, it is determined from the first optional FOV and the second optional FOV that the a second target FOV, the first confidence level is used to represent the reliability of the first focus information, and the second confidence level is used to represent the reliability of the second focus information; 控制所述第一摄像头移动到所述第一目标FOV所对应的位置,和控制所述第二摄像头移动到所述第二目标FOV所对应的位置。The first camera is controlled to move to a position corresponding to the first target FOV, and the second camera is controlled to move to a position corresponding to the second target FOV.
CN201710492055.2A 2017-06-23 2017-06-23 A focusing method and terminal for dual cameras Active CN109120839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710492055.2A CN109120839B (en) 2017-06-23 2017-06-23 A focusing method and terminal for dual cameras

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710492055.2A CN109120839B (en) 2017-06-23 2017-06-23 A focusing method and terminal for dual cameras

Publications (2)

Publication Number Publication Date
CN109120839A CN109120839A (en) 2019-01-01
CN109120839B true CN109120839B (en) 2020-10-16

Family

ID=64733914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710492055.2A Active CN109120839B (en) 2017-06-23 2017-06-23 A focusing method and terminal for dual cameras

Country Status (1)

Country Link
CN (1) CN109120839B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788199B (en) * 2019-01-30 2021-02-05 上海创功通讯技术有限公司 Focusing method suitable for terminal with double cameras
CN111491105B (en) * 2020-04-24 2021-07-27 Oppo广东移动通信有限公司 Focusing method of mobile terminal, mobile terminal and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104822019A (en) * 2015-03-31 2015-08-05 深圳市莫孚康技术有限公司 Method for calculating camera field angle
CN105847693A (en) * 2016-04-27 2016-08-10 乐视控股(北京)有限公司 Shooting method and system based on two-camera focusing
CN106341598A (en) * 2016-09-14 2017-01-18 北京环境特性研究所 Optical-lens automatic focusing system and method thereof
CN106502027A (en) * 2016-11-22 2017-03-15 宇龙计算机通信科技(深圳)有限公司 A kind of dual camera module and smart machine
CN106534696A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Focusing apparatus and method
CN106851103A (en) * 2017-02-27 2017-06-13 上海兴芯微电子科技有限公司 Atomatic focusing method and device based on dual camera system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104822019A (en) * 2015-03-31 2015-08-05 深圳市莫孚康技术有限公司 Method for calculating camera field angle
CN105847693A (en) * 2016-04-27 2016-08-10 乐视控股(北京)有限公司 Shooting method and system based on two-camera focusing
CN106341598A (en) * 2016-09-14 2017-01-18 北京环境特性研究所 Optical-lens automatic focusing system and method thereof
CN106502027A (en) * 2016-11-22 2017-03-15 宇龙计算机通信科技(深圳)有限公司 A kind of dual camera module and smart machine
CN106534696A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Focusing apparatus and method
CN106851103A (en) * 2017-02-27 2017-06-13 上海兴芯微电子科技有限公司 Atomatic focusing method and device based on dual camera system

Also Published As

Publication number Publication date
CN109120839A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN107395898B (en) Shooting method and mobile terminal
CN106060406B (en) A kind of photographing method and mobile terminal
CN105554369B (en) Electronic device and method for processing images
CN106605403B (en) Shooting method and electronic equipment
KR102547104B1 (en) Electronic device and method for processing plural images
CN109981965B (en) Focusing method and electronic equipment
CN106506957A (en) A camera method and mobile terminal
CN105827970B (en) A kind of image processing method and mobile terminal
CN105847674A (en) Preview image processing method based on mobile terminal, and mobile terminal therein
CN109923850B (en) Image capturing device and method
CN106534685A (en) Panoramic image generation method and mobile terminal
CN113810604B (en) Document shooting method, electronic device and storage medium
CN106791357A (en) A kind of image pickup method and mobile terminal
CN105827965A (en) Image processing method based on mobile terminal and mobile terminal
CN107147837A (en) A shooting parameter setting method and mobile terminal
CN106331484B (en) Focusing method and mobile terminal
JP2015524954A (en) Multiple display method using a plurality of communication terminals, machine-readable storage medium, and communication terminal
CN106454086B (en) An image processing method and mobile terminal
CN106162150B (en) A kind of photographic method and mobile terminal
CN109040524A (en) Artifact eliminating method, device, storage medium and terminal
CN108781254A (en) It takes pictures method for previewing, graphic user interface and terminal
CN114531539A (en) Shooting method and electronic equipment
CN107277353A (en) A kind of method taken pictures and mobile terminal
WO2021218551A1 (en) Photographing method and apparatus, terminal device, and storage medium
CN106412437A (en) Terminal focusing method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant