CN107702695A - Camera module group lens and the method for testing of imaging sensor relative position - Google Patents
Camera module group lens and the method for testing of imaging sensor relative position Download PDFInfo
- Publication number
- CN107702695A CN107702695A CN201710882986.3A CN201710882986A CN107702695A CN 107702695 A CN107702695 A CN 107702695A CN 201710882986 A CN201710882986 A CN 201710882986A CN 107702695 A CN107702695 A CN 107702695A
- Authority
- CN
- China
- Prior art keywords
- camera module
- image sensor
- lens
- tested
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000003384 imaging method Methods 0.000 title 1
- 230000008859 change Effects 0.000 claims description 8
- 238000010998 test method Methods 0.000 claims description 5
- 238000006073 displacement reaction Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C9/00—Measuring inclination, e.g. by clinometers, by levels
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Studio Devices (AREA)
Abstract
一种摄像模组镜头与图像传感器相对位置的测试方法,1)在白板测试环境下,将摄像模组样本镜头以清晰调焦距离与白板平行设置;2)在预设角度范围内调整图像传感器并拍摄图像,得到多张不同相对倾角对应的图像;3)选取两个亮度值并利用二值法计算每张图像在两个亮度值时亮度中心的差值,得到多组相对倾角与亮度中心差值之间的对应关系;4)在白板测试环境下,待测试摄像模组以和步骤1同样的清晰调焦距离拍摄图像,由步骤3的方法计算所述两个阈值时亮度中心的差值,根据对应关系内的数据,可得待测试摄像模组镜头与图像传感器相对倾角,并进一步获的相对偏移量。该方法可直接在白板测试工站完成,提高测试效率,节约测试成本。
A method for testing the relative position of a camera module lens and an image sensor, 1) in a whiteboard test environment, setting the camera module sample lens parallel to the whiteboard with a clear focus distance; 2) adjusting the image sensor within a preset angle range And take images to obtain multiple images corresponding to different relative inclinations; 3) select two brightness values and use the binary method to calculate the difference between the brightness centers of each image at the two brightness values, and obtain multiple sets of relative inclinations and brightness centers Correspondence between the differences; 4) under the whiteboard test environment, the camera module to be tested takes images with the same clear focus distance as step 1, and the difference between the brightness centers when the two thresholds are calculated by the method of step 3 value, according to the data in the corresponding relationship, the relative inclination angle between the lens of the camera module to be tested and the image sensor can be obtained, and the relative offset can be further obtained. The method can be directly completed at a whiteboard test station, thereby improving test efficiency and saving test cost.
Description
技术领域technical field
本发明涉及一种摄像模组,具体地说,涉及一种摄像模组镜头与图像传感器相对位置的测试方法。The invention relates to a camera module, in particular to a method for testing the relative positions of a camera lens and an image sensor.
背景技术Background technique
摄像模组是指至少包括镜头、图像传感器,能够完成摄像功能的光学模块。镜头和图像传感器具有相对位置关系,包括相对倾斜角度和相对偏移量。其中,相对倾斜角度是指摄像模组的镜头所在平面与图像传感器所在平面的夹角。相对偏移量是指摄像模组的镜头中心位置与图像传感器中心位置的偏移量。摄像模组现已广泛应用于手机、VR等设备中,这些设备对模组镜头和图像传感器相对倾斜角度和相对偏移量都有一定的要求,生产过程中需对其进行测试。目前的测试方法需要使用特定的图表,单独设置一个工站来完成该项测试。其测试方法繁琐,测试效率较低。A camera module refers to an optical module that at least includes a lens and an image sensor and can perform a camera function. The lens and the image sensor have a relative positional relationship, including a relative tilt angle and a relative offset. Wherein, the relative tilt angle refers to the included angle between the plane where the lens of the camera module is located and the plane where the image sensor is located. The relative offset refers to the offset between the center position of the lens of the camera module and the center position of the image sensor. Camera modules are now widely used in mobile phones, VR and other devices. These devices have certain requirements for the relative tilt angle and relative offset of the module lens and image sensor, which need to be tested during the production process. Current testing methods require a separate workstation to complete the test using specific charts. The testing method is cumbersome and the testing efficiency is low.
发明内容Contents of the invention
本发明提供一种在白板环境下测试摄像模组镜头和图像传感器相对倾斜和相对偏移的方法,与目前的测试方法相比,该方法无需更换工站,可直接在白板测试工站完成,提高测试效率,节约测试成本。The invention provides a method for testing the relative inclination and relative offset of the camera module lens and the image sensor in a whiteboard environment. Compared with the current testing method, the method does not need to replace the workstation, and can be completed directly at the whiteboard testing workstation. Improve test efficiency and save test cost.
一种摄像模组镜头与图像传感器相对位置的测试方法,包括摄像模组镜头与图像传感器相对倾角的测试方法,包括:1)从同一批次待测试摄像模组中选取摄像模组样本,将摄像模组样本放置在白板测试环境下,使摄像模组样本的镜头以清晰调焦距离与白板平行设置,2)以预设的变化量调整摄像模组样本的图像传感器,使所述摄像模组样本的图像传感器与摄像模组样本的镜头的相对倾角在预设的角度范围内,且在每次调整后拍摄一张图像,得到多张不同的相对倾角对应的图像;3)选取两个亮度值作为两个第一阈值,利用二值法分别计算每张图像在两个第一阈值时亮度中心的差值,从而得到多组相对倾角与亮度中心差值之间的对应关系组;4)在白板测试环境下,与摄像模组样本同一批次的一个或多个待测试摄像模组以和步骤1同样的清晰调焦距离拍摄图像,由步骤3的方法计算所述两个第一阈值时亮度中心的差值,根据所述对应关系组内的数据,可得待测试摄像模组的镜头与待测试摄像模组的图像传感器的相对倾角。A method for testing the relative position of a camera module lens and an image sensor, including a method for testing the relative inclination of the camera module lens and the image sensor, comprising: 1) selecting a camera module sample from the same batch of camera modules to be tested, and The camera module sample is placed in the whiteboard test environment, so that the lens of the camera module sample is set parallel to the whiteboard with a clear focus distance, 2) adjust the image sensor of the camera module sample with a preset amount of change, so that the camera module sample The relative inclination angle of the image sensor of the group sample and the lens of the camera module sample is within the preset angle range, and an image is taken after each adjustment to obtain multiple images corresponding to different relative inclination angles; 3) select two The luminance value is used as the two first thresholds, and the difference between the luminance centers of each image at the two first thresholds is calculated by using the binary method, so as to obtain the corresponding relationship groups between multiple sets of relative inclination angles and the difference between the luminance centers; 4 ) Under the whiteboard test environment, one or more camera modules to be tested in the same batch as the camera module samples take images with the same clear focus distance as step 1, and calculate the two first by the method of step 3 The difference value of the brightness center at the threshold value, according to the data in the correspondence group, the relative inclination angle between the lens of the camera module to be tested and the image sensor of the camera module to be tested can be obtained.
优选地,还包括摄像模组镜头与图像传感器相对偏移量的测试方法,包括:5)对步骤4中拍摄的图像,选取第二阈值并根据第二阈值计算出图像的亮度中心的坐标,并结合待测试摄像模组的图像传感器中心的坐标,获得图像亮度中心与待测试摄像模组的图像传感器中心之间的第一距离,根据待测试摄像模组的镜头到待测试摄像模组的图像传感器的焦距,以及待测试摄像模组的镜头与待测试摄像模组的图像传感器的相对倾角获得图像亮度中心与待测试摄像模组的镜头中心在待测试摄像模组的图像传感器上的投影点之间的第二距离,第一距离与第二距离的差值即为待测试摄像模组的镜头与待测试摄像模组的图像传感器的相对偏移量。Preferably, it also includes a method for testing the relative offset between the camera module lens and the image sensor, including: 5) for the image taken in step 4, select a second threshold and calculate the coordinates of the brightness center of the image according to the second threshold, And in combination with the coordinates of the center of the image sensor of the camera module to be tested, the first distance between the image brightness center and the center of the image sensor of the camera module to be tested is obtained. The focal length of the image sensor, and the relative inclination angle of the lens of the camera module to be tested and the image sensor of the camera module to be tested obtain the projection of the image brightness center and the lens center of the camera module to be tested on the image sensor of the camera module to be tested The second distance between the points, the difference between the first distance and the second distance is the relative offset between the lens of the camera module to be tested and the image sensor of the camera module to be tested.
优选地,在图像传感器平面内,以通过图像传感器中心且相互垂直的坐标轴为x轴和y轴,在上述步骤3中,利用二值法分别计算每张图像在两个第一阈值时亮度中心在x轴方向上的差值,从而得到多组y轴方向相对倾角与x轴方向亮度中心差值之间的对应关系组;在上述步骤4中,由步骤3的方法计算所述两个阈值时亮度中心在x轴方向的差值,根据所述对应关系组内的数据,可得待测试摄像模组的镜头与待测试摄像模组的图像传感器在y轴方向的相对倾角。Preferably, in the plane of the image sensor, the coordinate axes passing through the center of the image sensor and perpendicular to each other are taken as the x-axis and the y-axis. In the above step 3, the brightness of each image at the two first thresholds is calculated using the binary method The difference of the center in the x-axis direction, thereby obtaining the corresponding relationship group between the relative inclination angles in the y-axis direction and the brightness center difference in the x-axis direction; in the above-mentioned step 4, the method for calculating the two The difference of the brightness center in the x-axis direction at the threshold value, according to the data in the corresponding group, the relative inclination angle in the y-axis direction between the lens of the camera module to be tested and the image sensor of the camera module to be tested can be obtained.
优选地,还包括摄像模组镜头与图像传感器x轴方向上的相对偏移量的测试方法,包括:5)对步骤4中拍摄的图像,选取第二阈值并根据第二阈值计算出图像的亮度中心在x轴上的坐标,并结合待测试摄像模组的图像传感器中心在x轴上的坐标,获得图像亮度中心与待测试摄像模组的图像传感器中心之间在x轴上的第一距离,根据待测试摄像模组的镜头中心到待测试摄像模组的图像传感器的焦距,以及待测试摄像模组的镜头与待测试摄像模组的图像传感器在y轴方向相对倾角获得图像亮度中心与待测试摄像模组的镜头中心在待测试摄像模组的图像传感器上的投影点之间在x轴上的第二距离,第一距离与第二距离的差值即为待测试摄像模组镜头中心与待测试摄像模组的图像传感器中心在x轴方向上的相对偏移量。Preferably, it also includes a test method for the relative offset between the camera module lens and the image sensor in the x-axis direction, including: 5) for the image taken in step 4, select a second threshold and calculate the value of the image according to the second threshold The coordinates of the brightness center on the x-axis, combined with the coordinates of the image sensor center of the camera module to be tested on the x-axis, obtain the first position on the x-axis between the image brightness center and the image sensor center of the camera module to be tested. Distance, according to the focal length of the lens center of the camera module to be tested to the image sensor of the camera module to be tested, and the relative inclination angle of the lens of the camera module to be tested and the image sensor of the camera module to be tested in the y-axis direction to obtain the image brightness center The second distance on the x-axis between the lens center of the camera module to be tested and the projection point on the image sensor of the camera module to be tested, the difference between the first distance and the second distance is the camera module to be tested The relative offset between the center of the lens and the center of the image sensor of the camera module to be tested in the x-axis direction.
优选地,在上述步骤3中,利用二值法分别计算每张图像在两个第一阈值时亮度中心在x轴方向上的差值的步骤包括:采用二值法分别将亮度值大于两个第一阈值的像素点设置为255,将亮度值小于两个第一阈值的像素点设置为0,将亮度值是255的像素点的横坐标相加并求平均值,从而分别得到每张图像在两个第一阈值时亮度中心在x轴的坐标,并将得到的两个坐标相减即为亮度中心在x轴方向上的差值。Preferably, in the above step 3, the step of using the binary method to calculate the difference between the brightness centers of each image in the x-axis direction at the two first thresholds includes: using the binary method to respectively calculate the brightness value greater than two The pixels of the first threshold are set to 255, the pixels whose brightness values are less than two first thresholds are set to 0, and the abscissas of the pixels whose brightness values are 255 are added and averaged to obtain each image respectively The coordinates of the brightness center on the x-axis at the two first thresholds, and subtracting the obtained two coordinates is the difference of the brightness center in the x-axis direction.
优选地,使用六轴调整仪调整摄像模组样本的图像传感器,改变摄像模组样本的图像传感器与摄像模组样本的镜头的倾斜角度。Preferably, a six-axis adjuster is used to adjust the image sensor of the sample camera module to change the inclination angle between the image sensor of the sample camera module and the lens of the sample camera module.
优选地,在-5°到5°之间以预设的变化量调整摄像模组样本的镜头与摄像模组样本的图像传感器之间的角度。Preferably, the angle between the lens of the sample camera module and the image sensor of the sample camera module is adjusted with a preset variation between -5° and 5°.
优选地,所述预设的变化量为每次变化幅度不超过0.2°。Preferably, the preset amount of variation is no more than 0.2° each time.
优选地,在步骤5中,选取图像最大亮度值的90~95%作为第二阈值,计算出图像的亮度中心坐标。Preferably, in step 5, 90-95% of the maximum brightness value of the image is selected as the second threshold, and the coordinates of the brightness center of the image are calculated.
优选地,所述第二距离为相对倾角的正切值与焦距的乘积。Preferably, the second distance is the product of the tangent of the relative inclination and the focal length.
附图说明Description of drawings
通过结合下面附图对其实施例进行描述,本发明的上述特征和技术优点将会变得更加清楚和容易理解。The above features and technical advantages of the present invention will become clearer and easier to understand by describing its embodiments in conjunction with the following drawings.
图1是表示本发明实施例的基本原理图一;Fig. 1 is a schematic diagram one showing an embodiment of the present invention;
图2是表示本发明实施例的基本原理图二;Fig. 2 is the basic principle drawing two that represent the embodiment of the present invention;
图3是表示本发明实施例的基本原理图三;Fig. 3 is a schematic diagram three showing the embodiment of the present invention;
图4是表示本发明实施例的基本原理图四;Fig. 4 is the basic schematic diagram four of the embodiment of the present invention;
图5是表示本发明实施例的摄像模组样本的镜头与摄像模组样本的图像传感器的位置关系图;5 is a diagram showing the positional relationship between the lens of the camera module sample and the image sensor of the camera module sample according to the embodiment of the present invention;
图6是表示本发明实施例的待测试摄像模组的镜头与待测试摄像模组的图像传感器的位置关系图一;Fig. 6 is a positional diagram 1 showing the lens of the camera module to be tested and the image sensor of the camera module to be tested according to an embodiment of the present invention;
图7是表示本发明实施例的待测试摄像模组的镜头与待测试摄像模组的图像传感器的位置关系图二。7 is a diagram 2 showing the positional relationship between the lens of the camera module to be tested and the image sensor of the camera module to be tested according to the embodiment of the present invention.
具体实施方式detailed description
下面将参考附图来描述本发明所述的摄像模组镜头与图像传感器相对位置的测试方法的实施例。本领域的普通技术人员可以认识到,在不偏离本发明的精神和范围的情况下,可以用各种不同的方式或其组合对所描述的实施例进行修正。因此,附图和描述在本质上是说明性的,而不是用于限制权利要求的保护范围。此外,在本说明书中,附图未按比例画出,并且相同的附图标记表示相同的部分。Embodiments of the method for testing the relative positions of the camera module lens and the image sensor according to the present invention will be described below with reference to the accompanying drawings. Those skilled in the art would recognize that the described embodiments can be modified in various ways or combinations thereof without departing from the spirit and scope of the invention. Accordingly, the drawings and description are illustrative in nature and not intended to limit the scope of the claims. Also, in this specification, the drawings are not drawn to scale, and like reference numerals denote like parts.
首先简单说明一下本发明的基本原理。在白板测试环境下拍摄一张图像,计算图像中各像素点的亮度值,将亮度相等的像素点连接起来。如图1、图2所示,当镜头A所在的平面与图像传感器B所在的平面平行时,其等亮度线为一组同心圆(等亮度线是指一个图像上亮度值相等的曲线)。选定一组阈值,对图像进行二值化处理计算图像亮度中心。图像的二值化处理,就是将图像上的像素点的灰度值设置为0或255,也就是将整个图像呈现出明显的只有黑和白的视觉效果。阈值在0至255之间选取。各阈值对应的亮度中心位置应为同一点,即各个等亮度线的共同的圆心。First, briefly explain the basic principle of the present invention. Take an image under the whiteboard test environment, calculate the brightness value of each pixel in the image, and connect the pixels with equal brightness. As shown in Figure 1 and Figure 2, when the plane where lens A is located is parallel to the plane where image sensor B is located, the isoluminance lines are a set of concentric circles (isoluminance lines refer to curves with equal brightness values on an image). A set of thresholds is selected, and the image is binarized to calculate the brightness center of the image. The binarization process of the image is to set the gray value of the pixels on the image to 0 or 255, that is, to present the entire image with an obvious visual effect of only black and white. The threshold value is selected between 0 and 255. The brightness center positions corresponding to each threshold should be the same point, that is, the common center of each isoluminance line.
当摄像模组中的图像传感器B所在平面与镜头A所在平面不平行时,相当于图像传感器B从平行状态绕转轴旋转了一定角度,其转轴为在图像传感器B平面内相互垂直的坐标轴。例如图像传感器为长方形,则经过图像传感器B的中心,以图像传感器B的长边方向为x轴,以图像传感器的短边方向为y轴。将图1中的图像传感器绕x轴或y轴旋转一定角度,镜头A所在平面与图像传感器B所在平面不再平行。如图3、图4所示,图像传感器B绕y轴旋转角度,形成的等亮度线的排列不再为同心圆。同样也选定一组阈值,对图像进行二值化处理,计算图像亮度中心,各阈值对应的亮度中心位置不再为同一点,而是在x轴上的不同的点,如图4中,P100、P150、P200分别是阈值为100、150、200时求得的亮度中心。镜头A与图像传感器B间相对倾斜角度越大,各中心点之间的偏差越大。When the plane where the image sensor B in the camera module is located is not parallel to the plane where the lens A is located, it means that the image sensor B has rotated a certain angle from a parallel state around the rotation axis, and the rotation axes are coordinate axes perpendicular to each other in the image sensor B plane. For example, if the image sensor is a rectangle, pass through the center of the image sensor B, take the long side direction of the image sensor B as the x-axis, and take the short side direction of the image sensor as the y-axis. Rotate the image sensor in Figure 1 around the x-axis or y-axis by a certain angle, and the plane where the lens A is located is no longer parallel to the plane where the image sensor B is located. As shown in FIG. 3 and FIG. 4 , the image sensor B is rotated around the y-axis, and the arrangement of the isoluminance lines formed is no longer concentric circles. Also select a set of thresholds, binarize the image, and calculate the brightness center of the image. The brightness center position corresponding to each threshold is no longer the same point, but a different point on the x-axis, as shown in Figure 4. P100, P150, and P200 are the brightness centers obtained when the thresholds are 100, 150, and 200, respectively. The larger the relative inclination angle between the lens A and the image sensor B, the larger the deviation between the center points.
本发明就是利用不同阈值对应的亮度中心位置差异来计算镜头和图像传感器的相对位置的,即相对倾斜角度和相对偏移量,下面结合图5至图7来说明本实施例。在本实施例中,以y轴方向相对倾斜角Tilty和x轴方向相对偏移量Shiftx的计算方法为例进行说明,还可以同理计算x轴方向相对倾斜角Tiltx和y轴方向相对偏移量Shifty。y轴方向的相对倾斜角度Tilty是图像传感器绕y轴转动导致镜头所在平面与图像传感器所在平面不平行,两个平面间出现的夹角,这两个平面的夹角等同于两个平面法线的夹角,如图3中所标示的Tilty。下面具体说明该测试方法。The present invention calculates the relative positions of the lens and the image sensor, that is, the relative inclination angle and the relative offset, by using the differences in brightness center positions corresponding to different thresholds. The present embodiment will be described below in conjunction with FIGS. 5 to 7 . In this embodiment, the calculation method of the relative inclination angle Tilt y in the y-axis direction and the relative offset Shift x in the x-axis direction is taken as an example for illustration, and the relative inclination angle Tilt x in the x-axis direction and the relative offset in the y-axis direction can also be calculated in the same way. Relative offset Shift y . The relative tilt angle Tilt y in the y-axis direction is the angle between the two planes caused by the rotation of the image sensor around the y-axis causing the plane where the lens is located to be non-parallel to the plane where the image sensor is located. The angle between the two planes is equivalent to the method of two planes The included angle of the line, as indicated by Tilt y in Figure 3. The test method is specifically described below.
1)选取摄像模组样本,将摄像模组样本放置在白板测试环境下,使摄像模组样本的镜头A1所在平面与白板C所在平面平行,摄像模组样本的镜头A1到白板C的距离为其清晰调焦距离,所述清晰调焦距离是指能够拍摄清楚图像的调焦距离。摄像模组样本从同一批次待测试的摄像模组中选取,摄像模组样本的镜头A1与待测试摄像模组的镜头A2的焦距相同。以上所述摄像模组样本是指未封装的,摄像模组样本的图像传感器B1是可以转动调节的。而下文中的待测试摄像模组是已经封装处理的,待测试摄像模组的图像传感器B2和待测试摄像模组的镜头A2位置关系已经固定,不能调节变动,本发明就是要测试他们之间的位置关系是否达标。1) Select the camera module sample, place the camera module sample in the whiteboard test environment, make the plane where the lens A1 of the camera module sample is located parallel to the plane where the whiteboard C is located, and the distance between the lens A1 of the camera module sample and the whiteboard C is Its clear focusing distance refers to the focusing distance at which clear images can be captured. The camera module sample is selected from the same batch of camera modules to be tested, and the lens A1 of the camera module sample has the same focal length as the lens A2 of the camera module to be tested. The camera module sample mentioned above refers to the unpackaged one, and the image sensor B1 of the camera module sample can be rotated and adjusted. And the camera module to be tested hereinafter has been packaged and processed. The positional relationship between the image sensor B2 of the camera module to be tested and the lens A2 of the camera module to be tested has been fixed and cannot be adjusted. The present invention will test the relationship between them. Whether the positional relationship of is up to standard.
2)以预设的变化量调整图像传感器B1,即将图像传感器B1绕y轴转动,使图像传感器B1与摄像模组样本的镜头A1的相对倾斜角度Tilty1在预设的角度范围内,且在每次调整后拍摄一张图像,得到多张对应不同倾角的图像。本实施例拍摄50张图像。2) Adjust the image sensor B1 with a preset amount of change, that is, rotate the image sensor B1 around the y-axis, so that the relative tilt angle Tilt y1 between the image sensor B1 and the lens A1 of the camera module sample is within the preset angle range, and in One image is taken after each adjustment, and multiple images corresponding to different inclination angles are obtained. In this embodiment, 50 images are taken.
3)利用二值法对每张图像进行处理,求取两个第一阈值对应的亮度中心在x轴方向上的差值。本实施例选取100和200,分别计算每张图像在两个第一阈值时亮度中心在x轴方向上的差值,从而得到多组相对倾角Tilty1与x轴方向亮度中心差值之间的对应关系。首先计算图像在阈值100时的亮度中心:将亮度值大于100的像素点亮度设置为255,亮度值小于100的像素点亮度置为0,计算得到图像在阈值100时对应的亮度中心在x轴的坐标P100_X。用同样的方法得到图像在阈值200时对应的亮度中心在x轴的坐标P200_X。P100_X-P200_X即为图像在阈值100和200对应的亮度中心在x轴方向上的差值。经过计算可以得到50个相对倾角Tilty1与x轴方向亮度中心差值之间的对应关系组,将该组数据存储在数据库中,便于随时调用该数据。3) Each image is processed by a binary method, and the difference in the x-axis direction between the brightness centers corresponding to the two first thresholds is calculated. In this embodiment, 100 and 200 are selected, and the difference between the brightness center of each image in the x-axis direction at the two first thresholds is calculated respectively, so as to obtain the difference between multiple sets of relative inclination Tilt y1 and the brightness center difference in the x-axis direction Correspondence. First calculate the brightness center of the image at the threshold of 100: set the brightness of pixels with a brightness value greater than 100 to 255, and set the brightness of pixels with a brightness value less than 100 to 0, and calculate the corresponding brightness center of the image at the threshold of 100 on the x-axis The coordinates of P 100_X . Use the same method to obtain the coordinate P 200_X of the brightness center corresponding to the image at the threshold of 200 on the x-axis. P 100_X -P 200_X is the difference in the x-axis direction between the brightness centers corresponding to the thresholds 100 and 200 of the image. After calculation, 50 groups of corresponding relations between the relative inclination Tilt y1 and the brightness center difference in the x-axis direction can be obtained, and the data of this group are stored in the database, so that the data can be recalled at any time.
4)进行批量测试,在白板测试环境下,将待测试摄像模组放置在与步骤1同样的调焦距离拍摄图像,即待测试摄像模组的镜头A2到白板的距离与摄像模组样本的镜头A1到白板的距离相同。同样计算两个第一阈值100和200的亮度中心在x轴方向的差值,根据多组相对倾角Tilty1与x轴方向亮度中心差值之间的对应关系,即可得到该待测试摄像模组的镜头A2与待测试摄像模组的图像传感器B2相对倾斜角度Tilty2。以此类推。4) Carry out batch testing. In the whiteboard test environment, place the camera module to be tested at the same focusing distance as in step 1 to take images, that is, the distance from the lens A2 of the camera module to be tested to the whiteboard is the same as the distance from the camera module sample. The distance from lens A1 to the whiteboard is the same. Also calculate the difference between the brightness centers of the two first thresholds 100 and 200 in the x-axis direction, and according to the correspondence between multiple sets of relative inclination angles Tilt y1 and the difference between the brightness centers in the x-axis direction, the camera model to be tested can be obtained. The lens A2 of the group and the image sensor B2 of the camera module to be tested are relatively tilted by an angle Tilt y2 . and so on.
在一个可选实施例中,根据待测试摄像模组的镜头A2与待测试摄像模组的图像传感器B2相对倾斜角度还可以计算得到待测试摄像模组的镜头A2的中心与待测试摄像模组的图像传感器B2的中心在x轴方向上的相对偏移量,包括:步骤In an optional embodiment, according to the relative inclination angle between the camera lens A2 of the camera module to be tested and the image sensor B2 of the camera module to be tested, the center of the camera lens A2 of the camera module to be tested and the camera module to be tested can also be calculated. The relative offset of the center of the image sensor B2 in the x-axis direction, including: the steps
5)对步骤4中拍摄的图像,选取第二阈值计算出图像的亮度中心O1在x轴上的坐标O1X,并结合图像传感器B2的中心O2在x轴上坐标O2X,获得图像亮度中心与图像传感器B2的中心之间的第一距离O1XO2X。5) For the image taken in step 4, select the second threshold to calculate the coordinate O 1X of the brightness center O 1 of the image on the x-axis, and combine the coordinate O 2X of the center O 2 of the image sensor B2 on the x-axis to obtain an image A first distance O 1X O 2X between the center of brightness and the center of the image sensor B2.
根据待测试摄像模组的镜头A2的中心O4到图像传感器B2的距离为焦距f,以及倾角Tilty2获得图像亮度中心O1与待测试摄像模组的镜头A2的中心O4在图像传感器B2上的投影点O3之间的第二距离O1XO3X,即According to the distance between the center O 4 of the lens A2 of the camera module to be tested and the image sensor B2 as the focal length f, and the inclination Tilt y2 , the image brightness center O 1 and the center O 4 of the lens A2 of the camera module to be tested are in the image sensor B2 The second distance O 1X O 3X between the projected points O 3 on
O1XO3X=f*tan(Tilty2)O 1X O 3X =f*tan(Tilt y2 )
两个距离的差值即为待测试摄像模组的镜头A2与图像传感器B2在x轴方向上的相对偏移量Shiftx。计算公式为:The difference between the two distances is the relative offset Shift x between the lens A2 of the camera module to be tested and the image sensor B2 in the x-axis direction. The calculation formula is:
Shiftx=O2XO3X=O1XO2X-O1XO3X。Shift x =O 2X O 3X =O 1X O 2X -O 1X O 3X .
其中,Shiftx可能是正值,也可能是负值,如图7所示,图像传感器B2的中心O2位于图像亮度中心O1与待测试摄像模组的镜头A2的中心O4在图像传感器B2上的投影点O3之间时,Shiftx为负值。Wherein, Shift x may be a positive value or a negative value, as shown in Figure 7, the center O2 of the image sensor B2 is located at the image brightness center O1 and the center O4 of the lens A2 of the camera module to be tested is in the image sensor When between the projection point O and 3 on B2, Shift x is a negative value.
在一个可选实施例中,可以使用六轴调整仪调整摄像模组样本的图像传感器B1的倾斜角度。In an optional embodiment, a six-axis adjuster can be used to adjust the inclination angle of the image sensor B1 of the sample camera module.
在一个可选实施例中,在-5°到5°的角度范围内以预设的变化量逐渐调整摄像模组样本的镜头A1与图像传感器B1之间的角度。In an optional embodiment, the angle between the lens A1 and the image sensor B1 of the sample camera module is gradually adjusted within an angle range of -5° to 5° with a preset amount of variation.
在一个可选实施例中,预设的变化量为每次变化不超过0.2°。变化量越小,其计算精度就越精确。In an optional embodiment, the preset amount of change is no more than 0.2° for each change. The smaller the variation, the more precise its calculation accuracy.
在一个可选实施例中,在步骤5中,选取预设的阈值是选取图像最大亮度值的90~95%作为阈值,计算出图像的亮度中心位置O1的x轴坐标O1X。In an optional embodiment, in step 5, the preset threshold is selected as 90-95% of the maximum brightness value of the image as the threshold, and the x-axis coordinate O 1X of the brightness center position O 1 of the image is calculated.
在一个可选实施例中,在步骤3中,将所有亮度值为255的像素点的横坐标相加,并求其平均值,从而得到图像在所选阈值时对应的亮度中心在x轴的坐标值。对应阈值100和阈值200,得到图像在阈值100时对应的亮度中心在x轴的坐标P100_X,用同样的方法可得到图像在阈值200时对应的亮度中心在x轴的坐标P200_X。In an optional embodiment, in step 3, the abscissas of all pixels with a brightness value of 255 are added, and their average value is calculated, so as to obtain the corresponding brightness center of the image at the selected threshold value on the x-axis coordinate value. Corresponding to the threshold 100 and the threshold 200, the coordinate P 100_X of the brightness center on the x-axis corresponding to the image at the threshold 100 is obtained, and the coordinate P 200_X of the brightness center on the x-axis corresponding to the image at the threshold 200 can be obtained by the same method .
本发明从同一批次摄像模组中选取样本,在白板测试环境下,获取样本的多张拍摄图像,并采用二值法对多张拍摄图像进行处理,利用不同阈值对应的亮度中心差异来获取样本的镜头与样本的图像传感器的相对倾斜角度,得到相对倾角与亮度中心差值之间的对应关系组,从而能够得到待测试摄像模组的镜头与待测试摄像模组的图像传感器的相对倾斜角度,并进一步得到其相对偏移量。与传统测试方法相比,该方法无需更换工站,可直接在白板测试工站完成,提高测试效率,节约测试成本。The present invention selects samples from the same batch of camera modules, obtains multiple photographed images of the samples in a whiteboard test environment, and uses a binary method to process the multiple photographed images, using brightness center differences corresponding to different thresholds to obtain The relative inclination angle of the lens of the sample and the image sensor of the sample is obtained, and the corresponding relationship group between the relative inclination angle and the brightness center difference can be obtained, so that the relative inclination of the lens of the camera module to be tested and the image sensor of the camera module to be tested can be obtained angle, and further get its relative offset. Compared with the traditional test method, this method does not need to replace the station, and can be completed directly on the whiteboard test station, which improves the test efficiency and saves the test cost.
以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。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 (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710882986.3A CN107702695B (en) | 2017-09-26 | 2017-09-26 | Test method for relative position of camera module lens and image sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710882986.3A CN107702695B (en) | 2017-09-26 | 2017-09-26 | Test method for relative position of camera module lens and image sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107702695A true CN107702695A (en) | 2018-02-16 |
CN107702695B CN107702695B (en) | 2020-05-12 |
Family
ID=61174499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710882986.3A Active CN107702695B (en) | 2017-09-26 | 2017-09-26 | Test method for relative position of camera module lens and image sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107702695B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108429908A (en) * | 2018-06-15 | 2018-08-21 | 昆山丘钛微电子科技有限公司 | A kind of test method of camera module, device, equipment and medium |
CN109163888A (en) * | 2018-08-29 | 2019-01-08 | 歌尔股份有限公司 | Optical centre test method, device and equipment |
CN109257539A (en) * | 2018-10-15 | 2019-01-22 | 昆山丘钛微电子科技有限公司 | A kind of focusing method, device, electronic equipment and medium |
CN110132225A (en) * | 2019-05-10 | 2019-08-16 | 西安电子科技大学 | Monocular Inclined Non-coaxial Lens Distance Measuring Device |
CN111191623A (en) * | 2020-01-03 | 2020-05-22 | 圣点世纪科技股份有限公司 | A method for determining the shooting distance of finger veins |
CN111220360A (en) * | 2020-01-03 | 2020-06-02 | 歌尔股份有限公司 | Method and device for testing resolution of camera module |
CN111277762A (en) * | 2020-03-05 | 2020-06-12 | 昆山丘钛微电子科技有限公司 | Focusing method, device, equipment and medium for camera module |
CN112040121A (en) * | 2020-08-19 | 2020-12-04 | 欧菲微电子技术有限公司 | Focusing method, device, storage medium and terminal |
CN113766210A (en) * | 2021-07-21 | 2021-12-07 | 歌尔光学科技有限公司 | Test method and device |
CN115389498A (en) * | 2021-05-24 | 2022-11-25 | 广州视源电子科技股份有限公司 | Method for measuring handwriting definition of writing board and comparing method |
CN116320747A (en) * | 2023-05-19 | 2023-06-23 | 四川华鲲振宇智能科技有限责任公司 | Method for horizontally checking image sensor and lens |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1525201A (en) * | 2003-02-26 | 2004-09-01 | 矽峰光电科技股份有限公司 | Lens Adjustment Method and Its Mechanism |
TW200951526A (en) * | 2008-06-06 | 2009-12-16 | Hon Hai Prec Ind Co Ltd | Inclination angle measurement method for lens module |
JP2011164227A (en) * | 2010-02-05 | 2011-08-25 | Canon Inc | Shake correction apparatus |
CN102889879A (en) * | 2011-07-21 | 2013-01-23 | 安讯士有限公司 | Method for determining the tilt of an image sensor |
CN102998765A (en) * | 2011-09-16 | 2013-03-27 | 鸿富锦精密工业(深圳)有限公司 | Camera module and camera module assembly method |
CN103018015A (en) * | 2012-12-26 | 2013-04-03 | 青岛歌尔声学科技有限公司 | Device and method for detecting optical-axis offset of lens in equipment |
US20130155257A1 (en) * | 2011-12-16 | 2013-06-20 | Hon Hai Precision Industry Co., Ltd. | Test device for testing camera module and method thereof |
CN103673987A (en) * | 2013-12-31 | 2014-03-26 | 昆山丘钛微电子科技有限公司 | System and method for evaluating inclination degree of camera module testing equipment |
US20160061594A1 (en) * | 2014-09-02 | 2016-03-03 | Samsung Electro-Mechanics Co., Ltd. | System and method of measuring and correcting tilt angle of lens |
CN106296711A (en) * | 2016-08-22 | 2017-01-04 | 华南理工大学 | A kind of multiaxis active alignment method of mobile phone camera module |
CN106355620A (en) * | 2016-08-31 | 2017-01-25 | 张家港康得新光电材料有限公司 | Mark correcting method and correcting system |
CN106488223A (en) * | 2016-10-20 | 2017-03-08 | 苏州艾微视图像科技有限公司 | The method of adjustment of photographic head active optical axis |
CN106839976A (en) * | 2016-12-22 | 2017-06-13 | 歌尔科技有限公司 | A kind of method and device at detector lens center |
-
2017
- 2017-09-26 CN CN201710882986.3A patent/CN107702695B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1525201A (en) * | 2003-02-26 | 2004-09-01 | 矽峰光电科技股份有限公司 | Lens Adjustment Method and Its Mechanism |
TW200951526A (en) * | 2008-06-06 | 2009-12-16 | Hon Hai Prec Ind Co Ltd | Inclination angle measurement method for lens module |
JP2011164227A (en) * | 2010-02-05 | 2011-08-25 | Canon Inc | Shake correction apparatus |
CN102889879A (en) * | 2011-07-21 | 2013-01-23 | 安讯士有限公司 | Method for determining the tilt of an image sensor |
CN102998765A (en) * | 2011-09-16 | 2013-03-27 | 鸿富锦精密工业(深圳)有限公司 | Camera module and camera module assembly method |
US20130155257A1 (en) * | 2011-12-16 | 2013-06-20 | Hon Hai Precision Industry Co., Ltd. | Test device for testing camera module and method thereof |
TW201326738A (en) * | 2011-12-16 | 2013-07-01 | Hon Hai Prec Ind Co Ltd | Test device and method for camera module |
CN103018015A (en) * | 2012-12-26 | 2013-04-03 | 青岛歌尔声学科技有限公司 | Device and method for detecting optical-axis offset of lens in equipment |
CN103673987A (en) * | 2013-12-31 | 2014-03-26 | 昆山丘钛微电子科技有限公司 | System and method for evaluating inclination degree of camera module testing equipment |
US20160061594A1 (en) * | 2014-09-02 | 2016-03-03 | Samsung Electro-Mechanics Co., Ltd. | System and method of measuring and correcting tilt angle of lens |
CN106296711A (en) * | 2016-08-22 | 2017-01-04 | 华南理工大学 | A kind of multiaxis active alignment method of mobile phone camera module |
CN106355620A (en) * | 2016-08-31 | 2017-01-25 | 张家港康得新光电材料有限公司 | Mark correcting method and correcting system |
CN106488223A (en) * | 2016-10-20 | 2017-03-08 | 苏州艾微视图像科技有限公司 | The method of adjustment of photographic head active optical axis |
CN106839976A (en) * | 2016-12-22 | 2017-06-13 | 歌尔科技有限公司 | A kind of method and device at detector lens center |
Non-Patent Citations (1)
Title |
---|
刘畅: "《摄像模组自动测试系统研究》", 《万方数据知识服务平台》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108429908A (en) * | 2018-06-15 | 2018-08-21 | 昆山丘钛微电子科技有限公司 | A kind of test method of camera module, device, equipment and medium |
CN109163888A (en) * | 2018-08-29 | 2019-01-08 | 歌尔股份有限公司 | Optical centre test method, device and equipment |
CN109257539B (en) * | 2018-10-15 | 2021-01-12 | 昆山丘钛微电子科技有限公司 | Focusing method and device, electronic equipment and computer readable storage medium |
CN109257539A (en) * | 2018-10-15 | 2019-01-22 | 昆山丘钛微电子科技有限公司 | A kind of focusing method, device, electronic equipment and medium |
CN110132225B (en) * | 2019-05-10 | 2021-03-12 | 西安电子科技大学 | Monocular oblique non-coaxial lens distance measuring device |
CN110132225A (en) * | 2019-05-10 | 2019-08-16 | 西安电子科技大学 | Monocular Inclined Non-coaxial Lens Distance Measuring Device |
CN111220360A (en) * | 2020-01-03 | 2020-06-02 | 歌尔股份有限公司 | Method and device for testing resolution of camera module |
CN111191623A (en) * | 2020-01-03 | 2020-05-22 | 圣点世纪科技股份有限公司 | A method for determining the shooting distance of finger veins |
CN111191623B (en) * | 2020-01-03 | 2023-09-19 | 圣点世纪科技股份有限公司 | A method for determining finger vein shooting distance |
CN111277762A (en) * | 2020-03-05 | 2020-06-12 | 昆山丘钛微电子科技有限公司 | Focusing method, device, equipment and medium for camera module |
CN112040121A (en) * | 2020-08-19 | 2020-12-04 | 欧菲微电子技术有限公司 | Focusing method, device, storage medium and terminal |
CN115389498A (en) * | 2021-05-24 | 2022-11-25 | 广州视源电子科技股份有限公司 | Method for measuring handwriting definition of writing board and comparing method |
CN113766210A (en) * | 2021-07-21 | 2021-12-07 | 歌尔光学科技有限公司 | Test method and device |
CN113766210B (en) * | 2021-07-21 | 2024-05-10 | 歌尔光学科技有限公司 | Test method and device |
CN116320747A (en) * | 2023-05-19 | 2023-06-23 | 四川华鲲振宇智能科技有限责任公司 | Method for horizontally checking image sensor and lens |
Also Published As
Publication number | Publication date |
---|---|
CN107702695B (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107702695A (en) | Camera module group lens and the method for testing of imaging sensor relative position | |
WO2021259151A1 (en) | Calibration method and apparatus for laser calibration system, and laser calibration system | |
CN115830103B (en) | Transparent object positioning method and device based on monocular color and storage medium | |
WO2020010945A1 (en) | Image processing method and apparatus, electronic device and computer-readable storage medium | |
CN112669394B (en) | Automatic calibration method for vision detection system | |
CN109859272B (en) | Automatic focusing binocular camera calibration method and device | |
CN109919933B (en) | VR equipment and its screen detection method, device, and computer-readable storage medium | |
CN109855603B (en) | Focus measurement method and terminal | |
CN107635135B (en) | Test method and test system for relative inclination angle of dual-camera module before assembly | |
JP2015203652A (en) | Information processing unit and information processing method | |
CN105976363A (en) | Optical center detection method, correction method and related device | |
CN106023234A (en) | Linear array CCD camera alignment adjustment method | |
CN115222728A (en) | Screen detection method and device based on visual technology and computer equipment | |
CN106643567A (en) | Lane deviation system production line calibration board verification method and system | |
TWI595444B (en) | Image capturing device, depth information generation method and auto-calibration method thereof | |
TWI616715B (en) | Method and system for multi-lens module alignment | |
TW201326735A (en) | Method and system for measuring width | |
CN108010071A (en) | A kind of Luminance Distribution measuring system and method using 3D depth surveys | |
CN105758337A (en) | A method for obtaining the angle between the lens plane and the image sensor plane | |
CN114638880A (en) | Planar ranging method, monocular camera and computer-readable storage medium | |
CN104811688B (en) | Image acquisition device and image deformation detection method thereof | |
CN119246524A (en) | A visual detection information acquisition device and method based on pitch angle calibration image | |
JP7272419B2 (en) | image capture device | |
CN108520541A (en) | A kind of scaling method of wide angle cameras | |
Wang et al. | Distance measurement using single non-metric CCD camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201019 Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building) Patentee after: GoerTek Optical Technology Co.,Ltd. Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268 Patentee before: GOERTEK Inc. |