CN108259894B - Testing device and testing method for assembly errors of camera module - Google Patents

Testing device and testing method for assembly errors of camera module Download PDF

Info

Publication number
CN108259894B
CN108259894B CN201810277897.0A CN201810277897A CN108259894B CN 108259894 B CN108259894 B CN 108259894B CN 201810277897 A CN201810277897 A CN 201810277897A CN 108259894 B CN108259894 B CN 108259894B
Authority
CN
China
Prior art keywords
test
camera
image
sample point
point
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
CN201810277897.0A
Other languages
Chinese (zh)
Other versions
CN108259894A (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.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201810277897.0A priority Critical patent/CN108259894B/en
Publication of CN108259894A publication Critical patent/CN108259894A/en
Application granted granted Critical
Publication of CN108259894B publication Critical patent/CN108259894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a device and a method for testing assembly errors of a camera module. The method comprises the following steps: acquiring the position of an image point of a first test sample point on a first test pattern sample plate in a test image shot by a camera as a first position; judging whether the first position is superposed with the central point of the test image or not; and if the alignment is not coincident, determining the type of the assembly error between the camera and the camera base in the camera module according to the position of the reference test sample point pair in at least one group of test sample point pairs on the first test pattern template in the test image. The invention can accurately detect the assembly precision of the camera and the camera base.

Description

Testing device and testing method for assembly errors of camera module
Technical Field
The invention relates to the technical field of camera module assembly, in particular to a device and a method for testing assembly errors of a camera module.
Background
At present, many optical tracking systems employ a camera as a main or auxiliary component to track the position of a target by using the optical performance of the camera. For example, in a Virtual Reality (VR) product, a camera module may be installed on a VR head display, and the camera module detects a change in an external environment of the VR head display, and then calculates a spatial position of the VR head display by using a computer or other algorithm chip.
In the application scenario, in order to ensure that the optical tracking system has higher tracking accuracy, the assembly accuracy of the camera is very important. Therefore, a method for testing assembly errors of a camera module is needed.
Disclosure of Invention
The invention provides a device and a method for testing assembly errors of a camera module, which are used for accurately detecting the assembly accuracy of a camera and a camera base in the camera module.
The invention provides a method for testing assembly errors of a camera module, which comprises the following steps: the await measuring camera module, the await measuring camera module includes: the camera comprises a camera base and a camera; the first test pattern template is arranged in the light emitting direction of the camera module and is parallel to the camera base; and a processor electrically connected with the camera; the first test pattern sample plate comprises a first test sample point passing through a central shaft of the camera base and at least one group of test sample point pairs; wherein, a set of survey sample point pairs includes: two test sampling points which are on the same straight line with the first test sampling point and have the same distance with the first test sampling point; the processor is used for determining the type and/or error value of the assembly error between the camera and the camera base in the camera module to be tested according to the position of the first test sampling point and/or the at least one group of test sampling points in the test image shot by the camera.
Further optionally, the apparatus further comprises: the second test pattern template is arranged between the camera and the first test pattern template and is parallel to the first test pattern template; the second test pattern template is a light-transmitting pattern template and comprises a second test sample point penetrating through a central shaft of the camera base.
Further optionally, the first test pattern template comprises a set of test sample point pairs; the group of test sample point pairs are rotatable around the first test sample point on the first test chart sample plate; or, the first test pattern template comprises a plurality of groups of test sample point pairs; the plurality of groups of test sample point pairs are distributed in all directions on the first test pattern sample plate.
The invention also provides a method for testing the assembly error of the camera module, which comprises the following steps: acquiring the position of an image point of a first test sample point on a first test pattern template in a test image shot by a camera in a camera module as a first position; judging whether the first position is superposed with the central point of the test image or not; and if the alignment is not coincident, determining the type and/or error value of the assembly error between the camera and the camera base in the camera module according to the position of the reference test sample point pair in at least one group of test sample point pairs on the first test pattern template in the test image.
Further optionally, determining a type and/or an error value of an assembly error between the camera and the camera base in the camera module according to a position of a reference test sample point pair in at least one group of test sample point pairs on the first test pattern sample plate in the test image, includes: acquiring the positions of at least one group of test sample point pairs on the first test pattern template in the test image; judging whether the reference test sample point pairs in the specified direction in the at least one group of test sample point pairs meet set conditions; the setting conditions are as follows: detecting that the distances from the positions of the two test sample points in the test sample point pair in the test image to the first position are not equal; and if so, determining that the assembling of the camera and the camera base has a tilt error.
Further optionally, the method further comprises: determining a tilt error value from the first position and/or the position of the reference test sample in the test image.
Further optionally, the method further comprises: if the reference test sample point pair does not meet the set condition, acquiring the position of the image point of a second test sample point on a second test pattern sample plate in the test image as a second position; and if the second position is superposed with the first position, determining that the assembly of the camera and the camera base has a tilt error.
Further optionally, the method further comprises: and determining the inclination direction of the camera according to the offset direction of the first position relative to the central point of the test image and/or the position of the reference test sample point on the first test pattern plate.
Further optionally, the method further comprises: and if the second position is not coincident with the first position, determining that a translation error exists in the assembly of the camera and the camera base.
Further optionally, the method further comprises: determining the translation direction of the camera according to the offset direction of the first position relative to the central point of the test image; and/or determining a translation error value from the first position and/or the position of the reference test point pair in the test image.
In the testing device for detecting the assembly error of the camera assembly, the first testing chart sample plate and the processor are additionally arranged besides the camera assembly to be tested, so that the device is simple in structure and low in cost. The first test pattern sample plate comprises a first test sample point penetrating through a central shaft of the camera base and at least one group of test sample point pairs, whether an assembling error exists between the camera and the camera base or not can be accurately detected by analyzing image points corresponding to the test sample points shot by the camera to be detected, the type and the error value of the assembling error are detected, and the high-precision detection of the assembling error of the camera and the camera base is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a device for testing assembly errors of a camera module according to an embodiment of the present invention;
fig. 2 is a schematic optical path diagram of a camera module according to an embodiment of the present invention when assembled without error;
fig. 3 is a schematic diagram of an optical path when a translational error exists in the assembly of the camera module according to an embodiment of the present invention;
fig. 4 is a schematic optical path diagram illustrating a camera module assembly according to an embodiment of the present invention when a tilt error exists;
fig. 5 is a schematic optical path diagram of a camera module according to another embodiment of the present invention when assembled without error;
fig. 6 is a schematic optical path diagram illustrating a camera module according to another embodiment of the present invention when a translational error exists in the assembly;
fig. 7 is a schematic optical path diagram illustrating a camera module according to another embodiment of the present invention when there is a tilt error during assembly;
fig. 8a is a schematic structural diagram of a first test pattern sample 12 according to an embodiment of the present invention;
fig. 8b is a schematic structural diagram of a first test pattern sample plate 12 according to another embodiment of the present invention;
fig. 9 is a flowchart of a method for testing an assembly error of a camera module according to an embodiment of the present invention;
fig. 10 is a flowchart of a method for testing an assembly error of a camera module according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a device for testing assembly errors of a camera module according to an embodiment of the present invention, as shown in fig. 1, the device includes: the test system comprises a camera module 00 to be tested, a first test chart template 12 and a processor 13, wherein the camera module 00 to be tested consists of a camera base 10 and a camera 11.
As shown in fig. 1, the first test pattern sample 12 is disposed in the light emitting direction of the camera module 00 and parallel to the camera base 10. That is, the central axis of the camera base 10 is perpendicular to the test pattern plate 12. The processor 13 is electrically connected to the camera 11. Wherein the first test pattern plate 12 comprises a first test pattern point passing through the central Axis1 of the camera base 10, such as point B shown in fig. 1, and at least one set of test pattern point pairs; wherein, a set of survey sample point pairs includes: two test spots which are on the same straight line with the first test spot B and have the same distance to the first test spot B, such as a point a and a point C shown in fig. 1.
In the detection device shown in fig. 1, the camera base 10 and the camera 11 in the camera module 00 to be tested are in an assembled state, and besides the camera module 00 to be tested, a first test chart sample plate 12 and a processor 13 need to be added, so that the device is simple in structure and low in cost. The camera base 10 may be made of plastic or other possible materials for fixing the camera 11. And the processor 13 is used for determining the type of the assembly error of the camera 11 and the camera base 10 according to the position of the first test sample point B and/or the at least one group of test sample points in the test image shot by the camera 11. The processor 13 may be implemented using various Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), micro-central control elements, microprocessors or other electronic components and circuits external thereto. It should be noted that the camera 11 of the present invention includes: the lens is coaxially arranged and used for imaging and focusing, and the image sensor is used for converting the image into an electric signal; and the circuit board is used for power supply control, signal transmission and external interface. Wherein the processor 13 may be electrically connected to the camera 11 through the circuit board.
In the assembly error testing process, the camera 11 may shoot the first test pattern template 12 to obtain a test image. The test image comprises image points corresponding to the imaging of the test sampling points on the image sensor of the camera.
As shown in fig. 2, when there is no error or very small error in assembling the camera module 00 to be tested, the camera 11 and the camera base 10 have no translation or no inclination. In the case of no translation and no tilt, the central Axis1 of the camera base 10 coincides with the optical Axis2 of the camera 11, and the first test spot B passing through Axis1 similarly passes through Axis 2. For the image sensor of the camera 11, a point on the optical axis is imaged at the center point of the image sensor, that is, the first test sampling point B is imaged at the center position of the image sensor of the camera 11, corresponding to the image point B'; a set of test sample points a and C are imaged on the image sensor of the camera 11 at positions that are distant from the center point Δ H, corresponding to the image points a 'and C'. According to the triangular geometrical relationship, Δ H ═ M × F/L.
Wherein F is the focal length of the camera 11, M is the distance from two test sample points in the at least one test sample point pair to the first test sample point B, and L is the distance from the first test pattern sample plate 12 to the camera 11. That is, when there is no error or an error is extremely small in assembly, there are the following features: imaging a first test sampling point B at the central position of an image sensor of the camera 11; the test pattern points with equal spacing on the first test pattern sample plate are imaged on the image points of the image sensor of the camera 11 with equal spacing, i.e. Δ H ═ M × F/L.
Based on the above feature, it can be determined whether there is a translational or tilting error between the camera 11 and the camera base 10.
When there is a translational error between the camera 11 and the camera base 10 by an error value d (d is a deviation value of the optical Axis2 of the camera 11 with respect to the central Axis1 of the camera base 10), as shown in fig. 3:
the first test sampling point B is not imaged at the center point of the image sensor of the camera 11, but imaged at a position deviated from the center point Δ B ', corresponding to the image point B ', according to the geometric relationship Δ B ' ═ d × F/L; a is imaged at a position on the image sensor away from a central point delta A ', wherein delta A ═ M-d ═ F/L corresponds to an image point A'; c is imaged on the image sensor at a position away from the center point ac ═ M + d × F/L, corresponding to the image point C'. In this case, the pitch Δ B 'C' of B 'and C' is M × F/L, and the pitch Δ a 'B' of a 'and B' is M × F/L. That is, when the translation error d exists, the following features are provided: imaging a first test sample point B at a position deviating from a central point delta B' of an image sensor; second, the test pattern points with equal spacing on the first test pattern sample plate are imaged on the image points of the image sensor of the camera 11 with equal spacing.
When there is a tilt error between the camera 11 and the camera base 10 by an error value θ (θ is a rotation angle of the optical Axis2 of the camera 11 with respect to the central Axis1 of the camera base 10), as shown in fig. 4:
the first test sampling point B is not imaged at the center point of the image sensor of the camera 11, but imaged at a position deviated from the center point Δ B ', corresponding to the image point B ', according to the geometric relationship Δ B ' ═ F × tan θ; imaging a test sample point A on the image sensor at a position away from a central point delta A ', wherein delta A ' is F tan [ theta + arctan (M/L) ], and corresponds to an image point A '; the test pattern points C are imaged at positions on the image sensor away from the center point Δ C ', where Δ C ═ (F × tan [ arctan (M/L) - θ ]), corresponding to the image points C ', in which case the distance Δ B ' C ' between B ' and C ' is no longer equal to the distance Δ a ' B ' between a ' and B ', i.e. when there is a tilt error θ, there is a characteristic that (i) the first test pattern points B are imaged at positions away from the center point Δ B ' of the image sensor, and (ii) the equally spaced test pattern points on the first test pattern template are imaged at positions other than equally spaced image points on the image sensor of the camera 11.
A comparison of fig. 2, 3 and 4 may lead to the conclusion that when the first test spot B is imaged at the image sensor center point of the camera 11, it may be determined that there is very little, negligible error between the camera 11 and the camera base 10. When the first test sample point B is imaged at a position deviated from the central point Δ B' of the image sensor, it can be determined that there is a translational error or a tilt error between the camera 11 and the camera base 10. Further, the specific existence of the tilt error or the translation error can be judged through the value of Δ B', or the specific existence of the tilt error or the translation error can be judged by judging whether the image points of the image sensor of the camera 11 imaged by the equally spaced test sample points on the first test pattern plate 12 are equally spaced. When the image points are equidistant, determining that a translation error exists, and when the image points are not equidistant, determining that a tilt error exists. After determining that a translation or tilt error exists, a reverse derivation can be made from Δ B ', ' Δ a ' and/or ' Δ C ' to determine an actual error value.
In practice, due to the pixel size of the image sensor of the camera 11, when there is a tilt error, the distance between the pixels of the image sensor of the camera 11, where the equally spaced test pattern points on the first test pattern plate 12 are imaged, is relatively small and difficult to detect. That is, when the detection result indicates that the test pattern points with equal spacing on the first test pattern plate 12 are imaged with equal spacing between the image points of the image sensor of the camera 11, there may be two cases, first, the spacing between the image points is exactly equal; second, the image points are not equally spaced, but the difference in distance is too small to be detected, in which case it is not possible to determine that a translation error or a tilt error is present. For example, assuming that the tilt error value is 0.05 °, if F is 1.8mm, L is 1000mm, and M is 100mm, then:
△A’=1.8*tan[0.05°+arctan(100/1000)]≈0.181587
△C’=1.8*tan[arctan(100/1000)-0.05°]≈0.178414
assuming that the pixel size of the image sensor of the camera is 3mm, then:
Δ a '≈ 0.181587 ≈ 3mm 0.544761mm, Δ C' ≈ 0.178414 ≈ 3mm 0.535242 mm. The difference between the delta A 'and the delta C' is 0.0095mm, the difference is very small and is not easy to distinguish, and the detection result is likely to indicate that the delta A 'is equal to the delta C'.
Alternatively, the present invention provides a device for testing assembly errors of a camera assembly as shown in fig. 5, which can determine that there is a translation error or a tilt error between the camera 11 and the camera base 10 when detecting that the distances between the image points of the equidistant test sample points imaged on the image sensor of the camera 11 are not equal or when detecting that the distances between the image points of the equidistant test sample points imaged on the image sensor of the camera 11 are equal.
As shown in fig. 5, the test apparatus further includes: and a second test pattern sample plate 14 disposed between the camera 11 and the first test pattern sample plate 12 and parallel to the first test pattern sample plate 12. The second test pattern plate 14 is a transparent pattern plate so that the camera 11 can capture the first test image plate 11. The second test pattern plate 14 includes a second test pattern point B1 passing through the central Axis1 of the camera base 10. In fig. 5, the second test pattern sample plate 14 is marked at a distance L/X from the first test pattern sample plate 12.
As shown in fig. 5, when there is no error or an error is very small in the assembly of the camera 11, the second test coupon B1 is imaged on the image sensor center point of the camera 11.
When there is a translation error with an error value d between the camera 11 and the camera base 10, as shown in fig. 6, the second test sampling point B1 is imaged on the image sensor at a position deviating from the central point Δ B1 ', corresponding to the image point B1 ', and does not coincide with B ' according to the geometric relationship Δ B1 ' ═ X × M F/L, B1 '.
When there is a tilt error with an error value θ between the camera 11 and the camera base 10, as shown in fig. 7, the second test sample point B1 is imaged on the image sensor at a position deviated from the central point Δ B1 ', corresponding to the image point B1 ', according to the geometric relationship Δ B1 ' ═ F × tan θ, that is, B1 ' and B ' are overlapped.
Based on fig. 5, 6 and 7, when it is determined that there is a translational error or a tilt error between the camera 11 and the camera base 10, it is further possible to determine whether there is a tilt error or a translational error by whether B1 'and B' coincide with each other. When B1 'coincides with B', determining that there is a tilt error; and when the two are not coincident, determining that a translation error exists.
In an alternative embodiment, the first test pattern sample plate 12 may be as shown in fig. 8 a. In fig. 8a, a set of pairs of test sample points is included on the first test pattern plate 12, and the set of pairs of test sample points is rotatable on the first test pattern plate 12 about the first test sample point B. Further, in testing the assembly error, the pair of test spots may be rotated to each direction in which error detection is required, for example, a horizontal direction, a vertical direction, or a 45 ° oblique direction, etc., to test whether the camera 11 is aligned with the camera base 10 in each direction. In an alternative configuration, the first test pattern template 12 may include a first layer plate having a test pattern point a at the center thereof and a second layer plate having a set of symmetrical test pattern points on the center thereof. A rotating shaft is arranged at a test sample point A at the center of the first layer plate, a through hole with the diameter matched with the rotating shaft is arranged at the center of the second layer plate, and the second layer plate is arranged on the rotating shaft through the through hole. Further, a set of pairs of test spots on the second layer may be rotated about the first test spot B by rotating the second layer.
In an alternative embodiment, the first test pattern sample plate 12 comprises a plurality of sets of pairs of test sample points distributed in respective directions of the first test pattern sample plate 12 where error detection is required. For example, a horizontal direction, a vertical direction, or a 45 ° oblique direction, a 30 ° oblique direction, etc. Alternatively, the first test pattern plate 12 may be as shown in fig. 8 b. Fig. 8b is an illustration of a plurality of groups of test pattern points uniformly distributed on the first test pattern plate 12, but it should be understood that the embodiment of the present invention is not limited to whether the plurality of groups of test pattern points are uniformly distributed. In the process of testing the assembly error, after determining the direction in which error detection is required, the imaging position of the test sample point in the direction on the image sensor of the camera 11 can be acquired to detect whether the camera 11 is aligned with the camera base 10 in the direction.
The first test pattern templates 12 of the two different structures are all optional test pattern templates according to the embodiment of the present invention, and in practice, the embodiment of the present invention is not limited to any one. Optionally, as shown in fig. 8a and 8b, the test sample points on the first test chart sample plate 12 may be cross feature points, rice-shaped feature points, Y-shaped feature points, circular feature points, or circular feature points, and the embodiment is not limited.
In this embodiment, the first test sample point on the first test pattern sample plate and the at least one group of test sample point pairs can be imaged on the image sensor of the camera 11, and then whether an assembly error, a type of the assembly error, and an error value exist between the camera and the camera base can be accurately detected by analyzing the image points on the image sensor.
The foregoing embodiments describe the device for testing the assembly error of the camera module, and the following sections will specifically describe the method for testing the assembly error of the camera module provided by the present invention with reference to the accompanying drawings.
Fig. 9 is a flowchart of a method for testing an assembly error of a camera module according to an embodiment of the present invention, and with reference to fig. 9, the method includes:
step 901, obtaining a position where an image point of a first test sample point on a first test pattern sample plate is located in a test image shot by a camera in a camera module as a first position.
Step 902, judging whether the first position coincides with the central point of the test image; if not, go to step 903.
Step 903, determining the type and/or error value of the assembly error between the camera and the camera base in the camera module according to the position of the reference test sample point pair in the at least one group of test sample point pairs on the first test pattern sample plate in the test image.
In this embodiment, the test image is an image captured by the camera on the first test pattern template, and the test image includes an image point corresponding to the test sample point imaged on the image sensor of the camera.
The first position, i.e., the first test spot passing through the central axis of the camera base, is imaged onto an image point on the image sensor of the camera. Based on the description in the embodiment corresponding to fig. 2-4, if the first position is not coincident with the central point of the test image, that is, the first test sample point B is not imaged at the central point of the image sensor, it is determined that there is an error between the camera and the camera base, and the type of the error may be a tilt error or a translation error.
Further, based on the description of the embodiment corresponding to fig. 2-4, the specific existence of the tilt error or the translation error can be judged by the position of the reference sample point pair in the test image in at least one set of test sample point pairs on the first test pattern template. And the reference test sample point pair is a test sample point pair selected for judging the assembly error in the at least one group of test sample point pairs. For example, the at least one set of pairs of test spots, pairs of test spots located in a horizontal direction or pairs of test spots located in a vertical direction may be used.
In this embodiment, in the test apparatus for detecting the assembly error of the camera assembly, the first test pattern template and the processor are added in addition to the test piece, so that the apparatus has a simple structure and is low in cost. Whether there is the assembly error between camera and the camera base, the type and the error value of assembly error, the high accuracy that has realized the assembly error of camera is detected to the first test pattern model on contain the first test sampling point that passes the center pin of camera base to and at least a set of test sampling point pair, through the image point that the above-mentioned test sampling point that the analysis was shot by waiting to detect the camera corresponds, can be accurate detect out.
The foregoing embodiments briefly describe a method for testing assembly errors of a camera module, and a detailed implementation of the method will be described in detail with reference to the accompanying drawings. Fig. 10 is a flowchart of a method for testing assembly errors of a camera module according to another embodiment of the present invention, and with reference to fig. 10, the method includes:
step 1001, obtaining a position where an image point of a first test sample point on a first test pattern sample plate is located in a test image shot by a camera, and taking the position as a first position.
Step 1002, judging whether the first position is superposed with the central point of the test image; if not, go to step 1003; and if so, determining that no error exists in the assembly of the camera and the camera base.
Step 1003, obtaining the position of at least one group of test sample point pairs on the first test pattern template in the test image.
Step 1004, judging whether the reference test sample point pairs in the specified direction of the at least one group of test sample point pairs meet set conditions; the setting conditions are as follows: detecting that the distances from the positions of the two test sample points in the test sample point pair in the test image to the first position are not equal; if yes, go to step 1005; if not, go to step 1007.
And 1005, determining that the assembling of the camera and the camera base has a tilt error.
Step 1006, determining a tilt error value according to the first position and/or the position of the reference test sample point in the test image.
Step 1007, obtaining the position of the image point of the second test sample point on the second test pattern sample plate in the test image as the second position.
Step 1008, judging whether the second position is coincident with the first position; if so, go to step 1005; if not, go to step 1009.
And 1009, determining that a translation error exists in the assembly of the camera and the camera base.
Step 1010, determining a translation error value based on the first position and/or the position of the reference test point pair in the test image.
In step 1002, when the first position coincides with the center point of the test image, that is, the first test sample point B is imaged on the center point of the image sensor, it can be considered that there is no assembly error between the camera and the camera base as shown in fig. 2.
In step 1004, specifically, a designated direction may be determined as an error detection direction, such as a horizontal direction or a vertical direction, and the pair of test sample points located in the designated direction on the first test pattern plate may be used as the pair of reference test sample points. For example, when the first test pattern template is shown in fig. 8a, after the specified direction is determined, a set of test pattern points on the first test pattern template may be rotated to the specified direction as reference test pattern point pairs. When the first test pattern template is shown in fig. 8b, the pair of test sample points located in the designated direction on the first test pattern template may be used as the reference test sample points. The reference test sampling point pair satisfies the set condition, that is, it is detected that the distances from the positions of the two test sampling points in the reference test sampling point pair in the test image to the first position are not equal, as shown in fig. 4.
In step 1005, it can be determined that there is a tilt error in the assembly of the camera head and the camera head base according to the description of the embodiment of fig. 4.
In step 1006, after determining that a tilt error exists, a tilt error value θ may be determined based on the first location and/or the location of the reference test sample point in the test image. In this step, the method of calculating θ may be as follows:
optionally, according to tan θ1Δ B 'may be calculated based on the first position B', and θ ═ θ ·1=arctan[△B’/F]。
Optionally, according to tan [ theta ]2+arctan(F*M/L)]Δ C 'may be calculated based on the position C' of one of the reference test sample points C in the test image, and θ ═ θ ═ θ ·2= arctan(△C’/F)-arctan(F*M/L)。
Optionally, according to tan [ arctan (F M/L) -theta3]Δ a 'may be calculated based on the position a' of one of the reference test sample points a in the test image, and θ ═ θ ═ θ3=arctan (F*M/L)-arctan(△A’/F)。
Optionally, in this embodiment, θ may also be1、θ2And theta3Average value of (2)As a tilt error value, that is, θ ═ θ (θ)123)/3。
Optionally, in this step, the tilt direction of the camera may be determined according to the offset direction of the first position relative to the central point of the test image, and it should be understood that the tilt direction is in the connecting line direction of the first position and the central point of the test image.
Optionally, if the reference test sample point pair meets the set condition, the tilt direction of the camera may be determined according to the position of the reference test sample point pair on the first test chart sample plate in this step. For example, if the reference test pattern point pair is located in the horizontal direction on the first test pattern plate, the camera may be considered to be tilted in the horizontal direction.
In step 1007, if the reference test point pair does not satisfy the setting condition, it may be determined that the distances from the positions of the two test points in the reference test point pair in the test image to the first position are equal. In one case, as shown in fig. 3 corresponding to the embodiment, it is considered that there is a translation error between the camera and the camera base, and the test pattern points with equal spacing are imaged between the image points of the image sensor of the camera.
In another case, when the reference test pattern point pair does not satisfy the setting condition, it may be considered that there is a tilt error between the camera and the camera base, but the difference between the distances from the positions of the two test patterns in the reference test pattern point pair to the first position in the test image is not detected due to the large pixel size of the image sensor of the camera and the insufficient resolution. In this case, the error detection can be performed by means of the second test pattern plate based on the description of the corresponding embodiment of fig. 5-7. When the second position corresponding to the second test pattern point on the second test pattern plate does not coincide with the first position, as shown in fig. 6, it can be determined that there is a translational error in the assembly of the camera head and the camera head base according to the description of the embodiment corresponding to fig. 6. When the second position corresponding to the second test pattern point on the second test pattern plate coincides with the first position, as shown in fig. 7, it can be determined that there is a tilt error in the assembly of the camera and the camera base according to the description of the embodiment corresponding to fig. 7.
In step 1010, when it is determined that a translation error exists, a translation error value d may be calculated according to a triangle similarity principle. Alternatively, Δ B 'may be calculated based on the first position B' in accordance with d/L ═ Δ B '/F, then d ═ L ═ Δ B'/F. Alternatively, from (M-d)/L ═ Δ a '/F, Δ a' may be calculated based on the position a 'in the test image of one of the reference test spots, and d ═ M-L ═ Δ a'/F. Alternatively, depending on (d + M)/L ═ Δ C '/F, Δ C' may be calculated based on the position C 'of one of the reference test spots in the test image, and d ═ L ═ Δ a'/F-M.
Optionally, the method further includes: and determining the translation direction of the camera according to the offset direction of the first position relative to the central point of the test image. It should be understood that the direction of the tilt is in the direction of the line connecting the first position and the center point of the test image.
Optionally, in this step, the translation direction of the camera may be determined according to the position of the reference test sample point pair on the first test pattern plate. For example, if the reference test pattern point pair is located in the horizontal direction on the first test pattern plate, the camera may be considered to have translated in the horizontal direction.
In a practical application scenario, when a translation error of more than 1mm occurs in an actual assembly process, tolerance control can be easily performed. That is, when the error detection result indicates that the assembly has a translation error of 1mm or more, the assembly error can be directly considered to be caused by the translation error according to engineering experience. For example, if d is 1mm, Δ B' is d, F/L is 1.8/500 is 0.0036mm under the condition that F is 1.8mm and L is 500 mm. If the distance difference of 0.036mm is considered to be caused by the tilt error, 0.036mm is F × tan θ, and θ is arctan (0.0036/1.8) 0.11459 °. That is, the error detection result indicating that the assembly has a translational error of 1mm can be considered to be caused by a tilt error of 1.1458 °. It should be understood that, in practice, when the error detection result indicates that there are translation error values of other values greater than 1mm in the assembly, the alternative relationship with the tilt error may be calculated according to the above process, and will not be described again.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. The utility model provides a testing arrangement of camera module equipment error which characterized in that includes:
the await measuring camera module, the await measuring camera module includes: the camera comprises a camera base and a camera; the first test pattern template is arranged in the light emitting direction of the camera module and is parallel to the camera base; and a processor electrically connected with the camera;
the first test pattern sample plate comprises a first test sample point passing through a central shaft of the camera base and at least one group of test sample point pairs; wherein, a set of survey sample point pairs includes: two test sampling points which are on the same straight line with the first test sampling point and have the same distance with the first test sampling point;
the processor is used for determining the type and/or error value of the assembly error between the camera and the camera base in the camera module to be tested according to the position of the first test sampling point and/or the at least one group of test sampling points in the test image shot by the camera.
2. The apparatus of claim 1, further comprising: the second test pattern template is arranged between the camera and the first test pattern template and is parallel to the first test pattern template;
the second test pattern template is a light-transmitting pattern template and comprises a second test sample point penetrating through a central shaft of the camera base.
3. The apparatus of claim 2, wherein the first test pattern plate comprises a plurality of test pattern point pairs; the group of test sample point pairs are rotatable around the first test sample point on the first test chart sample plate; or the like, or, alternatively,
the first test pattern template comprises a plurality of groups of test sample point pairs; the plurality of groups of test sample point pairs are distributed in all directions on the first test pattern sample plate.
4. A method for testing assembly errors of a camera module, which is applied to the testing device of claim 2 or 3, and comprises:
acquiring the position of an image point of a first test sample point on a first test pattern template in a test image shot by a camera in a camera module as a first position;
judging whether the first position is superposed with the central point of the test image or not;
and if the alignment is not coincident, determining the type and/or error value of the assembly error between the camera and the camera base in the camera module according to the position of the reference test sample point pair in at least one group of test sample point pairs on the first test pattern template in the test image.
5. The method of claim 4, wherein determining the type and/or error value of the assembly error of the camera head and the camera head base in the camera head module according to the position of the reference sample point pair of the at least one group of sample point pairs on the first test pattern plate in the test image comprises:
acquiring the positions of at least one group of test sample point pairs on the first test pattern template in the test image;
judging whether the reference test sample point pairs in the specified direction in the at least one group of test sample point pairs meet set conditions; the setting conditions are as follows: detecting that the distances from the positions of the two test sample points in the test sample point pair in the test image to the first position are not equal;
and if so, determining that the assembling of the camera and the camera base has a tilt error.
6. The method of claim 5, further comprising:
if the reference test sample point pair does not meet the set condition, acquiring the position of the image point of a second test sample point on a second test pattern sample plate in the test image as a second position;
and if the second position is superposed with the first position, determining that the assembly of the camera and the camera base has a tilt error.
7. The method of claim 5, further comprising:
and determining the inclination direction of the camera according to the offset direction of the first position relative to the central point of the test image and/or the position of the reference test sample point on the first test pattern plate.
8. The method according to any one of claims 5-7, further comprising:
determining a tilt error value from the first position and/or the position of the reference test sample in the test image.
9. The method of claim 6, further comprising:
and if the second position is not coincident with the first position, determining that a translation error exists in the assembly of the camera and the camera base.
10. The method of claim 9, further comprising:
determining the translation direction of the camera according to the offset direction of the first position relative to the central point of the test image; and/or the presence of a gas in the gas,
a translation error value is determined from the first position and/or the position of the reference test point pair in the test image.
CN201810277897.0A 2018-03-31 2018-03-31 Testing device and testing method for assembly errors of camera module Active CN108259894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810277897.0A CN108259894B (en) 2018-03-31 2018-03-31 Testing device and testing method for assembly errors of camera module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810277897.0A CN108259894B (en) 2018-03-31 2018-03-31 Testing device and testing method for assembly errors of camera module

Publications (2)

Publication Number Publication Date
CN108259894A CN108259894A (en) 2018-07-06
CN108259894B true CN108259894B (en) 2019-12-31

Family

ID=62747720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810277897.0A Active CN108259894B (en) 2018-03-31 2018-03-31 Testing device and testing method for assembly errors of camera module

Country Status (1)

Country Link
CN (1) CN108259894B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833909B (en) * 2018-07-16 2019-12-31 北京空间机电研究所 Dual-channel focal plane registration adjusting device and method
CN113365045B (en) * 2020-03-04 2022-10-11 余姚舜宇智能光学技术有限公司 Camera module detection method, device and system
CN113494884B (en) * 2020-04-08 2022-12-27 Oppo(重庆)智能科技有限公司 Electronic equipment lens detection device and method
CN113064247A (en) * 2021-03-29 2021-07-02 南昌欧菲光电技术有限公司 Multi-lens group shooting lens correction method and detection system
CN113155417B (en) * 2021-04-25 2022-10-18 歌尔股份有限公司 Offset state testing method, testing device and storage medium
CN115460399B (en) * 2022-10-26 2023-04-11 荣耀终端有限公司 Test equipment and test method of camera module

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506857B (en) * 2015-01-15 2016-08-17 阔地教育科技有限公司 A kind of camera position deviation detection method and apparatus
CN205408062U (en) * 2016-02-22 2016-07-27 信利光电股份有限公司 Module detection device makes a video recording
CN105744266B (en) * 2016-03-25 2018-09-04 宁波舜宇光电信息有限公司 The inclinometric system and measurement method of camera module
CN105758381B (en) * 2016-05-09 2018-05-22 深圳大学 A kind of camera module method for detecting its tilt based on spectrum analysis
CN107505120B (en) * 2017-09-18 2019-09-17 歌尔股份有限公司 Camera module optical center location measurement method and measuring device

Also Published As

Publication number Publication date
CN108259894A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108259894B (en) Testing device and testing method for assembly errors of camera module
JP3511450B2 (en) Position calibration method for optical measuring device
CN109901140B (en) Laser radar light path deviation detection method and device and terminal equipment
TWI510770B (en) Method for determining the tilt of an image sensor
CN107917695B (en) House inclination monitoring method based on image recognition technology
CN105423917B (en) The scaling method of Position-Sensitive Detector position error
KR20170137927A (en) Preconditioning apparatus and method for wafers
JP4905013B2 (en) Appearance inspection apparatus, appearance inspection method, height measurement method, and circuit board manufacturing method
JP2019197018A (en) Flatness detection method, flatness detection device and flatness detection program
CN104089582A (en) Metal film optical detection device and detection method
TW201616214A (en) Testing chart, camera module testing method and system using same
JP2000136944A (en) Device for measuring angle of rotation
KR102011910B1 (en) 3 dimensional shape detection apparatus and method
JP2011158363A (en) Soldering inspection device for pga mounting substrate
CN209861061U (en) Device for measuring wide-range horizontal field angle of camera
CN116452679A (en) Position calibration method, device, system and medium for camera and turntable
TW201940840A (en) Appearance inspection device
JP2964137B2 (en) X-ray fluorescence analyzer that can detect the center of a sample
JPWO2019102890A1 (en) Board inspection device, inspection position correction method, position correction information generation method, and position correction information generation system
CN105807579A (en) Silicon chip and substrate prealignment measurement device and method
US7747066B2 (en) Z-axis optical detection of mechanical feature height
JP6900261B2 (en) Processing equipment, substrate inspection equipment, processing method and substrate inspection method
CN110907469A (en) Circuit board welding detection device using machine vision
US10446501B2 (en) Semiconductor device, method of positioning semiconductor device, and positioning apparatus for semiconductor device
KR101639043B1 (en) Measuring apparatus for size of screw

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

Effective date of registration: 20201021

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: 266104 Laoshan Qingdao District North House Street investment service center room, Room 308, Shandong

Patentee before: GOERTEK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right