[go: up one dir, main page]

CN104730802B - Calibration, focusing method and the system and dual camera equipment of optical axis included angle - Google Patents

Calibration, focusing method and the system and dual camera equipment of optical axis included angle Download PDF

Info

Publication number
CN104730802B
CN104730802B CN201510142411.9A CN201510142411A CN104730802B CN 104730802 B CN104730802 B CN 104730802B CN 201510142411 A CN201510142411 A CN 201510142411A CN 104730802 B CN104730802 B CN 104730802B
Authority
CN
China
Prior art keywords
optical axis
value
imaging point
camera
focusing
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
CN201510142411.9A
Other languages
Chinese (zh)
Other versions
CN104730802A (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.)
Beijing Qinghe Zhifeng Agricultural Technology Co.,Ltd.
Original Assignee
Coolpad Software Technology Shenzhen 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 Coolpad Software Technology Shenzhen Co Ltd filed Critical Coolpad Software Technology Shenzhen Co Ltd
Priority to CN201510142411.9A priority Critical patent/CN104730802B/en
Priority to PCT/CN2015/078051 priority patent/WO2016155074A1/en
Publication of CN104730802A publication Critical patent/CN104730802A/en
Application granted granted Critical
Publication of CN104730802B publication Critical patent/CN104730802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/18Focusing aids
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/32Means for focusing
    • G03B13/34Power focusing
    • G03B13/36Autofocus systems
    • 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
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/32Means for focusing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders
    • G01C3/10Measuring distances in line of sight; Optical rangefinders using a parallactic triangle with variable angles and a base of fixed length in the observation station, e.g. in the instrument

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Optical Distance (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)

Abstract

本发明提供了一种光轴夹角的校准、对焦方法和系统和双摄像头设备,其中,校准方法,包括:对被拍摄物体的任一特征点进行对焦,获取第一物距值;确定所述特征点在所述第一摄像头上的第一成像点坐标值;确定所述特征点在所述第二摄像头上的第二成像点坐标值;根据所述第一坐标值成像点坐标值、所述第二坐标值成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。通过本发明的技术方案,实现了双摄像头设备的自校准对焦。

The present invention provides a method and system for calibrating and focusing the included angle of the optical axis and a dual camera device, wherein the calibrating method includes: focusing on any feature point of the object to be photographed, and obtaining the first object distance value; determining the The first imaging point coordinate value of the feature point on the first camera; determine the second imaging point coordinate value of the feature point on the second camera; according to the first coordinate value imaging point coordinate value, The second coordinate value imaging point coordinate value, the pre-stored parameters of the dual-camera device, the first object distance value and the pre-stored optical axis angle calculation formula determine the optical axis angle of the dual-camera device . Through the technical solution of the present invention, the self-calibration focusing of the dual-camera device is realized.

Description

光轴夹角的校准、对焦方法和系统和双摄像头设备Optical axis angle calibration, focusing method and system, and dual-camera device

技术领域technical field

本发明涉及光学对焦技术领域,具体而言,涉及一种光轴夹角的校准方法和系统、一种对焦方法和系统和一种双摄像头设备。The present invention relates to the technical field of optical focusing, in particular to a method and system for calibrating an included angle of an optical axis, a focusing method and system, and a dual-camera device.

背景技术Background technique

在相关技术中,为了在拍摄过程中实现更优异的对焦效果,双摄像头被开发应用于各种拍摄设备,在用户选择待拍摄物体的对焦点(特征点)后,每个摄像头均对该特征点进行成像以形成两个成像点,依据两个成像点到光轴点在成像平面的中心点之间的距离和等效焦距,确定待拍摄物体到镜头平面的物距值,进而确定对焦过程镜头移动的距离。In related technologies, in order to achieve a better focusing effect during the shooting process, dual cameras are developed and applied to various shooting devices. Point imaging to form two imaging points, according to the distance between the two imaging points and the center point of the optical axis point on the imaging plane and the equivalent focal length, determine the object distance value from the object to be photographed to the lens plane, and then determine the focusing process The distance the camera moves.

但是上述过程基于两个光轴平行的理想情况,当拍摄设备因为制作工艺偏差或者外力碰撞而造成光轴偏移时,在依据理想情况确定物距值,会造成严重的对焦偏差,影响用户的拍摄效果和使用体验。However, the above process is based on the ideal situation where the two optical axes are parallel. When the optical axis of the shooting equipment is shifted due to manufacturing process deviation or external force collision, determining the object distance value according to the ideal situation will cause serious focus deviation and affect the user's Shooting effect and user experience.

而在将闭环马达技术应用于双镜头拍摄技术后,虽然可以实现基于霍尔传感器对镜头位移进行测量,但是并不能对光轴夹角参数进行自校准的效果。After the closed-loop motor technology is applied to the dual-lens shooting technology, although the lens displacement can be measured based on the Hall sensor, it cannot self-calibrate the optical axis angle parameters.

因此,如何实现双镜头的拍摄设备的自校准过程以实现准确对焦成为亟待解决的技术问题。Therefore, how to implement the self-calibration process of the dual-lens shooting device to achieve accurate focusing has become an urgent technical problem to be solved.

发明内容Contents of the invention

本发明正是基于上述技术问题至少之一,提出了一种光轴夹角的校准方法和系统、一种对焦方法和系统和一种双摄像头设备。Based on at least one of the above technical problems, the present invention proposes a method and system for calibrating the included angle of optical axes, a focusing method and system, and a dual camera device.

有鉴于此,根据本发明的第一方面的实施例,提出了一种光轴夹角的校准方法,包括:对被拍摄物体的任一特征点进行对焦,获取第一物距值;确定所述特征点在所述第一摄像头上的第一成像点坐标值;确定所述特征点在所述第二摄像头上的第二成像点坐标值;根据所述第一坐标值成像点坐标值、所述第二坐标值成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。In view of this, according to the embodiment of the first aspect of the present invention, a method for calibrating the included angle of the optical axis is proposed, including: focusing on any feature point of the object to be photographed, and obtaining the first object distance value; determining the The first imaging point coordinate value of the feature point on the first camera; determine the second imaging point coordinate value of the feature point on the second camera; according to the first coordinate value imaging point coordinate value, The second coordinate value imaging point coordinate value, the pre-stored parameters of the dual-camera device, the first object distance value and the pre-stored optical axis angle calculation formula determine the optical axis angle of the dual-camera device .

根据本发明的实施例的光轴夹角的校准方法,通过获取第一摄像头的第一物距值,并由光轴夹角计算公式确定双摄像头设备的光轴夹角采样值,以完成光轴夹角的校准过程,提高了光轴夹角的校准效率,避免了光轴夹角的偏差造成的对焦不准确等问题,提升了用户的使用体验。According to the calibration method of the optical axis angle of the embodiment of the present invention, by obtaining the first object distance value of the first camera, and determining the optical axis angle sampling value of the dual camera device by the optical axis angle calculation formula, to complete the optical The calibration process of the included angle of the optical axis improves the calibration efficiency of the included angle of the optical axis, avoids problems such as inaccurate focusing caused by the deviation of the included angle of the optical axis, and improves the user experience.

具体地,确定以第一摄像头的镜心为原点的第一坐标系(其中,第一坐标系的y轴垂直于成像面,第一坐标系的x轴平行于成像面),以及一第二摄像头的镜心为原点的第二坐标系(其中,第二坐标系的y轴垂直于成像面,第二坐标系的x轴平行于成像面),光轴夹角计算公式是差值、双摄像头的参数(等效焦距和镜心距离等)、光轴夹角和物距值之间的等式关系,其中,成像点差值是两个成像点到对应的y轴的距离值之间的差值,更进一步地,在多次通过差值获得多个光轴夹角采样值后,计算其加权平均值作为光轴夹角,提高了光轴夹角校准的准确率。Specifically, determine the first coordinate system with the mirror center of the first camera as the origin (wherein, the y-axis of the first coordinate system is perpendicular to the imaging plane, and the x-axis of the first coordinate system is parallel to the imaging plane), and a second The mirror center of the camera is the second coordinate system of the origin (wherein, the y-axis of the second coordinate system is perpendicular to the imaging plane, and the x-axis of the second coordinate system is parallel to the imaging plane), and the formula for calculating the angle between the optical axes is difference, double The equation relationship between the parameters of the camera (equivalent focal length and mirror center distance, etc.), the angle between the optical axis and the object distance value, where the difference between the imaging points is the distance between the two imaging points and the corresponding y-axis Furthermore, after multiple sampling values of optical axis angles are obtained through the difference, the weighted average is calculated as the optical axis angle, which improves the accuracy of optical axis angle calibration.

另外,双摄像头设备的参数可以存储在寄存器中,或者微处理器的存储单元中,以保证快速读取上述参数进行光轴夹角的计算,同时,对第一物距值的获取过程可以采用单摄像头对焦方法,如采用闭环马达获取对焦后的物距值,保证了物距值的准确性和校正过程的可靠性。In addition, the parameters of the dual-camera device can be stored in the register, or in the storage unit of the microprocessor, so as to ensure that the above-mentioned parameters can be quickly read to calculate the angle between the optical axes. At the same time, the acquisition process of the first object distance value can be adopted The single-camera focusing method, such as using a closed-loop motor to obtain the object distance value after focusing, ensures the accuracy of the object distance value and the reliability of the calibration process.

根据本发明的一个实施例,优选地,获取第一物距值,包括以下具体步骤:获取预存储的所述镜头位移值和物距值的第一映射表,其中,所述物距值包括所述第一摄像头的第一物距值和所述第二摄像头的第二物距值;通过所述第一映射表获取所述镜头位移值对应的所述第一物距值。According to an embodiment of the present invention, preferably, obtaining the first object distance value includes the following specific steps: obtaining a pre-stored first mapping table of the lens displacement value and the object distance value, wherein the object distance value includes The first object distance value of the first camera and the second object distance value of the second camera; the first object distance value corresponding to the lens shift value is acquired through the first mapping table.

根据本发明的实施例的光轴夹角的校准方法,通过获取镜头位移值和映射表,可以快速获取第一物距值,进而根据物距值实现光轴夹角的校准,技术过程简单,提高了校准过程的效率,具体地,可以通过安装闭合马达,以实现在对焦后通过闭环马达快速获取镜头位移值。According to the method for calibrating the included angle of the optical axis in the embodiment of the present invention, by obtaining the lens displacement value and the mapping table, the first object distance value can be quickly obtained, and then the calibration of the included angle of the optical axis can be realized according to the object distance value. The technical process is simple, The efficiency of the calibration process is improved. Specifically, a closed-loop motor can be installed to achieve fast acquisition of the lens shift value through the closed-loop motor after focusing.

根据本发明的一个实施例,优选地,在对被拍摄物体的任一特征点进行对焦之前,还包括以下具体步骤:存储所述双摄像头设备的参数,其中,所述参数包括所述双摄像头设备的等效焦距值和所述第一摄像头中心点和所述第二摄像头中心点之间的镜心距离。According to an embodiment of the present invention, preferably, before focusing on any feature point of the object to be photographed, the following specific steps are further included: storing the parameters of the dual camera device, wherein the parameters include the The equivalent focal length value of the device and the mirror center distance between the center point of the first camera and the center point of the second camera.

根据本发明的实施例的光轴夹角的校准方法,通过存储等效焦距值和镜心距离等参数,可以将上述参数直接用于光轴夹角的计算,进而有效地提高校准光轴夹角的效率和准确率。According to the method for calibrating the angle of the optical axis in the embodiment of the present invention, by storing parameters such as the equivalent focal length value and the distance between the mirror centers, the above parameters can be directly used in the calculation of the angle of the optical axis, thereby effectively improving the calibration of the optical axis angle. corner efficiency and accuracy.

根据本发明的一个实施例,优选地,以x1表征所述第一成像点坐标值,以x2表征所述第二成像点坐标值,以L表征所述物距值,所述双摄像头设备的参数包括镜心距离d和等效焦距值f,则所述光轴夹角计算公式,具体包括: According to an embodiment of the present invention, preferably, the coordinate value of the first imaging point is represented by x1, the coordinate value of the second imaging point is represented by x2, the object distance value is represented by L, and the dual camera device The parameters include the mirror center distance d and the equivalent focal length value f, and the calculation formula for the included angle of the optical axis specifically includes:

根据本发明的实施例的光轴夹角的校准方法,通过光学几何关系创建上述光轴夹角计算公式,具体地,通过特征点所在的三角形和成像点所在的三角形之间的相似关系,创建了上述光轴夹角计算公式,也即通过成像点确定了光轴夹角采样值,更进一步地,通过多次对特征点的对焦,获取光轴夹角采样值的加权平均值等,更满足光轴夹角的计算精度要求。According to the method for calibrating the included angle of the optical axis according to the embodiment of the present invention, the above calculation formula of the included angle of the optical axis is created through the optical geometric relationship, specifically, through the similarity relationship between the triangle where the feature point is located and the triangle where the imaging point is located, create The above formula for calculating the included angle of the optical axis is determined, that is, the sampling value of the included angle of the optical axis is determined by the imaging point. It meets the calculation accuracy requirements of the optical axis angle.

根据本发明的一个实施例,优选地,确定所述双摄像头设备的光轴夹角,包括以下具体步骤:计算所述全部特征点的光轴夹角采样值的加权平均值;将所述加权平均值存储至所述双摄像头设备的微处理器中,以作为所述双摄像头设备的光轴夹角。According to an embodiment of the present invention, preferably, determining the optical axis angle of the dual-camera device includes the following specific steps: calculating a weighted average of the optical axis angle sampling values of all the feature points; The average value is stored in the microprocessor of the dual-camera device as an included angle of the optical axes of the dual-camera device.

根据本发明的实施例的光轴夹角的校准方法,通过计算所述光轴夹角采样值的加权平均值作为光轴夹角,减小了校准过程中的误差,提高了光轴夹角的校准的准确度。According to the method for calibrating the included angle of the optical axis in the embodiment of the present invention, by calculating the weighted average value of the sampled values of the included angle of the optical axis as the included angle of the optical axis, the error in the calibration process is reduced, and the included angle of the optical axis is improved. the calibration accuracy.

根据本发明的一个实施例,优选地,还包括:在确定所述光轴夹角后,以所述第二成像点坐标值与所述第一成像点坐标值之间的差值作为成像点差值,通过所述光轴夹角计算公式创建所述成像点差值与所述物距值之间的第二映射表。According to an embodiment of the present invention, preferably, further comprising: after determining the included angle of the optical axis, using the difference between the coordinate value of the second imaging point and the coordinate value of the first imaging point as the imaging point A difference value, creating a second mapping table between the imaging point difference value and the object distance value through the optical axis included angle calculation formula.

根据本发明的实施例的光轴夹角的校准方法,通过创建第二映射表,为双摄像头设备的实际对焦过程提供了数据依据,具体地,并且通过对光轴夹角的不断修正,及时对第二映射表进行修正,可以在实际对焦过程中,通过成像点的差值,快速确定物距值,进而完成对焦过程。According to the method for calibrating the included angle of the optical axis according to the embodiment of the present invention, by creating the second mapping table, data basis is provided for the actual focusing process of the dual-camera device, specifically, through continuous correction of the included angle of the optical axis, timely Correcting the second mapping table can quickly determine the object distance value through the difference of imaging points in the actual focusing process, and then complete the focusing process.

根据本发明的第二方面的实施例,提出了一种对焦方法,包括:获取被拍摄物的任一特征点在第一摄像头上的第三成像点坐标值;获取所述特征点在所述第二摄像头上的第四成像点坐标值;以所述第四成像点坐标值与所述第三成像点坐标值之差作为所述成像点差值,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值;根据所述第二物距值和所述第一映射表确定所述镜头位移值,以完成第一次对焦。According to an embodiment of the second aspect of the present invention, a focusing method is proposed, including: acquiring the third imaging point coordinate value of any feature point of the subject on the first camera; acquiring the feature point at the The fourth imaging point coordinate value on the second camera; using the difference between the fourth imaging point coordinate value and the third imaging point coordinate value as the imaging point difference, according to the imaging point difference, calibrated The included angle of the optical axis determines the second object distance value; the lens shift value is determined according to the second object distance value and the first mapping table, so as to complete the first focusing.

根据本发明的实施例的对焦方法,通过创建像距值和校准位移值之间的校准映射表,可以直接根据像距值确定第二摄像头的校准位移值,减少了计算的过程,其中,在对光轴夹角进行校准后,根据光轴夹角和上述计算公式,通过多次测得像距值,可以创建校准映射表,进而在实际对焦过程中,只需要获得像距值,即可快速确定第二摄像头的校准位移值。According to the focusing method of the embodiment of the present invention, by creating a calibration mapping table between the image distance value and the calibration displacement value, the calibration displacement value of the second camera can be directly determined according to the image distance value, reducing the calculation process, wherein, in After calibrating the included angle of the optical axis, according to the included angle of the optical axis and the above calculation formula, the calibration mapping table can be created by measuring the image distance value multiple times, and then in the actual focusing process, only the image distance value needs to be obtained. Quickly determine the calibration displacement value for the second camera.

根据本发明的一个实施例,优选地,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值,包括以下具体步骤:将所述成像点差值、校准的光轴夹角和所述双摄像头设备的参数代入所述光轴夹角计算公式,以获取所述第二物距值。According to an embodiment of the present invention, preferably, determining the second object distance value according to the imaging point difference value and the calibrated optical axis angle includes the following specific steps: combining the imaging point difference value, calibration The included angle of the optical axis and the parameters of the dual-camera device are substituted into the calculation formula of the included angle of the optical axis to obtain the second object distance value.

根据本发明的实施例的对焦方法,通过光轴夹角计算公式获得第二物距值,提高了第二摄像头的对焦的准确度,具体地,在对光轴夹角进行校准后,根据光轴夹角计算公式,通过将多次测得成像点的差值的平均值、校准的光轴夹角和双摄像头设备的参数代入光轴夹角计算公式,可以准确获得第二摄像头的物距值,并根据物距值和第二映射表快速确定第二摄像头的校准位移值。According to the focusing method of the embodiment of the present invention, the second object distance value is obtained through the optical axis angle calculation formula, which improves the focusing accuracy of the second camera. Specifically, after the optical axis angle is calibrated, according to the optical The calculation formula of the included angle of the axis, by substituting the average value of the difference between the imaging points measured multiple times, the calibrated optical axis included angle and the parameters of the dual camera device into the calculated formula of the included optical axis angle, the object distance of the second camera can be accurately obtained value, and quickly determine the calibration displacement value of the second camera according to the object distance value and the second mapping table.

根据本发明的一个实施例,优选地,根据所述成像点差值、校准的所述光轴夹角确定所述第二摄像头的第二物距值,包括以下具体步骤:根据所述成像点差值和所述第二映射表确定所述成像点差值对应的所述第二物距值。According to an embodiment of the present invention, preferably, determining the second object distance value of the second camera according to the imaging point difference value and the calibrated optical axis angle includes the following specific steps: according to the imaging point The difference value and the second mapping table determine the second object distance value corresponding to the imaging point difference value.

根据本发明的实施例的对焦方法,通过获取第二物距值和第二摄像头的镜头位移值的映射关系,提高了第二摄像头的对焦效率和准确率,控制第二摄像头根据镜头位移值完成对焦过程。According to the focusing method of the embodiment of the present invention, by obtaining the mapping relationship between the second object distance value and the lens displacement value of the second camera, the focusing efficiency and accuracy of the second camera are improved, and the second camera is controlled to complete the process according to the lens displacement value. Focusing process.

根据本发明的一个实施例,优选地,还包括:在完成第一次对焦后,采用对比度对焦方法或相位对焦方法完成第二次对焦。According to an embodiment of the present invention, preferably, further comprising: after completing the first focusing, using a contrast focusing method or a phase focusing method to complete the second focusing.

根据本发明的实施例的对焦方法,通过完成第一次对焦后,进行第二次对焦,实现了更精准的对焦效果,其中,采用对比度对焦的方式是根据焦点处画面的对比度变化,寻找对比度最大时的镜头位置,也就是准确对焦的位置,而相位对焦方法是在准确焦点位置的时候,相位检测系统可以准确的获知当前已经处于合焦状态。According to the focusing method of the embodiment of the present invention, after the first focusing is completed, the second focusing is performed to achieve a more accurate focusing effect. The maximum lens position is the exact focus position, and the phase focus method is when the focus position is accurate, the phase detection system can accurately know that it is currently in focus.

根据本发明的第三方面的实施例,提出了一种光轴夹角的校准系统,包括:获取单元,用于对被拍摄物体的任一特征点进行对焦,获取第一物距值;确定单元,用于确定所述特征点在所述第一摄像头上的第一成像点坐标值;所述确定单元还用于,确定所述特征点在所述第二摄像头上的第二成像点坐标值;所述确定单元还用于,根据所述第一坐标值成像点坐标值、所述第二坐标值成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。According to the embodiment of the third aspect of the present invention, a calibration system for the included angle of the optical axis is proposed, including: an acquisition unit, configured to focus on any feature point of the object to be photographed, and acquire the first object distance value; determine A unit configured to determine a first imaging point coordinate value of the feature point on the first camera; the determining unit is also configured to determine a second imaging point coordinate value of the feature point on the second camera value; the determining unit is also used to, according to the coordinate value of the imaging point of the first coordinate value, the coordinate value of the imaging point of the second coordinate value, the pre-stored parameters of the dual camera device and the first object distance value and a pre-stored optical axis angle calculation formula to determine the optical axis angle of the dual-camera device.

根据本发明的实施例的光轴夹角的校准系统,通过获取第一摄像头的第一物距值,并由光轴夹角计算公式确定双摄像头设备的光轴夹角采样值,以完成光轴夹角的校准过程,提高了光轴夹角的校准效率,避免了光轴夹角的偏差造成的对焦不准确等问题,提升了用户的使用体验。According to the optical axis angle calibration system of the embodiment of the present invention, by obtaining the first object distance value of the first camera, and determining the optical axis angle sampling value of the dual camera device by the optical axis angle calculation formula, to complete the optical The calibration process of the included angle of the optical axis improves the calibration efficiency of the included angle of the optical axis, avoids problems such as inaccurate focusing caused by the deviation of the included angle of the optical axis, and improves the user experience.

具体地,确定以第一摄像头的镜心为原点的第一坐标系(其中,第一坐标系的y轴垂直于成像面,第一坐标系的x轴平行于成像面),以及一第二摄像头的镜心为原点的第二坐标系(其中,第二坐标系的y轴垂直于成像面,第二坐标系的x轴平行于成像面),光轴夹角计算公式是差值、双摄像头的参数(等效焦距和镜心距离等)、光轴夹角和物距值之间的等式关系,其中,成像点差值是两个成像点到对应的y轴的距离值之间的差值,更进一步地,在多次通过差值获得多个光轴夹角采样值后,计算其加权平均值作为光轴夹角,提高了光轴夹角校准的准确率。Specifically, determine the first coordinate system with the mirror center of the first camera as the origin (wherein, the y-axis of the first coordinate system is perpendicular to the imaging plane, and the x-axis of the first coordinate system is parallel to the imaging plane), and a second The mirror center of the camera is the second coordinate system of the origin (wherein, the y-axis of the second coordinate system is perpendicular to the imaging plane, and the x-axis of the second coordinate system is parallel to the imaging plane), and the formula for calculating the angle between the optical axes is difference, double The equation relationship between the parameters of the camera (equivalent focal length and mirror center distance, etc.), the angle between the optical axis and the object distance value, where the difference between the imaging points is the distance between the two imaging points and the corresponding y-axis Furthermore, after multiple sampling values of optical axis angles are obtained through the difference, the weighted average is calculated as the optical axis angle, which improves the accuracy of optical axis angle calibration.

另外,双摄像头设备的参数可以存储在寄存器中,或者微处理器的存储单元中,以保证快速读取上述参数进行光轴夹角的计算,同时,对第一物距值的获取过程可以采用单摄像头对焦方法,如采用闭环马达获取对焦后的物距值,保证了物距值的准确性和校正过程的可靠性。In addition, the parameters of the dual-camera device can be stored in the register, or in the storage unit of the microprocessor, so as to ensure that the above-mentioned parameters can be quickly read to calculate the angle between the optical axes. At the same time, the acquisition process of the first object distance value can be adopted The single-camera focusing method, such as using a closed-loop motor to obtain the object distance value after focusing, ensures the accuracy of the object distance value and the reliability of the calibration process.

根据本发明的一个实施例,优选地,所述获取单元还用于,获取预存储的所述镜头位移值和物距值的第一映射表,其中,所述物距值包括所述第一摄像头的第一物距值和所述第二摄像头的第二物距值;以及用于通过所述第一映射表获取所述镜头位移值对应的所述第一物距值。According to an embodiment of the present invention, preferably, the obtaining unit is further configured to obtain a pre-stored first mapping table of the lens shift value and the object distance value, wherein the object distance value includes the first The first object distance value of the camera and the second object distance value of the second camera; and used for obtaining the first object distance value corresponding to the lens shift value through the first mapping table.

根据本发明的实施例的光轴夹角的校准系统,通过获取镜头位移值和映射表,可以快速获取第一物距值,进而根据物距值实现光轴夹角的校准,技术过程简单,提高了校准过程的效率,具体地,可以通过安装闭合马达,以实现在对焦后通过闭环马达快速获取镜头位移值。According to the optical axis angle calibration system of the embodiment of the present invention, by acquiring the lens displacement value and the mapping table, the first object distance value can be quickly obtained, and then the optical axis angle calibration can be realized according to the object distance value, the technical process is simple, The efficiency of the calibration process is improved. Specifically, a closed-loop motor can be installed to achieve fast acquisition of the lens shift value through the closed-loop motor after focusing.

根据本发明的一个实施例,优选地,还包括:存储单元,用于存储所述双摄像头设备的参数,其中,所述参数包括所述双摄像头设备的等效焦距值和所述第一摄像头中心点和所述第二摄像头中心点之间的镜心距离。According to an embodiment of the present invention, preferably, it further includes: a storage unit configured to store parameters of the dual-camera device, wherein the parameters include the equivalent focal length value of the dual-camera device and the first camera The distance between the center point and the center point of the second camera.

根据本发明的实施例的光轴夹角的校准系统,通过存储等效焦距值和镜心距离等参数,可以将上述参数直接用于光轴夹角的计算,进而有效地提高校准光轴夹角的效率和准确率。According to the optical axis angle calibration system of the embodiment of the present invention, by storing parameters such as equivalent focal length and mirror center distance, the above parameters can be directly used in the calculation of the optical axis angle, thereby effectively improving the calibration optical axis angle. corner efficiency and accuracy.

根据本发明的一个实施例,优选地,以x1表征所述第一成像点坐标值,以x2表征所述第二成像点坐标值,以L表征所述物距值,所述双摄像头设备的参数包括镜心距离d和等效焦距值f,则所述光轴夹角计算公式,具体包括: According to an embodiment of the present invention, preferably, the coordinate value of the first imaging point is represented by x1, the coordinate value of the second imaging point is represented by x2, the object distance value is represented by L, and the dual camera device The parameters include the mirror center distance d and the equivalent focal length value f, and the calculation formula for the included angle of the optical axis specifically includes:

根据本发明的实施例的光轴夹角的校准系统,通过光学几何关系创建上述光轴夹角计算公式,具体地,通过特征点所在的三角形和成像点所在的三角形之间的相似关系,创建了上述光轴夹角计算公式,也即通过成像点确定了光轴夹角采样值,更进一步地,通过多次对特征点的对焦,获取光轴夹角采样值的加权平均值等,更满足光轴夹角的计算精度要求。According to the optical axis angle calibration system of the embodiment of the present invention, the above optical axis angle calculation formula is established through the optical geometric relationship, specifically, through the similarity relationship between the triangle where the feature point is located and the triangle where the imaging point is located, create The above formula for calculating the included angle of the optical axis is determined, that is, the sampling value of the included angle of the optical axis is determined by the imaging point. It meets the calculation accuracy requirements of the optical axis angle.

根据本发明的一个实施例,优选地,还包括:计算单元,用于计算所述全部特征点的光轴夹角采样值的加权平均值;所述存储单元还用于,将所述加权平均值存储至所述双摄像头设备的微处理器中,以作为所述双摄像头设备的光轴夹角。According to an embodiment of the present invention, preferably, further comprising: a calculation unit, configured to calculate a weighted average value of the optical axis angle sampling values of all feature points; the storage unit is also configured to calculate the weighted average The value is stored in the microprocessor of the dual-camera device as an included angle of the optical axis of the dual-camera device.

根据本发明的实施例的光轴夹角的校准系统,通过计算所述光轴夹角采样值的加权平均值作为光轴夹角,减小了校准过程中的误差,提高了光轴夹角的校准的准确度。According to the optical axis angle calibration system of the embodiment of the present invention, by calculating the weighted average of the optical axis angle sampling values as the optical axis angle, the error in the calibration process is reduced, and the optical axis angle is improved. the calibration accuracy.

根据本发明的一个实施例,优选地,还包括:创建单元,用于在确定所述光轴夹角后,以所述第二成像点坐标值与所述第一成像点坐标值之间的差值作为成像点差值,通过所述光轴夹角计算公式创建所述成像点差值与所述物距值之间的第二映射表。According to an embodiment of the present invention, preferably, further comprising: a creation unit, configured to use the coordinate value between the second imaging point and the first imaging point after determining the included angle of the optical axis The difference is used as an imaging point difference, and a second mapping table between the imaging point difference and the object distance value is created through the optical axis angle calculation formula.

根据本发明的实施例的光轴夹角的校准系统,通过创建第二映射表,为双摄像头设备的实际对焦过程提供了数据依据,具体地,并且通过对光轴夹角的不断修正,及时对第二映射表进行修正,可以在实际对焦过程中,通过成像点的差值,快速确定物距值,进而完成对焦过程。The optical axis angle calibration system according to the embodiment of the present invention provides a data basis for the actual focusing process of the dual-camera device by creating a second mapping table, specifically, and through continuous correction of the optical axis angle, timely Correcting the second mapping table can quickly determine the object distance value through the difference of imaging points in the actual focusing process, and then complete the focusing process.

根据本发明的第四方面的实施例,提出了一种对焦系统,包括:获取单元,用于获取被拍摄物的任一特征点在第一摄像头上的第三成像点坐标值;所述获取单元还用于,获取所述特征点在所述第二摄像头上的第四成像点坐标值;所述对焦系统,还包括:确定单元,用于以所述第四成像点坐标值与所述第三成像点坐标值之差作为所述成像点差值,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值;对焦单元,用于根据所述第二物距值和所述第一映射表确定所述镜头位移值,以完成第一次对焦。According to an embodiment of the fourth aspect of the present invention, a focusing system is proposed, including: an acquisition unit, configured to acquire the coordinate value of a third imaging point of any feature point of the subject on the first camera; the acquisition The unit is also used to obtain the coordinate value of the fourth imaging point of the feature point on the second camera; the focusing system further includes: a determination unit used to combine the coordinate value of the fourth imaging point with the The difference between the coordinate values of the third imaging point is used as the difference value of the imaging point, and the second object distance value is determined according to the difference value of the imaging point and the calibrated optical axis angle; The second object distance value and the first mapping table determine the lens shift value to complete the first focusing.

根据本发明的实施例的对焦系统,通过创建像距值和校准位移值之间的校准映射表,可以直接根据像距值确定第二摄像头的校准位移值,减少了计算的过程,其中,在对光轴夹角进行校准后,根据光轴夹角和上述计算公式,通过多次测得像距值,可以创建校准映射表,进而在实际对焦过程中,只需要获得像距值,即可快速确定第二摄像头的校准位移值。According to the focus system of the embodiment of the present invention, by creating a calibration mapping table between the image distance value and the calibration displacement value, the calibration displacement value of the second camera can be directly determined according to the image distance value, reducing the calculation process, wherein, in After calibrating the included angle of the optical axis, according to the included angle of the optical axis and the above calculation formula, the calibration mapping table can be created by measuring the image distance value multiple times, and then in the actual focusing process, only the image distance value needs to be obtained. Quickly determine the calibration displacement value for the second camera.

根据本发明的一个实施例,优选地,所述确定单元还用于,将所述成像点差值、校准的光轴夹角和所述双摄像头设备的参数代入所述光轴夹角计算公式,以获取所述第二物距值。According to an embodiment of the present invention, preferably, the determination unit is further configured to substitute the imaging point difference, the calibrated optical axis angle and the parameters of the dual camera device into the optical axis angle calculation formula , to obtain the second object distance value.

根据本发明的实施例的对焦系统,通过光轴夹角计算公式获得第二物距值,提高了第二摄像头的对焦的准确度,具体地,在对光轴夹角进行校准后,根据光轴夹角计算公式,通过将多次测得成像点的差值的平均值、校准的光轴夹角和双摄像头设备的参数代入光轴夹角计算公式,可以准确获得第二摄像头的物距值,并根据物距值和第二映射表快速确定第二摄像头的校准位移值。According to the focus system of the embodiment of the present invention, the second object distance value is obtained through the calculation formula of the included angle of the optical axis, which improves the focusing accuracy of the second camera. Specifically, after the included angle of the optical axis is calibrated, according to the The calculation formula of the included angle of the axis, by substituting the average value of the difference between the imaging points measured multiple times, the calibrated optical axis included angle and the parameters of the dual camera device into the calculated formula of the included optical axis angle, the object distance of the second camera can be accurately obtained value, and quickly determine the calibration displacement value of the second camera according to the object distance value and the second mapping table.

根据本发明的一个实施例,优选地,所述确定单元还用于,根据所述成像点差值和所述第二映射表确定所述成像点差值对应的所述第二物距值。According to an embodiment of the present invention, preferably, the determining unit is further configured to determine the second object distance corresponding to the imaging point difference according to the imaging point difference and the second mapping table.

根据本发明的实施例的对焦系统,通过获取第二物距值和第二摄像头的镜头位移值的映射关系,提高了第二摄像头的对焦效率和准确率,控制第二摄像头根据镜头位移值完成对焦过程。According to the focusing system of the embodiment of the present invention, by obtaining the mapping relationship between the second object distance value and the lens displacement value of the second camera, the focusing efficiency and accuracy of the second camera are improved, and the second camera is controlled to complete the process according to the lens displacement value. Focusing process.

根据本发明的一个实施例,优选地,所述对焦单元还用于,在完成第一次对焦后,采用对比度对焦方法或相位对焦方法完成第二次对焦。According to an embodiment of the present invention, preferably, the focusing unit is further configured to, after completing the first focusing, use a contrast focusing method or a phase focusing method to complete the second focusing.

根据本发明的实施例的对焦系统,通过完成第一次对焦后,进行第二次对焦,实现了更精准的对焦效果,其中,采用对比度对焦的方式是根据焦点处画面的对比度变化,寻找对比度最大时的镜头位置,也就是准确对焦的位置,而相位对焦方法是在准确焦点位置的时候,相位检测系统可以准确的获知当前已经处于合焦状态。According to the focusing system of the embodiment of the present invention, a more accurate focusing effect is achieved by performing the second focusing after the first focusing. The maximum lens position is the exact focus position, and the phase focus method is when the focus position is accurate, the phase detection system can accurately know that it is currently in focus.

根据本发明的第五方面的实施例,提出了一种双摄像头设备,包括:如上述任一项技术方案所述的光轴夹角的校准系统或如上述任一项技术方案所述的对焦系统。According to an embodiment of the fifth aspect of the present invention, a dual-camera device is proposed, including: the optical axis angle calibration system described in any of the above technical solutions or the focusing system described in any of the above technical solutions system.

通过以上技术方案,可以实现快速对焦和精准对焦,同时,实现了对双摄像头设备的光轴夹角的自校准,避免了因光轴夹角的偏差造成对焦误差,提升了用户在拍摄过程的使用体验。Through the above technical solutions, fast focusing and precise focusing can be achieved. At the same time, the self-calibration of the optical axis angle of the dual-camera device is realized, which avoids focusing errors caused by the deviation of the optical axis angle, and improves the user's control during the shooting process. Use experience.

附图说明Description of drawings

图1示出了根据本发明的一个实施例的光轴夹角的校准方法的示意流程图;Fig. 1 shows a schematic flowchart of a method for calibrating an included angle of an optical axis according to an embodiment of the present invention;

图2示出了根据本发明的一个实施例的对焦方法的示意流程图;FIG. 2 shows a schematic flowchart of a focusing method according to an embodiment of the present invention;

图3示出了根据本发明的一个实施例的光轴夹角的校准系统的示意框图;Fig. 3 shows a schematic block diagram of a calibration system for an included angle of an optical axis according to an embodiment of the present invention;

图4示出了根据本发明的一个实施例的对焦系统的示意框图;Fig. 4 shows a schematic block diagram of a focusing system according to an embodiment of the present invention;

图5示出了根据本发明的一个实施例的双摄像头设备的示意框图;Fig. 5 shows a schematic block diagram of a dual camera device according to an embodiment of the present invention;

图6示出了根据本发明的一个实施例的双摄像头设备的坐标系示意图;FIG. 6 shows a schematic diagram of a coordinate system of a dual-camera device according to an embodiment of the present invention;

图7示出了根据本发明的实施例的拍摄设备的光路示意图(光轴夹角为零);FIG. 7 shows a schematic diagram of an optical path of a photographing device according to an embodiment of the present invention (the included angle of the optical axis is zero);

图8示出了根据本发明的实施例的拍摄设备的光路示意图(一个光轴发生偏转);FIG. 8 shows a schematic diagram of an optical path of a photographing device according to an embodiment of the present invention (one optical axis is deflected);

图9示出了根据本发明的实施例的拍摄设备的光路示意图(;两个光轴发生偏转)。FIG. 9 shows a schematic diagram of an optical path of a photographing device according to an embodiment of the present invention (two optical axes are deflected).

具体实施方式detailed description

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.

图1示出了根据本发明的一个实施例的光轴夹角的校准方法的示意流程图。Fig. 1 shows a schematic flowchart of a method for calibrating an included angle of an optical axis according to an embodiment of the present invention.

如图1所示,根据本发明的一个实施例的光轴夹角的校准方法,包括:步骤102,对被拍摄物体的任一特征点进行对焦,获取第一物距值;步骤104,确定所述特征点在所述第一摄像头上的第一成像点坐标值;步骤106,确定所述特征点在所述第二摄像头上的第二成像点坐标值;步骤108,根据所述第一坐标值成像点坐标值、所述第二坐标值成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。As shown in Figure 1, the method for calibrating the included angle of the optical axis according to an embodiment of the present invention includes: step 102, focusing on any feature point of the object to be photographed, and obtaining the first object distance value; step 104, determining The first imaging point coordinate value of the feature point on the first camera; Step 106, determine the second imaging point coordinate value of the feature point on the second camera; Step 108, according to the first The coordinate value of the imaging point of the coordinate value, the coordinate value of the imaging point of the second coordinate value, the pre-stored parameters of the dual-camera device, the first object distance value, and the pre-stored optical axis angle calculation formula determine the dual The included angle of the optical axis of the camera device.

根据本发明的实施例的光轴夹角的校准方法,通过获取第一摄像头的第一物距值,并由光轴夹角计算公式确定双摄像头设备的光轴夹角采样值,以完成光轴夹角的校准过程,提高了光轴夹角的校准效率,避免了光轴夹角的偏差造成的对焦不准确等问题,提升了用户的使用体验。According to the calibration method of the optical axis angle of the embodiment of the present invention, by obtaining the first object distance value of the first camera, and determining the optical axis angle sampling value of the dual camera device by the optical axis angle calculation formula, to complete the optical The calibration process of the included angle of the optical axis improves the calibration efficiency of the included angle of the optical axis, avoids problems such as inaccurate focusing caused by the deviation of the included angle of the optical axis, and improves the user experience.

具体地,确定以第一摄像头的镜心为原点的第一坐标系(其中,第一坐标系的y轴垂直于成像面,第一坐标系的x轴平行于成像面),以及一第二摄像头的镜心为原点的第二坐标系(其中,第二坐标系的y轴垂直于成像面,第二坐标系的x轴平行于成像面),光轴夹角计算公式是差值、双摄像头的参数(等效焦距和镜心距离等)、光轴夹角和物距值之间的等式关系,其中,成像点差值是两个成像点到对应的y轴的距离值之间的差值,更进一步地,在多次通过差值获得多个光轴夹角采样值后,计算其加权平均值作为光轴夹角,提高了光轴夹角校准的准确率。Specifically, determine the first coordinate system with the mirror center of the first camera as the origin (wherein, the y-axis of the first coordinate system is perpendicular to the imaging plane, and the x-axis of the first coordinate system is parallel to the imaging plane), and a second The mirror center of the camera is the second coordinate system of the origin (wherein, the y-axis of the second coordinate system is perpendicular to the imaging plane, and the x-axis of the second coordinate system is parallel to the imaging plane), and the formula for calculating the angle between the optical axes is difference, double The equation relationship between the parameters of the camera (equivalent focal length and mirror center distance, etc.), the angle between the optical axis and the object distance value, where the difference between the imaging points is the distance between the two imaging points and the corresponding y-axis Furthermore, after multiple sampling values of optical axis angles are obtained through the difference, the weighted average is calculated as the optical axis angle, which improves the accuracy of optical axis angle calibration.

另外,双摄像头设备的参数可以存储在寄存器中,或者微处理器的存储单元中,以保证快速读取上述参数进行光轴夹角的计算,同时,对第一物距值的获取过程可以采用单摄像头对焦方法,如采用闭环马达获取对焦后的物距值,保证了物距值的准确性和校正过程的可靠性。In addition, the parameters of the dual-camera device can be stored in the register, or in the storage unit of the microprocessor, so as to ensure that the above-mentioned parameters can be quickly read to calculate the angle between the optical axes. At the same time, the acquisition process of the first object distance value can be adopted The single-camera focusing method, such as using a closed-loop motor to obtain the object distance value after focusing, ensures the accuracy of the object distance value and the reliability of the calibration process.

根据本发明的一个实施例,优选地,获取第一物距值,包括以下具体步骤:获取预存储的所述镜头位移值和物距值的第一映射表,其中,所述物距值包括所述第一摄像头的第一物距值和所述第二摄像头的第二物距值;通过所述第一映射表获取所述镜头位移值对应的所述第一物距值。According to an embodiment of the present invention, preferably, obtaining the first object distance value includes the following specific steps: obtaining a pre-stored first mapping table of the lens displacement value and the object distance value, wherein the object distance value includes The first object distance value of the first camera and the second object distance value of the second camera; the first object distance value corresponding to the lens shift value is acquired through the first mapping table.

根据本发明的实施例的光轴夹角的校准方法,通过获取镜头位移值和映射表,可以快速获取第一物距值,进而根据物距值实现光轴夹角的校准,技术过程简单,提高了校准过程的效率,具体地,可以通过安装闭合马达,以实现在对焦后通过闭环马达快速获取镜头位移值。According to the method for calibrating the included angle of the optical axis in the embodiment of the present invention, by obtaining the lens displacement value and the mapping table, the first object distance value can be quickly obtained, and then the calibration of the included angle of the optical axis can be realized according to the object distance value. The technical process is simple, The efficiency of the calibration process is improved. Specifically, a closed-loop motor can be installed to achieve fast acquisition of the lens shift value through the closed-loop motor after focusing.

根据本发明的一个实施例,优选地,在对被拍摄物体的任一特征点进行对焦之前,还包括以下具体步骤:存储所述双摄像头设备的参数,其中,所述参数包括所述双摄像头设备的等效焦距值和所述第一摄像头中心点和所述第二摄像头中心点之间的镜心距离。According to an embodiment of the present invention, preferably, before focusing on any feature point of the object to be photographed, the following specific steps are further included: storing the parameters of the dual camera device, wherein the parameters include the The equivalent focal length value of the device and the mirror center distance between the center point of the first camera and the center point of the second camera.

根据本发明的实施例的光轴夹角的校准方法,通过存储等效焦距值和镜心距离等参数,可以将上述参数直接用于光轴夹角的计算,进而有效地提高校准光轴夹角的效率和准确率。According to the method for calibrating the angle of the optical axis in the embodiment of the present invention, by storing parameters such as the equivalent focal length value and the distance between the mirror centers, the above parameters can be directly used in the calculation of the angle of the optical axis, thereby effectively improving the calibration of the optical axis angle. corner efficiency and accuracy.

根据本发明的一个实施例,优选地,以x1表征所述第一成像点坐标值,以x2表征所述第二成像点坐标值,以L表征所述物距值,所述双摄像头设备的参数包括镜心距离d和等效焦距值f,则所述光轴夹角计算公式,具体包括: According to an embodiment of the present invention, preferably, the coordinate value of the first imaging point is represented by x1, the coordinate value of the second imaging point is represented by x2, the object distance value is represented by L, and the dual camera device The parameters include the mirror center distance d and the equivalent focal length value f, and the calculation formula for the included angle of the optical axis specifically includes:

根据本发明的实施例的光轴夹角的校准方法,通过光学几何关系创建上述光轴夹角计算公式,具体地,通过特征点所在的三角形和成像点所在的三角形之间的相似关系,创建了上述光轴夹角计算公式,也即通过成像点确定了光轴夹角采样值,更进一步地,通过多次对特征点的对焦,获取光轴夹角采样值的加权平均值等,更满足光轴夹角的计算精度要求。According to the method for calibrating the included angle of the optical axis according to the embodiment of the present invention, the above calculation formula of the included angle of the optical axis is created through the optical geometric relationship, specifically, through the similarity relationship between the triangle where the feature point is located and the triangle where the imaging point is located, create The above formula for calculating the included angle of the optical axis is determined, that is, the sampling value of the included angle of the optical axis is determined by the imaging point. It meets the calculation accuracy requirements of the optical axis angle.

根据本发明的一个实施例,优选地,确定所述双摄像头设备的光轴夹角,包括以下具体步骤:计算所述全部特征点的光轴夹角采样值的加权平均值;将所述加权平均值存储至所述双摄像头设备的微处理器中,以作为所述双摄像头设备的光轴夹角。According to an embodiment of the present invention, preferably, determining the optical axis angle of the dual-camera device includes the following specific steps: calculating a weighted average of the optical axis angle sampling values of all the feature points; The average value is stored in the microprocessor of the dual-camera device as an included angle of the optical axes of the dual-camera device.

根据本发明的实施例的光轴夹角的校准方法,通过计算所述光轴夹角采样值的加权平均值作为光轴夹角,减小了校准过程中的误差,提高了光轴夹角的校准的准确度。According to the method for calibrating the included angle of the optical axis in the embodiment of the present invention, by calculating the weighted average value of the sampled values of the included angle of the optical axis as the included angle of the optical axis, the error in the calibration process is reduced, and the included angle of the optical axis is improved. the calibration accuracy.

根据本发明的一个实施例,优选地,还包括:在确定所述光轴夹角后,以所述第二成像点坐标值与所述第一成像点坐标值之间的差值作为成像点差值,通过所述光轴夹角计算公式创建所述成像点差值与所述物距值之间的第二映射表。According to an embodiment of the present invention, preferably, further comprising: after determining the included angle of the optical axis, using the difference between the coordinate value of the second imaging point and the coordinate value of the first imaging point as the imaging point A difference value, creating a second mapping table between the imaging point difference value and the object distance value through the optical axis included angle calculation formula.

根据本发明的实施例的光轴夹角的校准方法,通过创建第二映射表,为双摄像头设备的实际对焦过程提供了数据依据,具体地,并且通过对光轴夹角的不断修正,及时对第二映射表进行修正,可以在实际对焦过程中,通过成像点的差值,快速确定物距值,进而完成对焦过程。According to the method for calibrating the included angle of the optical axis according to the embodiment of the present invention, by creating the second mapping table, data basis is provided for the actual focusing process of the dual-camera device, specifically, through continuous correction of the included angle of the optical axis, timely Correcting the second mapping table can quickly determine the object distance value through the difference of imaging points in the actual focusing process, and then complete the focusing process.

图2示出了根据本发明的一个实施例的对焦方法的示意流程图。Fig. 2 shows a schematic flowchart of a focusing method according to an embodiment of the present invention.

如图2所示,根据本发明的一个实施例的对焦方法,包括:步骤202,获取被拍摄物的任一特征点在第一摄像头上的第三成像点坐标值;步骤204,获取所述特征点在所述第二摄像头上的第四成像点坐标值;步骤206,以所述第四成像点坐标值与所述第三成像点坐标值之差作为所述成像点差值,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值;步骤208,根据所述第二物距值和所述第一映射表确定所述镜头位移值,以完成第一次对焦。As shown in FIG. 2 , the focusing method according to an embodiment of the present invention includes: step 202, obtaining the third imaging point coordinate value of any feature point of the subject on the first camera; step 204, obtaining the The fourth imaging point coordinate value of the feature point on the second camera; step 206, using the difference between the fourth imaging point coordinate value and the third imaging point coordinate value as the imaging point difference, according to the The imaging point difference value and the calibrated optical axis angle determine the second object distance value; step 208, determine the lens shift value according to the second object distance value and the first mapping table, to complete Focusing for the first time.

根据本发明的实施例的对焦方法,通过创建像距值和校准位移值之间的校准映射表,可以直接根据像距值确定第二摄像头的校准位移值,减少了计算的过程,其中,在对光轴夹角进行校准后,根据光轴夹角和上述计算公式,通过多次测得像距值,可以创建校准映射表,进而在实际对焦过程中,只需要获得像距值,即可快速确定第二摄像头的校准位移值。According to the focusing method of the embodiment of the present invention, by creating a calibration mapping table between the image distance value and the calibration displacement value, the calibration displacement value of the second camera can be directly determined according to the image distance value, reducing the calculation process, wherein, in After calibrating the included angle of the optical axis, according to the included angle of the optical axis and the above calculation formula, the calibration mapping table can be created by measuring the image distance value multiple times, and then in the actual focusing process, only the image distance value needs to be obtained. Quickly determine the calibration displacement value for the second camera.

根据本发明的一个实施例,优选地,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值,包括以下具体步骤:将所述成像点差值、校准的光轴夹角和所述双摄像头设备的参数代入所述光轴夹角计算公式,以获取所述第二物距值。According to an embodiment of the present invention, preferably, determining the second object distance value according to the imaging point difference value and the calibrated optical axis angle includes the following specific steps: combining the imaging point difference value, calibration The included angle of the optical axis and the parameters of the dual-camera device are substituted into the calculation formula of the included angle of the optical axis to obtain the second object distance value.

根据本发明的实施例的对焦方法,通过光轴夹角计算公式获得第二物距值,提高了第二摄像头的对焦的准确度,具体地,在对光轴夹角进行校准后,根据光轴夹角计算公式,通过将多次测得成像点的差值的平均值、校准的光轴夹角和双摄像头设备的参数代入光轴夹角计算公式,可以准确获得第二摄像头的物距值,并根据物距值和第二映射表快速确定第二摄像头的校准位移值。According to the focusing method of the embodiment of the present invention, the second object distance value is obtained through the optical axis angle calculation formula, which improves the focusing accuracy of the second camera. Specifically, after the optical axis angle is calibrated, according to the optical The calculation formula of the included angle of the axis, by substituting the average value of the difference between the imaging points measured multiple times, the calibrated optical axis included angle and the parameters of the dual camera device into the calculated formula of the included optical axis angle, the object distance of the second camera can be accurately obtained value, and quickly determine the calibration displacement value of the second camera according to the object distance value and the second mapping table.

根据本发明的一个实施例,优选地,根据所述成像点差值、校准的所述光轴夹角确定所述第二摄像头的第二物距值,包括以下具体步骤:根据所述成像点差值和所述第二映射表确定所述成像点差值对应的所述第二物距值。According to an embodiment of the present invention, preferably, determining the second object distance value of the second camera according to the imaging point difference value and the calibrated optical axis angle includes the following specific steps: according to the imaging point The difference value and the second mapping table determine the second object distance value corresponding to the imaging point difference value.

根据本发明的实施例的对焦方法,通过获取第二物距值和第二摄像头的镜头位移值的映射关系,提高了第二摄像头的对焦效率和准确率,控制第二摄像头根据镜头位移值完成对焦过程。According to the focusing method of the embodiment of the present invention, by obtaining the mapping relationship between the second object distance value and the lens displacement value of the second camera, the focusing efficiency and accuracy of the second camera are improved, and the second camera is controlled to complete the process according to the lens displacement value. Focusing process.

根据本发明的一个实施例,优选地,还包括:在完成第一次对焦后,采用对比度对焦方法或相位对焦方法完成第二次对焦。According to an embodiment of the present invention, preferably, further comprising: after completing the first focusing, using a contrast focusing method or a phase focusing method to complete the second focusing.

根据本发明的实施例的对焦方法,通过完成第一次对焦后,进行第二次对焦,实现了更精准的对焦效果,其中,采用对比度对焦的方式是根据焦点处画面的对比度变化,寻找对比度最大时的镜头位置,也就是准确对焦的位置,而相位对焦方法是在准确焦点位置的时候,相位检测系统可以准确的获知当前已经处于合焦状态。According to the focusing method of the embodiment of the present invention, after the first focusing is completed, the second focusing is performed to achieve a more accurate focusing effect. The maximum lens position is the exact focus position, and the phase focus method is when the focus position is accurate, the phase detection system can accurately know that it is currently in focus.

图3示出了根据本发明的一个实施例的光轴夹角的校准系统的示意框图。Fig. 3 shows a schematic block diagram of a system for calibrating an included angle of an optical axis according to an embodiment of the present invention.

如图3所示,根据本发明的一个实施例的光轴夹角的校准系统300,包括:获取单元302,用于对被拍摄物体的任一特征点进行对焦,获取第一物距值;确定单元304,用于确定所述特征点在所述第一摄像头上的第一成像点坐标值;所述确定单元304还用于,确定所述特征点在所述第二摄像头上的第二成像点坐标值;所述确定单元304还用于,根据所述第一坐标值成像点坐标值、所述第二坐标值成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。As shown in FIG. 3 , the optical axis angle calibration system 300 according to an embodiment of the present invention includes: an acquisition unit 302, configured to focus on any feature point of the object to be photographed, and acquire the first object distance value; The determining unit 304 is configured to determine a first imaging point coordinate value of the feature point on the first camera; the determining unit 304 is also configured to determine a second imaging point of the feature point on the second camera. The coordinate value of the imaging point; the determining unit 304 is further configured to, according to the coordinate value of the imaging point of the first coordinate value, the coordinate value of the imaging point of the second coordinate value, the pre-stored parameters of the dual-camera device, and the The first object distance value and the pre-stored optical axis angle calculation formula determine the optical axis angle of the dual camera device.

根据本发明的实施例的光轴夹角的校准系统,通过获取第一摄像头的第一物距值,并由光轴夹角计算公式确定双摄像头设备的光轴夹角采样值,以完成光轴夹角的校准过程,提高了光轴夹角的校准效率,避免了光轴夹角的偏差造成的对焦不准确等问题,提升了用户的使用体验。According to the optical axis angle calibration system of the embodiment of the present invention, by obtaining the first object distance value of the first camera, and determining the optical axis angle sampling value of the dual camera device by the optical axis angle calculation formula, to complete the optical The calibration process of the included angle of the optical axis improves the calibration efficiency of the included angle of the optical axis, avoids problems such as inaccurate focusing caused by the deviation of the included angle of the optical axis, and improves the user experience.

具体地,确定以第一摄像头的镜心为原点的第一坐标系(其中,第一坐标系的y轴垂直于成像面,第一坐标系的x轴平行于成像面),以及一第二摄像头的镜心为原点的第二坐标系(其中,第二坐标系的y轴垂直于成像面,第二坐标系的x轴平行于成像面),光轴夹角计算公式是差值、双摄像头的参数(等效焦距和镜心距离等)、光轴夹角和物距值之间的等式关系,其中,成像点差值是两个成像点到对应的y轴的距离值之间的差值,更进一步地,在多次通过差值获得多个光轴夹角采样值后,计算其加权平均值作为光轴夹角,提高了光轴夹角校准的准确率。Specifically, determine the first coordinate system with the mirror center of the first camera as the origin (wherein, the y-axis of the first coordinate system is perpendicular to the imaging plane, and the x-axis of the first coordinate system is parallel to the imaging plane), and a second The mirror center of the camera is the second coordinate system of the origin (wherein, the y-axis of the second coordinate system is perpendicular to the imaging plane, and the x-axis of the second coordinate system is parallel to the imaging plane), and the formula for calculating the angle between the optical axes is difference, double The equation relationship between the parameters of the camera (equivalent focal length and mirror center distance, etc.), the angle between the optical axis and the object distance value, where the difference between the imaging points is the distance between the two imaging points and the corresponding y-axis Furthermore, after multiple sampling values of optical axis angles are obtained through the difference, the weighted average is calculated as the optical axis angle, which improves the accuracy of optical axis angle calibration.

另外,双摄像头设备的参数可以存储在寄存器中,或者微处理器的存储单元中,以保证快速读取上述参数进行光轴夹角的计算,同时,对第一物距值的获取过程可以采用单摄像头对焦方法,如采用闭环马达获取对焦后的物距值,保证了物距值的准确性和校正过程的可靠性。In addition, the parameters of the dual-camera device can be stored in the register, or in the storage unit of the microprocessor, so as to ensure that the above-mentioned parameters can be quickly read to calculate the angle between the optical axes. At the same time, the acquisition process of the first object distance value can be adopted The single-camera focusing method, such as using a closed-loop motor to obtain the object distance value after focusing, ensures the accuracy of the object distance value and the reliability of the calibration process.

根据本发明的一个实施例,优选地,所述获取单元302还用于,获取预存储的所述镜头位移值和物距值的第一映射表,其中,所述物距值包括所述第一摄像头的第一物距值和所述第二摄像头的第二物距值;以及用于通过所述第一映射表获取所述镜头位移值对应的所述第一物距值。According to an embodiment of the present invention, preferably, the acquiring unit 302 is further configured to acquire a pre-stored first mapping table of the lens shift value and the object distance value, wherein the object distance value includes the first A first object distance value of a camera and a second object distance value of the second camera; and used for obtaining the first object distance value corresponding to the lens shift value through the first mapping table.

根据本发明的实施例的光轴夹角的校准系统,通过获取镜头位移值和映射表,可以快速获取第一物距值,进而根据物距值实现光轴夹角的校准,技术过程简单,提高了校准过程的效率,具体地,可以通过安装闭合马达,以实现在对焦后通过闭环马达快速获取镜头位移值。According to the optical axis angle calibration system of the embodiment of the present invention, by acquiring the lens displacement value and the mapping table, the first object distance value can be quickly obtained, and then the optical axis angle calibration can be realized according to the object distance value, the technical process is simple, The efficiency of the calibration process is improved. Specifically, a closed-loop motor can be installed to achieve fast acquisition of the lens shift value through the closed-loop motor after focusing.

根据本发明的一个实施例,优选地,还包括:存储单元306,用于存储所述双摄像头设备的参数,其中,所述参数包括所述双摄像头设备的等效焦距值和所述第一摄像头中心点和所述第二摄像头中心点之间的镜心距离。According to an embodiment of the present invention, preferably, further comprising: a storage unit 306, configured to store parameters of the dual-camera device, wherein the parameters include the equivalent focal length value of the dual-camera device and the first The mirror center distance between the center point of the camera and the center point of the second camera.

根据本发明的实施例的光轴夹角的校准系统,通过存储等效焦距值和镜心距离等参数,可以将上述参数直接用于光轴夹角的计算,进而有效地提高校准光轴夹角的效率和准确率。According to the optical axis angle calibration system of the embodiment of the present invention, by storing parameters such as equivalent focal length and mirror center distance, the above parameters can be directly used in the calculation of the optical axis angle, thereby effectively improving the calibration optical axis angle. corner efficiency and accuracy.

根据本发明的一个实施例,优选地,以x1表征所述第一成像点坐标值,以x2表征所述第二成像点坐标值,以L表征所述物距值,所述双摄像头设备的参数包括镜心距离d和等效焦距值f,则所述光轴夹角计算公式,具体包括: According to an embodiment of the present invention, preferably, the coordinate value of the first imaging point is represented by x1, the coordinate value of the second imaging point is represented by x2, the object distance value is represented by L, and the dual camera device The parameters include the mirror center distance d and the equivalent focal length value f, and the calculation formula for the included angle of the optical axis specifically includes:

根据本发明的实施例的光轴夹角的校准系统,通过光学几何关系创建上述光轴夹角计算公式,具体地,通过特征点所在的三角形和成像点所在的三角形之间的相似关系,创建了上述光轴夹角计算公式,也即通过成像点确定了光轴夹角采样值,更进一步地,通过多次对特征点的对焦,获取光轴夹角采样值的加权平均值等,更满足光轴夹角的计算精度要求。According to the optical axis angle calibration system of the embodiment of the present invention, the above optical axis angle calculation formula is established through the optical geometric relationship, specifically, through the similarity relationship between the triangle where the feature point is located and the triangle where the imaging point is located, create The above formula for calculating the included angle of the optical axis is determined, that is, the sampling value of the included angle of the optical axis is determined by the imaging point. It meets the calculation accuracy requirements of the optical axis angle.

根据本发明的一个实施例,优选地,还包括:计算单元308,用于计算所述全部特征点的光轴夹角采样值的加权平均值;所述存储单元306还用于,将所述加权平均值存储至所述双摄像头设备的微处理器中,以作为所述双摄像头设备的光轴夹角。According to an embodiment of the present invention, preferably, further comprising: a calculation unit 308, configured to calculate a weighted average of the optical axis angle sampling values of all the feature points; the storage unit 306 is also configured to convert the The weighted average value is stored in the microprocessor of the dual-camera device as an included angle of the optical axis of the dual-camera device.

根据本发明的实施例的光轴夹角的校准系统,通过计算所述光轴夹角采样值的加权平均值作为光轴夹角,减小了校准过程中的误差,提高了光轴夹角的校准的准确度。According to the optical axis angle calibration system of the embodiment of the present invention, by calculating the weighted average of the optical axis angle sampling values as the optical axis angle, the error in the calibration process is reduced, and the optical axis angle is improved. the calibration accuracy.

根据本发明的一个实施例,优选地,还包括:创建单元310,用于在确定所述光轴夹角后,以所述第二成像点坐标值与所述第一成像点坐标值之间的差值作为成像点差值,通过所述光轴夹角计算公式创建所述成像点差值与所述物距值之间的第二映射表。According to an embodiment of the present invention, preferably, further comprising: a creation unit 310, configured to, after determining the included angle of the optical axis, use the coordinate value between the second imaging point and the first imaging point The difference between the imaging points is used as the imaging point difference, and a second mapping table between the imaging point difference and the object distance value is created through the optical axis angle calculation formula.

根据本发明的实施例的光轴夹角的校准系统,通过创建第二映射表,为双摄像头设备的实际对焦过程提供了数据依据,具体地,并且通过对光轴夹角的不断修正,及时对第二映射表进行修正,可以在实际对焦过程中,通过成像点的差值,快速确定物距值,进而完成对焦过程。The optical axis angle calibration system according to the embodiment of the present invention provides a data basis for the actual focusing process of the dual-camera device by creating a second mapping table, specifically, and through continuous correction of the optical axis angle, timely Correcting the second mapping table can quickly determine the object distance value through the difference of imaging points in the actual focusing process, and then complete the focusing process.

根据本发明的第四方面的实施例,提出了一种对焦系统400,包括:获取单元402,用于获取被拍摄物的任一特征点在第一摄像头上的第三成像点坐标值;所述获取单元402还用于,获取所述特征点在所述第二摄像头上的第四成像点坐标值;所述对焦系统400,还包括:确定单元404,用于以所述第四成像点坐标值与所述第三成像点坐标值之差作为所述成像点差值,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值;对焦单元406,用于根据所述第二物距值和所述第一映射表确定所述镜头位移值,以完成第一次对焦。According to the embodiment of the fourth aspect of the present invention, a focusing system 400 is proposed, including: an acquisition unit 402, configured to acquire the coordinate value of the third imaging point of any feature point of the subject on the first camera; The acquiring unit 402 is also used to acquire the fourth imaging point coordinate value of the feature point on the second camera; the focusing system 400 further includes: a determining unit 404 configured to use the fourth imaging point The difference between the coordinate value and the coordinate value of the third imaging point is used as the difference value of the imaging point, and the second object distance value is determined according to the difference value of the imaging point and the calibrated optical axis angle; the focusing unit 406, It is used to determine the lens shift value according to the second object distance value and the first mapping table, so as to complete the first focusing.

根据本发明的实施例的对焦系统,通过创建像距值和校准位移值之间的校准映射表,可以直接根据像距值确定第二摄像头的校准位移值,减少了计算的过程,其中,在对光轴夹角进行校准后,根据光轴夹角和上述计算公式,通过多次测得像距值,可以创建校准映射表,进而在实际对焦过程中,只需要获得像距值,即可快速确定第二摄像头的校准位移值。According to the focus system of the embodiment of the present invention, by creating a calibration mapping table between the image distance value and the calibration displacement value, the calibration displacement value of the second camera can be directly determined according to the image distance value, reducing the calculation process, wherein, in After calibrating the included angle of the optical axis, according to the included angle of the optical axis and the above calculation formula, the calibration mapping table can be created by measuring the image distance value multiple times, and then in the actual focusing process, only the image distance value needs to be obtained. Quickly determine the calibration displacement value for the second camera.

根据本发明的一个实施例,优选地,所述确定单元404还用于,将所述成像点差值、校准的光轴夹角和所述双摄像头设备的参数代入所述光轴夹角计算公式,以获取所述第二物距值。According to an embodiment of the present invention, preferably, the determining unit 404 is further configured to substitute the imaging point difference, the calibrated optical axis angle and the parameters of the dual camera device into the optical axis angle calculation formula to obtain the second object distance value.

根据本发明的实施例的对焦系统,通过光轴夹角计算公式获得第二物距值,提高了第二摄像头的对焦的准确度,具体地,在对光轴夹角进行校准后,根据光轴夹角计算公式,通过将多次测得成像点的差值的平均值、校准的光轴夹角和双摄像头设备的参数代入光轴夹角计算公式,可以准确获得第二摄像头的物距值,并根据物距值和第二映射表快速确定第二摄像头的校准位移值。According to the focus system of the embodiment of the present invention, the second object distance value is obtained through the calculation formula of the included angle of the optical axis, which improves the focusing accuracy of the second camera. Specifically, after the included angle of the optical axis is calibrated, according to the The calculation formula of the included angle of the axis, by substituting the average value of the difference between the imaging points measured multiple times, the calibrated optical axis included angle and the parameters of the dual camera device into the calculated formula of the included optical axis angle, the object distance of the second camera can be accurately obtained value, and quickly determine the calibration displacement value of the second camera according to the object distance value and the second mapping table.

根据本发明的一个实施例,优选地,所述确定单元404还用于,根据所述成像点差值和所述第二映射表确定所述成像点差值对应的所述第二物距值。According to an embodiment of the present invention, preferably, the determining unit 404 is further configured to determine the second object distance corresponding to the imaging point difference according to the imaging point difference and the second mapping table .

根据本发明的实施例的对焦系统,通过获取第二物距值和第二摄像头的镜头位移值的映射关系,提高了第二摄像头的对焦效率和准确率,控制第二摄像头根据镜头位移值完成对焦过程。According to the focusing system of the embodiment of the present invention, by obtaining the mapping relationship between the second object distance value and the lens displacement value of the second camera, the focusing efficiency and accuracy of the second camera are improved, and the second camera is controlled to complete the process according to the lens displacement value. Focusing process.

根据本发明的一个实施例,优选地,所述对焦单元406还用于,在完成第一次对焦后,采用对比度对焦方法或相位对焦方法完成第二次对焦。According to an embodiment of the present invention, preferably, the focusing unit 406 is further configured to, after completing the first focusing, use a contrast focusing method or a phase focusing method to complete the second focusing.

根据本发明的实施例的对焦系统,通过完成第一次对焦后,进行第二次对焦,实现了更精准的对焦效果,其中,采用对比度对焦的方式是根据焦点处画面的对比度变化,寻找对比度最大时的镜头位置,也就是准确对焦的位置,而相位对焦方法是在准确焦点位置的时候,相位检测系统可以准确的获知当前已经处于合焦状态。According to the focusing system of the embodiment of the present invention, a more accurate focusing effect is achieved by performing the second focusing after the first focusing. The maximum lens position is the exact focus position, and the phase focus method is when the focus position is accurate, the phase detection system can accurately know that it is currently in focus.

图5示出了根据本发明的一个实施例的双摄像头设备的示意框图。Fig. 5 shows a schematic block diagram of a dual camera device according to an embodiment of the present invention.

如图5所示,根据本发明的一个实施例的双摄像头设备500,包括:如上述任一项技术方案所述的光轴夹角的校准系统300或如上述任一项技术方案所述的对焦系统400。As shown in FIG. 5 , a dual camera device 500 according to an embodiment of the present invention includes: a calibration system 300 for optical axis angles as described in any of the above technical solutions or a calibration system 300 as described in any of the above technical solutions Focusing system 400 .

下面结合图1至图9,对根据本发明的实施例的拍摄设备的对焦过程进行具体说明。The focusing process of the photographing device according to the embodiment of the present invention will be specifically described below with reference to FIGS. 1 to 9 .

双摄像头设备的闭环马达和镜头适配后会输出两组映射表,其中,一组为物距值和镜头位移的映射表(表1),另一组位移和镜头位移的映射表(表2)。After the closed-loop motor and lens of the dual-camera device are adapted, two sets of mapping tables will be output, one of which is the mapping table of object distance and lens displacement (Table 1), and the other is the mapping table of displacement and lens displacement (Table 2 ).

如图6所示,确定以摄像头1的镜心为原点的第一坐标系(其中,第一坐标系的y轴垂直于成像面,第一坐标系的x轴平行于成像面),以及摄像头2的镜心为原点的第二坐标系(其中,第二坐标系的y轴垂直于成像面,第二坐标系的x轴平行于成像面),用于光轴1和光轴2的夹角计算公式的各个参数,均是在对应的坐标系内测得的数值。As shown in Figure 6, determine the first coordinate system (wherein, the y-axis of the first coordinate system is perpendicular to the imaging plane, the x-axis of the first coordinate system is parallel to the imaging plane) with the mirror center of the camera 1 as the origin, and the camera The second coordinate system with the mirror center of 2 as the origin (wherein, the y-axis of the second coordinate system is perpendicular to the imaging plane, and the x-axis of the second coordinate system is parallel to the imaging plane), used for the angle between optical axis 1 and optical axis 2 Each parameter of the calculation formula is the value measured in the corresponding coordinate system.

表1Table 1

Object Distance(m)Object Distance(m) Lens Shift(mm)Lens Shift(mm) 0.0000.000 10.010.0 -0.001-0.001 5.05.0 -0.003-0.003 4.04.0 -0.004-0.004 3.03.0 -0.005-0.005 2.02.0 -0.007-0.007 1.91.9 -0.008-0.008 1.81.8 -0.008-0.008 1.71.7 -0.009-0.009 1.61.6 -0.009-0.009 1.51.5 -0.010-0.010 1.41.4 -0.010-0.010 1.31.3 -0.011-0.011 1.21.2 -0.012-0.012 1.11.1 -0.013-0.013 1.01.0 -0.015-0.015 0.90.9 -0.016-0.016 0.80.8 -0.018-0.018 0.70.7 -0.021-0.021 0.60.6 -0.024-0.024 0.50.5 -0.029-0.029 0.450.45 -0.033-0.033 0.400.40 -0.037-0.037 0.350.35 -0.042-0.042 0.300.30 -0.049-0.049 0.250.25 -0.059-0.059 0.200.20 -0.074-0.074 0.150.15 -0.099-0.099 0.140.14 -0.107-0.107 0.130.13 -0.115-0.115 0.120.12 -0.125-0.125 0.110.11 -0.137-0.137 0.100.10 -0.151-0.151

如图7所示,当拍摄设备的光轴夹角参数为0时,根据相似三角形的比例关系,有公式如下:As shown in Figure 7, when the optical axis angle parameter of the shooting device is 0, according to the proportional relationship of similar triangles, the formula is as follows:

其中,d为镜心距离,L为物距值,f为等效焦距,x1-x2为上述差值差值,因此,通过上述公式、表1和表2可以快速获取光轴夹角为0是的物距值L。Among them, d is the mirror center distance, L is the object distance value, f is the equivalent focal length, and x1-x2 is the above-mentioned difference value. Therefore, through the above formula, Table 1 and Table 2, it can be quickly obtained that the angle of the optical axis is 0 is the object distance value L.

下面对光轴夹角的计算公式的普遍适用性通过具体实施例进行说明:The general applicability of the calculation formula for the included angle of the optical axis is illustrated by specific examples below:

注意:在这里我们定义光轴2相对光轴1顺时针旋转的角度为正,反之为负。Note: Here we define the angle of clockwise rotation of optical axis 2 relative to optical axis 1 as positive, and vice versa as negative.

实施例一:Embodiment one:

如图8所示,当拍摄设备的一个光轴发生偏转,且光轴夹角参数为α时,同样,根据相似三角形的比例关系,有方程组(1)如下:As shown in Figure 8, when one optical axis of the shooting device is deflected, and the included angle parameter of the optical axis is α, similarly, according to the proportional relationship of similar triangles, there are equations (1) as follows:

其中,d为镜心距离,L为物距值,f为等效焦距,x2-x1为差值,α为光轴夹角,Δx为光轴偏移距离,因此,通过上述公式可以快速获取光轴夹角为α的物距值L,通过上述方程组获得α值,从而实现光轴夹角的自校准,进而基于校准后的α计算物距值,并结合表1和表2可以实现精准对焦过程。Among them, d is the mirror center distance, L is the object distance value, f is the equivalent focal length, x2-x1 is the difference, α is the angle between the optical axis, and Δx is the offset distance of the optical axis. Therefore, the above formula can be used to quickly obtain The object distance value L whose optical axis angle is α, the α value is obtained through the above equations, so as to realize the self-calibration of the optical axis angle, and then calculate the object distance value based on the calibrated α, and combine Table 1 and Table 2 to realize Precise focusing process.

对方程组(1)进行简化消除Δx后,获得光轴夹角的计算公式为: After simplifying the equation group (1) and eliminating Δx, the calculation formula for obtaining the angle of the optical axis is:

实施例二:Embodiment two:

如图9所示,当拍摄设备的两个光轴发生偏转,且光轴夹角参数分别为α1和α2时,光轴夹角α=α21,同样,根据相似三角形的比例关系,有方程组(2)如下:As shown in Figure 9, when the two optical axes of the shooting device are deflected, and the parameters of the included angle of the optical axes are α 1 and α 2 respectively, the included angle of the optical axes α=α 21 , similarly, according to the similar triangle Proportional relationship, there are equations (2) as follows:

注意,上述△x1、△x2、△x、α1、α2都是有符号的,可能为正也可能为负。Note that the above Δx1, Δx2, Δx, α1, and α2 are all signed, and may be positive or negative.

另外, in addition,

其中,d为镜心距离,L为物距值,f为等效焦距,x2-x1为差值,α为光轴夹角,Δx1为第一光轴偏移距离,Δx2为第二光轴偏移距离,因此,通过上述公式可以快速获取光轴夹角为α的物距值L(消除参变量Δx1和Δx2),通过上述方程组获得α值,从而实现光轴夹角的自校准,进而基于校准后的α计算物距值,并结合表1和表2可以实现精准对焦过程。Among them, d is the mirror center distance, L is the object distance value, f is the equivalent focal length, x2-x1 is the difference, α is the angle between the optical axes, Δx1 is the offset distance of the first optical axis, and Δx2 is the second optical axis Offset distance, therefore, the object distance value L with an optical axis angle of α can be quickly obtained through the above formula (eliminating the parameters Δx1 and Δx2), and the α value is obtained through the above equations, thereby realizing the self-calibration of the optical axis angle, Then calculate the object distance value based on the calibrated α, and combine Table 1 and Table 2 to achieve a precise focusing process.

表2Table 2

(x2-x1)(单位:像素)(x2-x1) (unit: pixel) Lens Shift(mm)Lens Shift(mm) 00 0.0000.000 11 -0.001-0.001 22 -0.003-0.003 33 -0.004-0.004 44 -0.005-0.005 55 -0.007-0.007 66 -0.008-0.008 77 -0.008-0.008 88 -0.009-0.009 99 -0.009-0.009 1010 -0.010-0.010 1111 -0.010-0.010 1212 -0.011-0.011 1313 -0.012-0.012 1414 -0.013-0.013 1616 -0.015-0.015 1818 -0.016-0.016 2020 -0.018-0.018 22twenty two -0.021-0.021 24twenty four -0.024-0.024 2828 -0.029-0.029 3232 -0.033-0.033 3636 -0.037-0.037 4040 -0.042-0.042 4444 -0.049-0.049 5050 -0.059-0.059 5656 -0.074-0.074 6262 -0.099-0.099 7070 -0.107-0.107 8080 -0.115-0.115 9090 -0.125-0.125 110110 -0.137-0.137 130130 -0.151-0.151

对上述方程组(2)进行简化,可得到:Simplifying the above equation group (2), we can get:

光轴夹角:Optical axis angle:

在小角度下可得:At small angles:

也即,在两光轴均发生偏转时获得光轴夹角的计算公式同样为:通过上述两个实施例可知,根据本发明的实施例的光轴夹角的计算公式适用于所有光轴夹角发生偏转的情况,具有普遍适应性。That is to say, the calculation formula for obtaining the angle between the optical axes when both optical axes are deflected is also: From the above two embodiments, it can be seen that the calculation formula of the included angle of the optical axis according to the embodiment of the present invention is applicable to all cases where the included angle of the optical axis is deflected, and has universal adaptability.

上述拍摄设备采用快速对焦时,在测试对焦时,获取特征点在成像面的差值(多次测试的平均值),通过表2确定镜头位移,即可完成快速对焦过程。When the above-mentioned shooting equipment adopts fast focusing, when testing the focusing, obtain the difference value of the feature points on the imaging surface (the average value of multiple tests), and determine the lens displacement through Table 2, and the fast focusing process can be completed.

在完成快速对焦后,在采用对比度对焦或相位对焦,对双镜头进行更准确的对焦,在拍摄过程中,统计镜头位移后对表1和表2进行更新和优化。After fast focusing, use contrast focusing or phase focusing to focus on the dual lens more accurately. During the shooting process, Table 1 and Table 2 are updated and optimized after counting the lens shift.

以上结合附图详细说明了本发明的技术方案,考虑到如何实现双镜头的拍摄设备的自校准过程以实现准确对焦成的技术问题。因此,本发明提出了一种新的对焦方案和一种双摄像头设备,可以实现快速对焦和精准对焦,同时,实现了对双摄像头设备的光轴夹角参数的自校准,避免了因光轴夹角参数的误差造成对焦误差,提升了用户在拍摄过程的使用体验。The technical solution of the present invention has been described in detail above in conjunction with the accompanying drawings, considering the technical problem of how to realize the self-calibration process of a dual-lens shooting device to achieve accurate focusing. Therefore, the present invention proposes a new focusing scheme and a dual-camera device, which can achieve fast and precise focusing. The error of the angle parameter causes the focus error, which improves the user experience in the shooting process.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (21)

1.一种光轴夹角的校准方法,所述校准方法适用于包含有第一摄像头和第二摄像头的双摄像头设备,其特征在于,所述校准方法包括:1. A calibration method of an optical axis angle, the calibration method is applicable to a dual-camera device comprising a first camera and a second camera, wherein the calibration method comprises: 对被拍摄物体的任一特征点进行对焦,获取第一物距值;Focus on any feature point of the object to be photographed to obtain the first object distance value; 确定所述特征点在所述第一摄像头上的第一成像点坐标值;determining a first imaging point coordinate value of the feature point on the first camera; 确定所述特征点在所述第二摄像头上的第二成像点坐标值;determining a second imaging point coordinate value of the feature point on the second camera; 根据所述第一成像点坐标值、所述第二成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。According to the coordinate value of the first imaging point, the coordinate value of the second imaging point, the pre-stored parameters of the dual-camera device, the first object distance value and the pre-stored optical axis angle calculation formula to determine the The angle between the optical axes of the dual-camera device. 2.根据权利要求1所述的光轴夹角的校准方法,其特征在于,获取第一物距值,包括以下具体步骤:2. The calibration method of the optical axis angle according to claim 1, wherein obtaining the first object distance value comprises the following specific steps: 获取预存储的镜头位移值和物距值的第一映射表;Obtain a first mapping table of pre-stored lens displacement values and object distance values; 通过所述第一映射表获取所述镜头位移值对应的所述第一物距值。The first object distance value corresponding to the lens shift value is acquired through the first mapping table. 3.根据权利要求1所述的光轴夹角的校准方法,其特征在于,在对被拍摄物体的任一特征点进行对焦之前,还包括以下具体步骤:3. The method for calibrating the included angle of the optical axis according to claim 1, characterized in that, before focusing on any feature point of the object to be photographed, further comprising the following specific steps: 存储所述双摄像头设备的参数,其中,所述参数包括所述双摄像头设备的等效焦距值和所述第一摄像头中心点和所述第二摄像头中心点之间的镜心距离。The parameters of the dual-camera device are stored, wherein the parameters include an equivalent focal length value of the dual-camera device and a mirror center distance between a central point of the first camera and a central point of the second camera. 4.根据权利要求3所述的光轴夹角的校准方法,其特征在于,以x1表征所述第一成像点坐标值,以x2表征所述第二成像点坐标值,以L表征物距值,所述双摄像头设备的参数包括镜心距离d和等效焦距值f,则所述光轴夹角计算公式,具体包括:4. The method for calibrating the included angle of the optical axis according to claim 3, wherein the coordinate value of the first imaging point is represented by x1, the coordinate value of the second imaging point is represented by x2, and the object distance is represented by L value, the parameters of the dual-camera device include the mirror center distance d and the equivalent focal length value f, then the calculation formula for the included angle of the optical axis specifically includes: 5.根据权利要求1至4中任一项所述的光轴夹角的校准方法,其特征在于,确定所述双摄像头设备的光轴夹角,包括以下具体步骤:5. The method for calibrating the included angle of the optical axis according to any one of claims 1 to 4, wherein determining the included angle of the optical axis of the dual-camera device comprises the following specific steps: 计算全部所述特征点的光轴夹角采样值的加权平均值;Calculate the weighted average of the optical axis angle sampling values of all the feature points; 将所述加权平均值存储至所述双摄像头设备的微处理器中,以作为所述双摄像头设备的光轴夹角。The weighted average value is stored in the microprocessor of the dual-camera device as an included angle of the optical axis of the dual-camera device. 6.根据权利要求1至4中任一项所述的光轴夹角的校准方法,其特征 在于,还包括:6. the calibration method of optical axis angle according to any one of claims 1 to 4, is characterized in that, also comprises: 在确定所述光轴夹角后,以所述第二成像点坐标值与所述第一成像点坐标值之间的差值作为成像点差值,通过所述光轴夹角计算公式创建成像点差值与物距值之间的第二映射表。After determining the included angle of the optical axis, the difference between the coordinate value of the second imaging point and the coordinate value of the first imaging point is used as the difference value of the imaging point, and the imaging is created through the calculation formula of the included angle of the optical axis A second mapping table between the point difference value and the object distance value. 7.一种对焦方法,适用于如权利要求1至6中任一项所述的光轴夹角的校准方法完成光轴夹角校准的双摄像头设备,其特征在于,包括:7. A focusing method, which is applicable to a dual-camera device in which the calibration method of the optical axis angle according to any one of claims 1 to 6 completes the calibration of the optical axis angle, characterized in that it comprises: 获取被拍摄物的任一特征点在第一摄像头上的第三成像点坐标值;Obtain the coordinate value of the third imaging point of any feature point of the subject on the first camera; 获取所述特征点在所述第二摄像头上的第四成像点坐标值;Acquiring the fourth imaging point coordinate value of the feature point on the second camera; 以所述第四成像点坐标值与所述第三成像点坐标值之差作为成像点差值,根据所述成像点差值、校准的所述光轴夹角确定第二物距值;Using the difference between the coordinate value of the fourth imaging point and the coordinate value of the third imaging point as an imaging point difference value, and determining a second object distance value according to the imaging point difference value and the calibrated optical axis angle; 根据所述第二物距值和所述双摄像头设备的第一映射表确定镜头位移值,以完成第一次对焦。Determine a lens shift value according to the second object distance value and the first mapping table of the dual camera device, so as to complete the first focusing. 8.根据权利要求7所述的对焦方法,其特征在于,根据所述成像点差值、校准的所述光轴夹角确定所述第二物距值,包括以下具体步骤:8. The focusing method according to claim 7, wherein determining the second object distance value according to the imaging point difference and the calibrated optical axis angle comprises the following specific steps: 将所述成像点差值、校准的光轴夹角和所述双摄像头设备的参数代入所述光轴夹角计算公式,以获取所述第二物距值。The imaging point difference value, the calibrated optical axis angle and the parameters of the dual camera device are substituted into the optical axis angle calculation formula to obtain the second object distance value. 9.根据权利要求7所述的对焦方法,其特征在于,根据所述成像点差值、校准的所述光轴夹角确定所述第二摄像头的第二物距值,包括以下具体步骤:9. The focusing method according to claim 7, wherein determining the second object distance value of the second camera according to the imaging point difference value and the calibrated optical axis angle includes the following specific steps: 根据所述成像点差值和所述双摄像头设备的第二映射表确定所述成像点差值对应的所述第二物距值。The second object distance value corresponding to the imaging point difference value is determined according to the imaging point difference value and the second mapping table of the dual camera device. 10.根据权利要求8或9所述的对焦方法,其特征在于,还包括:10. The focusing method according to claim 8 or 9, further comprising: 在完成第一次对焦后,采用对比度对焦方法或相位对焦方法完成第二次对焦。After completing the first focusing, use the contrast focusing method or the phase focusing method to complete the second focusing. 11.一种光轴夹角的校准系统,所述校准系统适用于包含有第一摄像头和第二摄像头的双摄像头设备,其特征在于,所述校准系统包括:11. A calibration system for an included angle of an optical axis, the calibration system is suitable for a dual-camera device including a first camera and a second camera, wherein the calibration system includes: 获取单元,用于对被拍摄物体的任一特征点进行对焦,获取第一物距值;an acquisition unit, configured to focus on any feature point of the object to be photographed, and acquire the first object distance value; 确定单元,用于确定所述特征点在所述第一摄像头上的第一成像点坐标值;a determining unit, configured to determine the first imaging point coordinate value of the feature point on the first camera; 所述确定单元还用于,确定所述特征点在所述第二摄像头上的第二成 像点坐标值;The determining unit is also used to determine the second imaging point coordinate value of the feature point on the second camera; 所述确定单元还用于,根据所述第一成像点坐标值、所述第二成像点坐标值、预存储的所述双摄像头设备的参数和所述第一物距值和预存储的光轴夹角计算公式确定所述双摄像头设备的光轴夹角。The determining unit is further configured to, according to the coordinate value of the first imaging point, the coordinate value of the second imaging point, the pre-stored parameters of the dual-camera device, the first object distance value, and the pre-stored light The axis angle calculation formula determines the optical axis angle of the dual camera device. 12.根据权利要求11所述的光轴夹角的校准系统,其特征在于,所述获取单元还用于,获取预存储的镜头位移值和物距值的第一映射表;以及12. The calibration system for the included angle of the optical axis according to claim 11, wherein the acquisition unit is further configured to acquire a pre-stored first mapping table of lens displacement values and object distance values; and 用于通过所述第一映射表获取所述镜头位移值对应的所述第一物距值。and acquiring the first object distance value corresponding to the lens shift value through the first mapping table. 13.根据权利要求11所述的光轴夹角的校准系统,其特征在于,还包括:13. The calibration system for optical axis angle according to claim 11, further comprising: 存储单元,用于存储所述双摄像头设备的参数,其中,所述参数包括所述双摄像头设备的等效焦距值和所述第一摄像头中心点和所述第二摄像头中心点之间的镜心距离。A storage unit configured to store parameters of the dual-camera device, wherein the parameters include an equivalent focal length value of the dual-camera device and a mirror between the center point of the first camera and the center point of the second camera heart distance. 14.根据权利要求13所述的光轴夹角的校准系统,其特征在于,以x1表征所述第一成像点坐标值,以x2表征所述第二成像点坐标值,以L表征物距值,所述双摄像头设备的参数包括镜心距离d和等效焦距值f,则所述光轴夹角计算公式,具体包括:14. The calibration system for the included angle of the optical axis according to claim 13, wherein the coordinate value of the first imaging point is represented by x1, the coordinate value of the second imaging point is represented by x2, and the object distance is represented by L value, the parameters of the dual-camera device include the mirror center distance d and the equivalent focal length value f, then the calculation formula for the included angle of the optical axis specifically includes: 15.根据权利要求13所述的光轴夹角的校准系统,其特征在于,还包括:15. The calibration system for the included angle of the optical axis according to claim 13, further comprising: 计算单元,用于计算全部所述特征点的光轴夹角采样值的加权平均值;a calculation unit, configured to calculate a weighted average of the optical axis angle sampling values of all the feature points; 所述存储单元还用于,将所述加权平均值存储至所述双摄像头设备的微处理器中,以作为所述双摄像头设备的光轴夹角。The storage unit is further configured to store the weighted average value in the microprocessor of the dual-camera device as an included angle of the optical axes of the dual-camera device. 16.根据权利要求11至14中任一项所述的光轴夹角的校准系统,其特征在于,还包括:16. The calibration system for the included angle of the optical axis according to any one of claims 11 to 14, further comprising: 创建单元,用于在确定所述光轴夹角后,以所述第二成像点坐标值与所述第一成像点坐标值之间的差值作为成像点差值,通过所述光轴夹角计算公式创建成像点差值与物距值之间的第二映射表。The creating unit is configured to use the difference between the coordinate value of the second imaging point and the coordinate value of the first imaging point as the difference value of the imaging point after determining the included angle of the optical axis, and pass through the optical axis The angle calculation formula creates a second mapping table between imaging point difference values and object distance values. 17.一种对焦系统,适用于如权利要求11至16中任一项所述的光轴夹角的校准系统完成光轴夹角校准的双摄像头设备,其特征在于,包括:17. A focusing system, suitable for the calibration system of the optical axis angle as claimed in any one of claims 11 to 16 to complete the dual camera device for optical axis angle calibration, characterized in that it comprises: 获取单元,用于获取被拍摄物的任一特征点在第一摄像头上的第三成像点坐标值;An acquisition unit, configured to acquire a third imaging point coordinate value of any feature point of the subject on the first camera; 所述获取单元还用于,获取所述特征点在所述第二摄像头上的第四成像点坐标值;The acquiring unit is further configured to acquire a fourth imaging point coordinate value of the feature point on the second camera; 所述对焦系统,还包括:The focusing system also includes: 确定单元,用于以所述第四成像点坐标值与所述第三成像点坐标值之差作为成像点差值,根据所述成像点差值、校准的所述光轴夹角确定第二物距值;The determination unit is configured to use the difference between the coordinate value of the fourth imaging point and the coordinate value of the third imaging point as the imaging point difference, and determine the second imaging point difference according to the imaging point difference and the calibrated optical axis angle. Object distance value; 对焦单元,用于根据所述第二物距值和所述双摄像头设备的第一映射表确定镜头位移值,以完成第一次对焦。A focusing unit, configured to determine a lens shift value according to the second object distance value and the first mapping table of the dual-camera device, so as to complete the first focusing. 18.根据权利要求17所述的对焦系统,其特征在于,所述确定单元还用于,将所述成像点差值、校准的光轴夹角和所述双摄像头设备的参数代入所述光轴夹角计算公式,以获取所述第二物距值。18. The focusing system according to claim 17, wherein the determination unit is further configured to substitute the imaging point difference, the calibrated optical axis angle and the parameters of the dual camera device into the light The calculation formula of the included axis angle to obtain the second object distance value. 19.根据权利要求17所述的对焦系统,其特征在于,所述确定单元还用于,根据所述成像点差值和所述双摄像头设备的第二映射表确定所述成像点差值对应的所述第二物距值。19. The focusing system according to claim 17, wherein the determining unit is further configured to determine, according to the imaging point difference and the second mapping table of the dual-camera device, that the imaging point difference corresponds to The second object distance value. 20.根据权利要求18或19所述的对焦系统,其特征在于,所述对焦单元还用于,在完成第一次对焦后,采用对比度对焦方法或相位对焦方法完成第二次对焦。20. The focusing system according to claim 18 or 19, wherein the focusing unit is further configured to, after completing the first focusing, use a contrast focusing method or a phase focusing method to complete the second focusing. 21.一种双摄像头设备,其特征在于,包括:如权利要求11至16中任一项所述的光轴夹角的校准系统或如权利要求17至20中任一项所述的对焦系统。21. A dual-camera device, characterized by comprising: the calibration system for the angle of the optical axis according to any one of claims 11 to 16 or the focusing system according to any one of claims 17 to 20 .
CN201510142411.9A 2015-03-27 2015-03-27 Calibration, focusing method and the system and dual camera equipment of optical axis included angle Active CN104730802B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510142411.9A CN104730802B (en) 2015-03-27 2015-03-27 Calibration, focusing method and the system and dual camera equipment of optical axis included angle
PCT/CN2015/078051 WO2016155074A1 (en) 2015-03-27 2015-04-30 Correcting and focusing method and system for included angle of optical axis, and dual-camera equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510142411.9A CN104730802B (en) 2015-03-27 2015-03-27 Calibration, focusing method and the system and dual camera equipment of optical axis included angle

Publications (2)

Publication Number Publication Date
CN104730802A CN104730802A (en) 2015-06-24
CN104730802B true CN104730802B (en) 2017-10-17

Family

ID=53454846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510142411.9A Active CN104730802B (en) 2015-03-27 2015-03-27 Calibration, focusing method and the system and dual camera equipment of optical axis included angle

Country Status (2)

Country Link
CN (1) CN104730802B (en)
WO (1) WO2016155074A1 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847665B (en) * 2015-11-30 2018-09-04 维沃移动通信有限公司 Dual camera capture apparatus and dual camera optical axis means for correcting
CN105607409B (en) * 2016-01-07 2018-04-03 信利光电股份有限公司 A kind of image acquisition device and its application method of the correction of dual camera module
TWI616715B (en) 2016-06-24 2018-03-01 聚晶半導體股份有限公司 Method and system for multi-lens module alignment
CN106506969B (en) 2016-11-29 2019-07-19 Oppo广东移动通信有限公司 Camera module, method for portrait tracking therewith, and electronic device
CN107872616B (en) * 2016-12-19 2021-03-19 珠海市杰理科技股份有限公司 Driving recording method and device
CN107871346B (en) * 2016-12-19 2020-10-27 珠海市杰理科技股份有限公司 driving recorder
CN106773514B (en) * 2016-12-21 2019-04-02 信利光电股份有限公司 A kind of parallel adjusting method of camera module optical axis and system
CN106878598B (en) * 2017-03-13 2020-03-24 联想(北京)有限公司 Processing method and electronic equipment
JP7018566B2 (en) * 2017-04-28 2022-02-14 パナソニックIpマネジメント株式会社 Image pickup device, image processing method and program
CN106989697A (en) * 2017-05-24 2017-07-28 深圳天珑无线科技有限公司 The acquisition methods and device of a kind of optical axis included angle
CN107566720B (en) * 2017-08-25 2019-09-27 维沃移动通信有限公司 Method for updating calibration value of mobile terminal and mobile terminal
CN107742310B (en) * 2017-09-18 2021-06-04 广东美晨通讯有限公司 Method and device for testing included angle of double cameras and storage device
CN107635135B (en) * 2017-09-20 2019-07-19 歌尔股份有限公司 Test method and test system for relative inclination angle of dual-camera module before assembly
CN108234879B (en) * 2018-02-02 2021-01-26 成都西纬科技有限公司 Method and device for acquiring sliding zoom video
CN108429908B (en) * 2018-06-15 2020-09-22 昆山丘钛微电子科技有限公司 Camera module testing method, device, equipment and medium
CN111355878A (en) * 2018-12-21 2020-06-30 中兴通讯股份有限公司 Terminal, shooting method and storage medium
CN109788199B (en) * 2019-01-30 2021-02-05 上海创功通讯技术有限公司 Focusing method suitable for terminal with double cameras
CN111220360B (en) * 2020-01-03 2021-08-31 歌尔光学科技有限公司 A kind of test method and test device of camera module resolution

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0767024A (en) * 1993-08-26 1995-03-10 Canon Inc Compound eye imaging device
US5974272A (en) * 1997-10-29 1999-10-26 Eastman Kodak Company Parallax corrected image capture system
US7826736B2 (en) * 2007-07-06 2010-11-02 Flir Systems Ab Camera and method for use with camera
JP4911230B2 (en) * 2010-02-01 2012-04-04 カシオ計算機株式会社 Imaging apparatus, control program, and control method
US9314148B2 (en) * 2010-12-06 2016-04-19 Lensvector, Inc. Motionless adaptive stereoscopic scene capture with tuneable liquid crystal lenses and stereoscopic auto-focusing methods
US20130057655A1 (en) * 2011-09-02 2013-03-07 Wen-Yueh Su Image processing system and automatic focusing method
KR101888956B1 (en) * 2012-05-31 2018-08-17 엘지이노텍 주식회사 Camera module and auto-focusing method thereof
JP2014107669A (en) * 2012-11-27 2014-06-09 Canon Inc Stereoscopic imaging lens system and photography system having the same
CN103246130B (en) * 2013-04-16 2016-01-20 广东欧珀移动通信有限公司 A kind of focusing method and device
JP2014230051A (en) * 2013-05-22 2014-12-08 ソニー株式会社 Information processing apparatus, information processing method, and program
CN103344213A (en) * 2013-06-28 2013-10-09 三星电子(中国)研发中心 Method and device for measuring distance of double-camera

Also Published As

Publication number Publication date
WO2016155074A1 (en) 2016-10-06
CN104730802A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN104730802B (en) Calibration, focusing method and the system and dual camera equipment of optical axis included angle
US10764487B2 (en) Distance image acquisition apparatus and application thereof
CN109405765B (en) A high-precision depth calculation method and system based on speckle structured light
CN112614075B (en) Distortion correction method and equipment for surface structured light 3D system
WO2023201578A1 (en) Extrinsic parameter calibration method and device for monocular laser speckle projection system
CN107883874B (en) Calibration method of circular structured light
CN111487043A (en) Method for determining calibration parameters of speckle projector of monocular speckle structured light system
CN106959075B (en) Method and system for accurate measurement using a depth camera
CN113409396B (en) Calibrating method of ADAS monocular camera
CN106990776B (en) Robot homing positioning method and system
CN103163725A (en) Camera module detection device and detection method
CN108662987A (en) The scaling method of 2D camera shooting type laser measuring heads
CN110488838B (en) An accurate and repeatable positioning method for indoor autonomous navigation robot
CN110006634B (en) Field of view angle measurement method, field of view angle measurement device, display method and display device
CN103322984B (en) Based on the range finding of video image, speed-measuring method and device
CN109887041B (en) Method for controlling position and posture of shooting center of digital camera by mechanical arm
CN113822920B (en) Method for acquiring depth information by structured light camera, electronic equipment and storage medium
CN106289317B (en) The unit calibration method and device of a kind of single-lens digital aviation measuring camera
CN107967701B (en) Calibration method, device and equipment of depth camera equipment
CN115018922B (en) Distortion parameter calibration method, electronic device and computer-readable storage medium
CN106780391A (en) A kind of distortion correction algorithm for full visual angle 3 D measuring instrument optical system
WO2018076529A1 (en) Scene depth calculation method, device and terminal
CN114926538B (en) External parameter calibration method and device for monocular laser speckle projection system
CN106341956A (en) Fixed camera calibration method
CN105987670A (en) Method, system and device for processing tire indentation depth data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250724

Address after: 101599 Beijing City Miyun District He Nanzhai Town Bei Jin Goutun Village Committee 01

Patentee after: Beijing Qinghe Zhifeng Agricultural Technology Co.,Ltd.

Country or region after: China

Address before: 518040, Guangdong, Futian District, Che Kung Temple, Shenzhen Tian An Innovation Plaza B812C

Patentee before: COOLPAD SOFTWARE TEC (SHENZHEN) Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right