Method for testing included angle between camera module image sensor and PCB

Through the cooperation of the logo diagram and the test positioning frame, it is possible to test the angle between the image sensor of the camera module and the PCB without disassembling the camera module, solving the problems of low test efficiency and insufficient accuracy in the existing technology, and improving Test efficiency and accuracy.

CN118714288APending Publication Date: 2024-09-27TRULY OPTO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824840.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

It is difficult to efficiently test the angle between the image sensor of the camera module and the PCB with the existing technology, resulting in low test efficiency and insufficient accuracy. Especially since the image sensor is hidden in the lens and PCB after the camera module is assembled, it cannot be tested directly and needs to be disassembled. Only high-precision testing equipment can be used for the lens, and the efficiency is very low.

Method used

Using the logo map and the test positioning frame, adjust the relative positions of the logo map and the test positioning frame to make the plane of the logo map and the positioning plane parallel to each other. Use the camera module to capture the logo map to obtain the image, and calculate the gap between the image sensor and the logo map. Angle, thereby obtaining the angle between the image sensor and the PCB, enabling testing of the angle without disassembling the camera module.

Benefits of technology

The test efficiency and accuracy are improved, and the angle between the image sensor and the PCB can be accurately measured without disassembling the camera module, which reduces the test time and improves the overall picture output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714288A
    Figure CN118714288A
Patent Text Reader

Abstract

The invention discloses a method for testing an included angle between a camera module image sensor and a PCB, and the method comprises the steps: S1, preparing a testing device: the testing device comprises an identification graph and a testing positioning frame, the testing positioning frame is provided with a positioning plane, and a to-be-tested camera module is disposed on the positioning plane; s2, the relative positions of the identification graph and the test positioning frame are adjusted, so that the plane of the identification graph is parallel to the positioning plane on the test positioning frame, and the PCB is parallel to the plane of the identification graph; s3, obtaining an identification graph image: shooting the identification graph through the to-be-tested camera module to obtain the identification graph image; s4, calculating a first included angle between the plane of the image sensor relative to the identification graph according to the identification graph image; and S5, calculating a second included angle between the image sensor and the PCB according to the first included angle and the fact that the plane of the known identification graph is parallel to the positioning plane. Therefore, the included angle between the image sensor and the PCB can be tested under the condition that the camera module does not need to be disassembled, so that the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of camera modules, and in particular to a method for testing an angle between an image sensor of a camera module and a PCB. Background Art

[0002] With the rapid development of modern electronic technology, camera modules are increasingly used in electronic devices such as smart phones, tablets, digital cameras, etc. Among them, the control of the relative tilt angle between the camera module image sensor and the PCB (printed circuit board) is becoming more and more stringent, and the control requirements are even 1° or 0.5°. We cannot identify this by visual appearance. Once the camera module has a tilt angle, it will not only affect the image effect itself, but also the client backend cannot be corrected, resulting in abnormal pictures taken by the client, affecting the image output effect of the whole machine.

[0003] After the camera module is assembled, the camera module image sensor is hidden inside the lens and PCB, and is not exposed. As a result, there is no way to test it directly. If the lens is disassembled, the only way is to use high-precision testing equipment to physically test the angle between the PCB and the camera module image sensor. This efficiency is very low, and it takes a huge amount of time to test one. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method for testing the angle between an image sensor of a camera module and a PCB, thereby improving the test accuracy and test efficiency.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A method for testing an angle between an image sensor of a camera module and a PCB, comprising:

[0007] S1: prepare a test device: the test device includes an identification diagram and a test positioning frame, the test positioning frame is provided with a positioning plane, and the camera module to be tested is placed on the positioning plane;

[0008] S2: adjusting the test device: adjusting the relative positions of the identification diagram and the test positioning frame so that the plane of the identification diagram and the positioning plane on the test positioning frame are parallel to each other, and so that the PCB in the camera module to be tested and the plane of the identification diagram are parallel to each other;

[0009] S3: obtaining the logo image: photographing the logo image by the camera module to be tested to obtain the logo image;

[0010] S4: calculating a first angle between the image sensor in the camera module to be tested and the plane of the logo image according to the logo image;

[0011] S5: Calculate a second angle between the image sensor and the PCB according to the first angle and knowing that the plane of the identification pattern is parallel to the positioning plane.

[0012] In one of the embodiments, in step S2, the relative positions of the identification pattern and the test positioning frame are adjusted by a laser testing instrument so that the plane of the identification pattern and the positioning plane are parallel to each other, and so that the PCB and the plane of the identification pattern are parallel to each other.

[0013] In one of the embodiments, at least three identification points are arranged on the identification map.

[0014] In one embodiment, each of the marking points is in a circular structure.

[0015] In one embodiment, in step S4, the step of calculating the first angle is:

[0016] S4-1: Establishing a spatial rectangular coordinate system M with the center on the image sensor plane as the origin, arbitrarily taking three identification points on the identification map to form a right triangle, and calculating the coordinates of the three identification points in the spatial rectangular coordinate system M;

[0017] S4-2 obtaining a plane equation of the plane of the identification diagram in the space rectangular coordinate system M according to the coordinates of the three identification points in the space rectangular coordinate system M;

[0018] S4-3 obtains a first angle between the plane of the identification image and the image sensor according to the plane equation.

[0019] In one embodiment, there are five marking points, four of which constitute the four corners of the rectangle, and the remaining marking point is located in the central area of ​​the rectangle.

[0020] In one embodiment, in step S4-1, the coordinates of the three identification points in the spatial rectangular coordinate system M are obtained, and the specific steps are as follows:

[0021] Assume that the coordinates of the center point on the image sensor plane are (Cx, Cy), the three identification points are point A, point B and point C, point B is taken as a rectangular point, the coordinates of point B in the spatial rectangular coordinate system M are (x3, y3, z3), the coordinates of point A in the spatial rectangular coordinate system M are (x1, y1, z1), and the coordinates of point C in the spatial rectangular coordinate system M are (x2, y2, z2);

[0022] The coordinates (x3, y3, z3) of point B in the spatial rectangular coordinate system M are calculated according to the following formula, the specific formula is:

[0023]

[0024] Wherein, (x3', y3') represents the coordinates of the right angle point B on the logo image corresponding to the right angle point B' on the image sensor, H represents the distance from the lens surface on the camera module to the logo image, and S represents the distance from the lens surface in the camera module to the image sensor. According to the formula F is the focal length of the camera module to be tested;

[0025] The coordinates (x1, y1, z1) of the point A in the spatial rectangular coordinate system M are calculated according to the following formula, specifically:

[0026]

[0027] Wherein (x1', y1') represents the coordinates of point A on the logo image corresponding to point A' on the image sensor, and z1 is an unknown number;

[0028] The coordinates (x2, y2, z2) of the point C in the spatial rectangular coordinate system M are calculated according to the following formula, specifically:

[0029]

[0030] Wherein (x2', y2') represents the coordinates of point A on the logo image corresponding to point A' on the image sensor, and z2 is an unknown number.

[0031] Solve the value of z1 and z2: It is known that point A, point B and point C form a right triangle, and it is known that point B is a right angle point, then BA and BC form a right angle side, and establish the following equation group:

[0032]

[0033] According to the set of equations, calculate the z1 value and z2 value.

[0034] In one embodiment, the least square method is used to fit the plane equation, specifically:

[0035] According to the general expression of the plane equation: A*x+B*y+C*z+D=0;

[0036] Conclusion Let -A / C be a, -B / C be b, and -D / C be c, and we get the plane equation: z = a*x+b*y+c; let

[0037]

[0038] The values ​​of a, b, and c are obtained by solving the equation of the plane z=a*x+b*y+c.

[0039] In one of the embodiments, according to the plane equation: z=a*x+b*y+c, three points are randomly selected on the plane equation, and the angle between the plane of the identification diagram and the spatial rectangular coordinate system M is calculated according to the following formula to obtain a first angle between the image sensor in the camera module and the plane of the identification diagram:

[0040]

[0041] In one of the embodiments, a positioning area is provided on the positioning plane, and positioning members are provided around the periphery of the positioning area. When the camera module to be tested is placed on the positioning area, the positioning members are used to perform positioning operations on the camera module to be tested so that the shooting center of the camera module to be tested is aligned with the center of the identification image.

[0042] Compared with the prior art, the present invention has at least the following advantages:

[0043] The method for testing the angle between the image sensor and the PCB of the camera module of the present invention uses an identification diagram and a testing device, and obtains an image of the identification diagram, so as to achieve the test of the angle between the image sensor and the PCB without disassembling the camera module, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below.

[0045] Figure 1 It is a flow chart of a method for testing the angle between the image sensor of a camera module and a PCB in one embodiment of the present invention;

[0046] Figure 2 for Figure 1 Specific flow diagram of step S4 in FIG.

[0047] Figure 3 Schematic diagram of the structure of a test device and a camera module (the angle between the image sensor and the PCB is 2°) in one embodiment of the present invention;

[0048] Figure 4 Schematic diagram of the structure of a test device and a camera module (the angle between the image sensor and the PCB is 0°) in one embodiment of the present invention;

[0049] Figure 5is a schematic diagram of the structure of a logo diagram in an embodiment of the present invention;

[0050] Figure 6 The figure is a schematic diagram of the relative positions of the logo, the lens and the image sensor in one embodiment of the present invention. DETAILED DESCRIPTION

[0051] To facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings.

[0052] See also Figure 1 , Figure 3 and Figure 4 As shown, a method for testing the angle between an image sensor of a camera module and a PCB includes:

[0053] S1: Prepare the test device 10: The test device 10 includes an identification pattern 110 and a test positioning frame 120. The test positioning frame 120 is provided with a positioning plane 121, and the camera module 20 to be tested is placed on the positioning plane 121;

[0054] S2: adjusting the test device 10: adjusting the relative positions of the identification pattern 110 and the test positioning frame 120 so that the plane of the identification pattern 110 and the positioning plane 121 on the test positioning frame 120 are parallel to each other, and so that the PCB (printed circuit board) 21 in the camera module 20 to be tested and the plane of the identification pattern 110 are parallel to each other;

[0055] S3: obtaining the image of the logo image 110: photographing the logo image 110 by the camera module 20 to be tested, so as to obtain the image of the logo image 110;

[0056] S4: calculating a first angle between the image sensor 22 in the camera module 20 to be tested and the plane of the identification image 110 according to the image of the identification image 110;

[0057] S5 calculates a second angle between the image sensor 22 and the PCB 21 according to the first angle and the known fact that the plane of the marker 110 is parallel to the positioning plane 121 .

[0058] It should be noted that: the camera module 20 to be tested includes a lens 23, an image sensor 22 and a PCB 21, the image sensor 22 is arranged on the PCB 21, and the lens 23 is located above the image sensor 22. When the camera module 20 to be tested is placed on the test positioning frame 120, the PCB 21 and the positioning plane 121 on the test positioning frame 120 are parallel to each other, and at the same time, it is known that the plane of the identification diagram 110 and the positioning plane 121 on the test positioning frame 120 are parallel to each other, so the plane of the PCB 21 and the plane of the identification diagram 110 are parallel to each other, and then according to the image of the identification diagram, the first angle between the identification diagram 110 and the image sensor 22 is calculated, and the second angle between the image sensor 22 and the PCB 21 is obtained through the first angle. In this way, the angle between the image sensor 22 and the PCB 21 can be tested without disassembling the camera module, thereby improving the test efficiency.

[0059] Furthermore, in step S2, the relative positions of the identification pattern 110 and the test positioning frame 120 are adjusted by a laser testing instrument so that the plane of the identification pattern 110 and the positioning plane 121 are parallel to each other, and so that the PCB 21 and the plane of the identification pattern 110 are parallel to each other.

[0060] For further information, see Figure 5 As shown, at least three identification points 111 are provided on the identification diagram 110. Since three points can form a plane, by providing at least three identification points 111 on the identification diagram 110, it is convenient to calculate the plane equation of the identification diagram later. For example, preferably, each identification point 111 is in a circular structure.

[0061] Furthermore, in step S4, the calculation step of the first angle is:

[0062] S4-1: Establish a spatial rectangular coordinate system M with the center of the plane of the image sensor 22 as the origin, arbitrarily select three identification points 111 on the identification map 110 to form a right triangle, and calculate the coordinates of the three identification points 111 in the spatial rectangular coordinate system M; (any three points can determine a plane);

[0063] S4-2 obtains the plane equation of the plane of the identification diagram 111 in the space rectangular coordinate system M according to the coordinates of the three identification points 111 in the space rectangular coordinate system M;

[0064] S4-3, obtaining a first angle between the plane of the identification diagram 111 and the image sensor 22 according to the plane equation;

[0065] Further, please refer again to Figure 5As shown, there are five identification points 111, of which four identification points 111 constitute the four corners of the rectangle, and the remaining identification point 111 is located in the central area of ​​the rectangle. In this way, it is convenient to use each identification point 111 as a right-angle point and connect it with other identification points 111 to form a right triangle. In addition, setting an identification point 111 in the central area of ​​the identification diagram 110 can facilitate the adjustment of the shooting center of the camera module 20 to be tested, so that the shooting center is aligned with the identification point 111, thereby avoiding excessive position deviation of the camera module 20 to be tested and reducing the accuracy of the test results.

[0066] For further information, see Figure 2 and Figure 6 As shown, in step S4-1, the coordinates of the three identification points 111 in the spatial rectangular coordinate system M are obtained, and the specific steps are as follows:

[0067] First: let the coordinates of the center point on the plane of the image sensor 22 be (Cx, Cy, 0), the three identification points be point A, point B and point C, point B be the rectangular point, the coordinates of point B in the spatial rectangular coordinate system M are (x3, y3, z3), the coordinates of point A in the spatial rectangular coordinate system M are (x1, y1, z1), and the coordinates of point C in the spatial rectangular coordinate system M are (x2, y2, z2);

[0068] Second: Calculate the coordinates (x3, y3, z3) of point B in the spatial rectangular coordinate system M according to the following formula, specifically:

[0069]

[0070] Wherein, (x3', y3') represents the coordinates of the right angle point B on the image of the identification diagram 110 corresponding to the right angle point B' on the image sensor 22, H represents the distance from the surface of the lens 23 on the camera module 20 to the identification diagram 110, and S represents the distance from the surface of the lens 23 in the camera module 20 to the image sensor 22. According to the formula F is the focal length of the camera module to be tested. The value of H can be directly obtained by measurement.

[0071] Third: Calculate the coordinates (x1, y1, z1) of point A in the spatial rectangular coordinate system M according to the following formula, specifically:

[0072]

[0073] Wherein (x1′, y1′) represents the coordinates of point A on the image of the identification diagram 110 corresponding to point A′ on the image sensor 22, and z1 is an unknown number;

[0074] Fourth: Calculate the coordinates (x2, y2, z2) of point C in the spatial rectangular coordinate system M according to the following formula, specifically:

[0075]

[0076] Wherein (x2', y2') represents the coordinates of point C on the logo image corresponding to point C' on the image sensor, and z2 is an unknown number.

[0077] It should be noted that the calculation principle of point A and point C is the same as that of point B.

[0078] Fifth: Solve the value of z1 and z2: It is known that point A, point B and point C form a right triangle, and point B is a right angle point, then BA and BC form a right angle side, and establish the following equations:

[0079]

[0080] According to the set of equations, calculate the z1 value and z2 value.

[0081] The specific steps are as follows:

[0082] Substituting the coordinates of point A, point B, and point C into the above equations, the specific equations obtained are:

[0083]

[0084] Since the above equations are nonlinear, Newton iteration method is used to solve them.

[0085] Assume: F (z1, z2) = (x3-x1, y3-y1, z3-z1)·(x3-x2, y3-y2, z3)

[0086] G(z1,z2)=n*n(x3-x1) 2 +(y3-y1) 2 +(z3-z1) 2 )-(x3-x2) 2 +(y3-y2) 2 +(z3-z2) 2

[0087] Set an initial value for z1 and z2 and substitute into the following formula:

[0088]

[0089] Here, 10 iterations are used for approximation, and the initial values ​​of z1 and z2 are generally substituted by H.

[0090] Solving z1 and z2 from the equations, we can get the coordinates of point A, point B and point C in the spatial rectangular coordinate system M. According to the coordinates of the three marking points in the spatial rectangular coordinate system M, we can get the plane equation of the plane of the marking figure where the three marking points are located in the spatial rectangular coordinate system M.

[0091] Furthermore, three points can determine a plane, but in order to reduce the error, it is necessary to solve more identification points 111 on the identification map 110 and use the least square method for fitting. That is, the least square method is used to fit the plane equation, specifically:

[0092] According to the general expression of the plane equation: A*x+B*y+C*z+D=0;

[0093] Conclusion Let -A / C be a, -B / C be b, and -D / C be c, and we get the plane equation: z = a*x+b*y+c; let

[0094]

[0095] Solve to obtain the values ​​of a, b, and c to obtain the plane equation z = a *x + b*y + c.

[0096] Further, according to the plane equation: z=a*x+b*y+c, three points are randomly selected on the plane equation, and the angle between the plane of the identification diagram 110 and the spatial rectangular coordinate system M is calculated according to the following formula to obtain the first angle between the image sensor 22 in the camera module and the plane of the identification diagram 110:

[0097]

[0098] Further, after obtaining the plane equation in step S4-2, three points can be randomly selected on the plane equation to obtain the first angle between the plane of the identification image 110 and the spatial rectangular coordinate system M (ie, the image sensor). An example is as follows:

[0099] x1=-100, y1=-100, substitute into the equation to get z1;

[0100] x2=-100, y2=100, substitute into the equation to get z2;

[0101] x3=100, y2=100, substitute into the equation to get z3;

[0102]

[0103] In one embodiment, a positioning area is provided on the positioning plane 121, and positioning members are provided around the periphery of the positioning area. When the camera module 20 to be tested is placed on the positioning area, the positioning members are used to perform positioning operations on the camera module 20 to be tested, so that the shooting center of the camera module 20 to be tested is aligned with the center of the identification diagram. This can prevent the position deviation of the camera module 20 to be tested from being too large, thereby affecting the accuracy of the shooting result.

[0104] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A method for testing the angle between an image sensor of a camera module and a PCB, characterized in that: include: S1: prepare a test device: the test device includes an identification diagram and a test positioning frame, the test positioning frame is provided with a positioning plane, and the camera module to be tested is placed on the positioning plane; S2: adjusting the test device: adjusting the relative positions of the identification diagram and the test positioning frame so that the plane of the identification diagram and the positioning plane on the test positioning frame are parallel to each other, and so that the PCB in the camera module to be tested and the plane of the identification diagram are parallel to each other; S3: obtaining the logo image by photographing the logo image through the camera module to be tested to obtain the logo image; S4: calculating a first angle between the image sensor in the camera module to be tested and the plane of the logo image according to the logo image; S5: Calculate a second angle between the image sensor and the PCB according to the first angle and knowing that the plane of the identification pattern is parallel to the positioning plane.

2. The method for testing the angle between the camera module image sensor and the PCB according to claim 1, characterized in that: In step S2, the relative positions of the identification pattern and the test positioning frame are adjusted by a laser testing instrument so that the plane of the identification pattern and the positioning plane are parallel to each other, and so that the PCB and the plane of the identification pattern are parallel to each other.

3. The method for testing the angle between the camera module image sensor and the PCB according to claim 1, characterized in that: At least three marking points are arranged on the marking map.

4. The method for testing the angle between the camera module image sensor and the PCB according to claim 3, characterized in that: Each of the marking points is in a circular structure.

5. The method for testing the angle between the camera module image sensor and the PCB according to claim 4, characterized in that: In step S4, the calculation step of the first angle is: S4-1: Establishing a spatial rectangular coordinate system M with the center on the image sensor plane as the origin, arbitrarily taking three identification points on the identification map to form a right triangle, and calculating the coordinates of the three identification points in the spatial rectangular coordinate system M; S4-2 obtaining a plane equation of the plane of the identification diagram in the space rectangular coordinate system M according to the coordinates of the three identification points in the space rectangular coordinate system M; S4-3 obtains a first angle between the plane of the identification image and the image sensor according to the plane equation.

6. The method for testing the angle between the camera module image sensor and the PCB according to claim 5, characterized in that: There are five marking points, four of which constitute the four corners of the rectangle, and the remaining marking point is located in the central area of ​​the rectangle.

7. The method for testing the angle between the camera module image sensor and the PCB according to claim 6, characterized in that: In the step S4-1, the coordinates of the three identification points in the spatial rectangular coordinate system M are obtained, and the specific steps are as follows: Assume that the coordinates of the center point on the image sensor plane are (Cx, Cy), the three identification points are point A, point B and point C, point B is taken as a rectangular point, the coordinates of point B in the spatial rectangular coordinate system M are (x3, y3, z3), the coordinates of point A in the spatial rectangular coordinate system M are (x1, y1, z1), and the coordinates of point C in the spatial rectangular coordinate system M are (x2, y2, z2); The coordinates (x3, y3, z3) of point B in the spatial rectangular coordinate system M are calculated according to the following formula, the specific formula is: Wherein, (x3', y3') represents the coordinates of the right angle point B on the logo image corresponding to the right angle point B' on the image sensor, H represents the distance from the lens surface on the camera module to the logo image, and S represents the distance from the lens surface in the camera module to the image sensor. According to the formula F is the focal length of the camera module to be tested; The coordinates (x1, y1, z1) of the point A in the spatial rectangular coordinate system M are calculated according to the following formula, specifically: Wherein (x1', y1') represents the coordinates of point A on the logo image corresponding to point A' on the image sensor, and z1 is an unknown number; The coordinates (x2, y2, z2) of the point C in the spatial rectangular coordinate system M are calculated according to the following formula, specifically: Wherein (x2', y2') represents the coordinates of point C on the logo image corresponding to point C' on the image sensor, and z2 is an unknown number; Solve the value of z1 and z2: It is known that point A, point B and point C form a right triangle, and it is known that point B is a right angle point, then BA and BC form a right angle side, and establish the following equation group: According to the set of equations, calculate the z1 value and z2 value.

8. The method for testing the angle between the image sensor of a camera module and a PCB according to claim 7, characterized in that: The least square method is used to fit the plane equation, specifically: According to the general expression of the plane equation: A*x+B*y+C*z+D=0; Conclusion Let -A / C be a, -B / C be b, and -D / C be c, and we get the plane equation: za*x+b*y+c; Solve to obtain the values ​​of a, b, and c to obtain the plane equation za*x+00*y+c.

9. The method for testing the angle between the image sensor of the camera module and the PCB according to claim 8, characterized in that: According to the plane equation: za*x+0*y+c, three points are randomly selected on the plane equation, and the angle between the plane of the identification pattern and the spatial rectangular coordinate system M is calculated according to the following formula to obtain a first angle between the image sensor and the plane of the identification pattern:

10. The method for testing the angle between the image sensor of a camera module and a PCB according to claim 1, characterized in that: A positioning area is provided on the positioning plane, and positioning pieces are provided around the periphery of the positioning area. When the camera module to be tested is placed on the positioning area, the positioning pieces are used to perform positioning operations on the camera module to be tested so that the shooting center of the camera module to be tested is aligned with the center of the identification image.