Apparatus alignment method for testing camera assembly performance and electronic device

By combining calibration fixture components and calibration cameras, algorithms are used to accurately locate the geometric center of the camera assembly, solving the problem of inaccurate alignment caused by external environmental interference and improving the production efficiency of camera assemblies.

CN122179552APending Publication Date: 2026-06-09HUIZHOU DEPANG PRECISION AUTOMATION CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUIZHOU DEPANG PRECISION AUTOMATION CO LTD
Filing Date
2026-03-10
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing technologies, the alignment process of camera components is easily affected by external environmental interference, resulting in inaccurate "three-point alignment" and requiring a long time for correction, which affects production efficiency.

Method used

Using a calibration fixture assembly and a calibration camera, the calibration fixture drives the calibration camera to rotate multiple times in the horizontal direction, captures images, and determines the geometric center of the alignment object based on an algorithm, constructing a circle for precise positioning, thus avoiding reliance on the strict horizontal placement of a laser level.

Benefits of technology

It achieves accurate and reliable alignment results, reduces alignment error to less than ±0.5μm, and improves the production efficiency of camera components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122179552A_ABST
    Figure CN122179552A_ABST
Patent Text Reader

Abstract

The application provides a device alignment method for testing camera assembly performance and an electronic device, and relates to the technical field of automatic alignment. For any alignment object, the method receives that a calibration fixture drives a calibration camera to rotate N times in a horizontal direction, and N shooting images are obtained by the calibration camera shooting the alignment object after each rotation. The coordinates of the geometric center of the alignment object in each shooting image are determined. The position of the geometric center of the alignment object is determined according to the coordinates of the geometric center of the alignment object in each shooting image. In the above process, the position of the geometric center of the alignment object is obtained based on an algorithm, and the calibration result of "three points and one position" is not affected by environmental factors, the calibration result is accurate and reliable, and the production efficiency of the camera assembly is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automatic alignment technology, and more particularly to a device alignment method and electronic device for testing the performance of camera components. Background Technology

[0002] When adjusting the image quality of a camera module, a chart with precise patterns (such as black and white stripes or standard color blocks) can be used as an absolute "physical benchmark." After the camera module takes a picture, professional software analyzes the deviation between the captured image and the standard data on the chart. This quantifies subjective image quality (such as sharpness, color, and distortion) into objective indicators, such as the Modulation Transfer Function (MTF) curve and the chromatic aberration ΔE value. Subsequently, test engineers use these data indicators to adjust the lens hardware or image processing algorithms to ensure that the camera outputs accurate, consistent, and high-quality photos. During testing, the distance between the chart and the camera module can be adjusted based on the teleconverter. Therefore, before adjusting the image quality of the camera module, the optical center of the camera module, the optical axis of the teleconverter, and the geometric center of the chart must be aligned (i.e., a straight line). Only in this way can the image quality of the camera module be accurately adjusted.

[0003] Currently, the common method relies on laser levels to find the center by setting two lasers, one horizontal and one vertical. This method has certain errors and cannot guarantee that the laser level is placed horizontally or that different devices are level with the ground. External environmental interference factors are significant, leading to inaccurate alignment of the "three points in a line". This results in a longer time required for subsequent "three points in a line" correction, incurring significant time costs and low production efficiency of camera components. Summary of the Invention

[0004] This application provides a device alignment method and electronic device for testing the performance of camera components, which solves the problem in the prior art that the alignment is easily affected by external environmental interference factors, resulting in inaccurate alignment of the "three points in a line" and requiring a longer time for subsequent "three points in a line" correction.

[0005] Firstly, this application provides a device alignment method for testing the performance of a camera assembly, applied to an electronic device. The electronic device is communicatively connected to the device for testing the camera assembly performance. The device for testing the camera assembly performance includes a calibration fixture assembly, a standard template, and a lens placement area for the camera assembly. The standard template, calibration fixture assembly, and lens placement area are arranged sequentially from top to bottom. The calibration fixture assembly includes a calibration fixture with a through hole and a calibration camera disposed on the calibration fixture and aligned with the through hole. The through hole is used to place a teleconverter. Both the standard template and the lens of the camera assembly are alignment objects. The method provided in this application includes: The calibration fixture drives the calibration camera to rotate N times in the horizontal direction, and after each rotation, the calibration camera takes N images of the misaligned object, where N is an integer greater than or equal to 3. Determine the coordinates of the geometric center of the object in each captured image; Based on the coordinates of the geometric center of the aligned object in each captured image, determine the position of the geometric center of the misaligned aligned object, and record the current state of the aligned object as aligned. After determining that the central axis of the through hole of the calibration fixture is aligned with the geometric center of the current alignment object, the calibration camera is controlled to flip towards the direction of another misaligned alignment object, and then the process returns to the step of receiving the calibration fixture driving the calibration camera to rotate N times in the horizontal direction, and taking N images of the misaligned alignment object after each rotation, until the geometric center of the other misaligned alignment object is determined to be aligned with the central axis of the through hole of the calibration fixture.

[0006] In some implementations, determining the position of the geometric center of an unaligned object based on the coordinates of the geometric center of the aligned object in each captured image includes: Construct a circle based on the coordinates of the geometric center of the object in each captured image; The geometric center of the circle is determined as the position of the geometric center of the non-corresponding object.

[0007] In some implementations, a circle is constructed based on the coordinates of the geometric center of the aligned object in each captured image, including: The coordinates of the geometric center of the non-corresponding object in each captured image are fitted using the least squares method to construct a circle.

[0008] In some implementations, a circle is constructed based on the coordinates of the geometric center of the aligned object in each captured image, including: A circle is constructed based on an algebraic method and the coordinates of the geometric center of the non-corresponding object in each captured image.

[0009] In some implementations, determining the coordinates of the geometric center of the alignment object in each captured image includes: The closed contours in each captured image are detected based on the edge detection algorithm, and the closed contours are determined as the contours of the corresponding objects in the captured image. Determine the geometric center of the alignment object based on its outline.

[0010] In some implementations, the method provided in this application further includes, before detecting closed contours in each captured image based on an edge detection algorithm: Convert each captured image to a grayscale image; Remove noise from grayscale images.

[0011] In some implementations, the first N images captured are images from a standard image card, and the second N images captured are images from the lens of the camera assembly; or the first N images captured are images from the lens of the camera assembly, and the second N images captured are images from a standard image card.

[0012] In some embodiments, the N images captured in the first capture are images from a standard image card, and the N images captured in the second capture are images from the lens of the camera assembly. After determining the position of the geometric center of the images from the standard image card, the method provided in this application further includes: Output the position of the geometric center of the image from the standard graphics card to the display screen; Alternatively, the calibration fixture with a through hole is moved by controlling the first drive motor so that the central axis of the through hole of the calibration fixture is aligned with the geometric center of the image on the standard chart. After determining the location of the geometric center of the image from the camera assembly's lens, the method further includes: Output the position of the geometric center of the image from the camera lens to the display screen; Alternatively, the second drive motor can be controlled to drive the lens placement area to move the lens of the camera assembly so that the central axis of the through hole of the calibration fixture is aligned with the geometric center of the image of the lens of the camera assembly.

[0013] Secondly, this application also provides an apparatus for testing the performance of a camera assembly, including a calibration fixture assembly, a standard chart, and a lens placement area for the camera assembly. The standard chart, the calibration fixture assembly, and the lens placement area are arranged sequentially from top to bottom. The calibration fixture assembly includes a calibration fixture with a through hole and a calibration camera disposed on the calibration fixture and aligned with the through hole.

[0014] Thirdly, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device performs the method provided in the first aspect.

[0015] Fourthly, this application also provides a storage medium storing a computer program, which, when executed by a processor, causes the computer to perform the method provided in the first aspect of this application.

[0016] Fifthly, this application also provides a computer program product, including a computer program that, when run, causes an electronic device to perform the method provided in the first aspect of this application.

[0017] This application provides a device alignment method and electronic device for testing the performance of camera components. For any alignment object, a calibration fixture drives a calibration camera to rotate N times in the horizontal direction, and after each rotation, the calibration camera takes N images of the unaligned alignment object. The coordinates of the geometric center of the alignment object in each image are determined. Based on the coordinates of the geometric center of the alignment object in each image, the position of the geometric center of the unaligned alignment object is determined. Because the above process is based on an algorithm to obtain the position of the geometric center of the unaligned alignment object, it does not rely on a laser level or require strict horizontal placement. The "three points, one position" alignment result is not affected by environmental factors, resulting in accurate and reliable alignment, thus improving the production efficiency of camera components. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A schematic diagram of the architecture of a device for testing the performance of a camera component, provided in an embodiment of this application; Figure 2 A schematic diagram of the calibration fixture assembly provided in this application being mounted on a bracket; Figure 3 A flowchart illustrating an alignment method for testing camera component performance provided in an embodiment of this application; Figure 4 This is a schematic diagram showing four images captured sequentially when the alignment object provided in this application is the lens of a camera assembly, and N equals 4 and the camera is calibrated to rotate 90 degrees each time. Figure 5 The alignment object provided in this application embodiment is a standard chart, and N equals 4, with the calibration camera rotating 90 degrees each time, is a schematic diagram of 4 images taken sequentially.

[0020] Figure 6 This is a schematic diagram illustrating how a circle is constructed based on the coordinates of the geometric center of the aligned object in each captured image, as provided in an embodiment of this application. Detailed Implementation

[0021] Embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0022] The accompanying drawings illustrate various structural schematics according to embodiments of the present disclosure. These drawings are not to scale, and some details have been enlarged for clarity, and some details may have been omitted. The shapes of the various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary and may deviate from reality due to manufacturing tolerances or technical limitations. Furthermore, those skilled in the art can design regions / layers with different shapes, sizes, and relative positions as needed.

[0023] In the context of this disclosure, when a layer / element is referred to as being "above" another layer / element, the layer / element may be directly above the other layer / element, or there may be an intermediate layer / element between them. Additionally, if a layer / element is "above" another layer / element in one orientation, then when the orientation is reversed, the layer / element may be "below" the other layer / element.

[0024] The technical solutions of this application and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0025] This application provides a device alignment method for testing the performance of a camera component, applied to an electronic device. The electronic device is communicatively connected to the device used for testing the camera component's performance. Figure 1As shown, the equipment for testing the performance of a camera assembly includes a calibration fixture assembly, a standard chart 101, and a lens placement area 106 for the camera assembly. The standard chart 101, calibration fixture assembly, and lens placement area 106 are arranged sequentially from top to bottom. The calibration fixture assembly includes a calibration fixture 102 with a through hole 104 and a calibration camera 103 disposed on the calibration fixture 102 and aligned with the through hole 104. The through hole 104 is used to place a teleconverter. The standard chart 101 and the lens 107 of the camera assembly are both alignment objects. Figure 2 As shown, the calibration fixture assembly can be mounted on the bracket 105. (As indicated...) Figure 3 As shown, the method provided in this application embodiment includes: S301: The calibration fixture 102 drives the calibration camera 103 to rotate N times in the horizontal direction, and after each rotation, the calibration camera 103 takes N images 401 of the misaligned object, where N is an integer greater than or equal to 3.

[0026] For example, N can be equal to 3, 4, or 5, etc. The calibration fixture 102 may include an annular fixture with a through hole 104 and a carrier with a groove matching the size and shape of the annular fixture. The bottom center of the groove of the carrier has a hollow area corresponding to the through hole 104 of the annular fixture. The annular fixture with the through hole 104 can be placed in the groove and rotated, thereby driving the calibration camera 103 to rotate. In addition, the annular fixture can also be connected to the carrier with the hollow area by a gear snap-fit, and the annular fixture can rotate on the carrier by the gear.

[0027] For example, when the alignment object is the lens 107 of the camera assembly, and N equals 4 and the calibrated camera 103 rotates 90 degrees each time, the four images captured can be as follows: Figure 4 As shown. When the alignment object is the standard chart 101, and N equals 4 and the calibration camera 103 rotates 90 degrees each time, the four images obtained can be as follows: Figure 5 As shown, it should be noted that the field of view of the calibration camera 103 is relatively small, and it can only capture the pattern 402 located in the center of the standard chart 101.

[0028] S302: Determine the coordinates of the geometric center of the alignment object in each captured image 401.

[0029] Specifically, each captured image 401 can first be converted into a grayscale image; then noise can be removed from the grayscale image. Next, closed contours in each captured image 401 are detected using edge detection algorithms (such as Canny edge detection, scale-invariant feature transform (SIFT) feature point matching, or contour-based template matching algorithms), and these closed contours are determined as the contours of the corresponding objects in the captured image 401. Based on the contours of the corresponding objects (the contour of the lens 107 of the camera assembly can be circular, and the contour of the middle area of ​​the image card can be square), the geometric center of the corresponding objects is determined.

[0030] S303: Based on the coordinates of the geometric center of the aligned object in each captured image 401, determine the position of the geometric center of the misaligned aligned object, and record the current state of the aligned object as aligned.

[0031] like Figure 6 As shown, a circle can be constructed based on the coordinates of the geometric center of the corresponding object in each captured image 401. For example, the coordinates of the geometric center of the non-corresponding object in each captured image 401 can be fitted using the least squares method to construct a circle. Alternatively, a circle can be constructed based on an algebraic method and the coordinates of the geometric center of the non-corresponding object in each captured image 401. The geometric center of the circle is then determined as the position of the geometric center of the non-corresponding object.

[0032] S304: After determining that the central axis of the through hole 104 of the calibration fixture 102 is aligned with the geometric center of the current alignment object, determine whether all alignment objects are in the aligned state. If not, execute S305; if yes, end the process.

[0033] S305: Control the calibration camera 103 to flip in the direction of another misaligned alignment object, and return to execute S301.

[0034] For example, when the standard chart 101 is in the aligned state, the lens of the calibration camera 103 is controlled to flip from facing up to facing down, or when the calibration camera 103 is in the aligned state, the lens of the calibration camera 103 is controlled to flip from facing down to facing up.

[0035] It should be noted that in the above process, the N captured images 401 obtained in the first capture can be images of the standard image card 101, and the N captured images 401 obtained in the second capture can be images of the lens 107 of the camera assembly; or the N captured images 401 obtained in the first capture can also be images of the lens 107 of the camera assembly, and the N captured images 401 obtained in the second capture can be images of the standard image card 101, which is not limited here.

[0036] Furthermore, when the first N captured images 401 are images of the standard image card 101, and the second N captured images 401 are images of the lens 107 of the camera assembly, after determining the position of the geometric center of the image of the standard image card 101, the method provided in this application embodiment further includes: The position of the geometric center of the image of the standard chart 101 is output to the display screen. In this way, the tester can manually move the calibration fixture 102 with reference to the position of the geometric center of the image of the standard chart 101 displayed on the display screen so that the central axis of the through hole 104 of the calibration fixture 102 is aligned with the position of the geometric center of the image of the standard chart 101, or automatically control the first drive motor to move the calibration fixture 102 with the through hole 104 so that the central axis of the through hole 104 of the calibration fixture 102 is aligned with the position of the geometric center of the image of the standard chart 101.

[0037] In addition, after determining the position of the geometric center of the image of the lens 107 of the camera assembly, the method of this application embodiment further includes: outputting the position of the geometric center of the image of the lens 107 of the camera assembly to a display screen; in this way, the tester can refer to the position of the geometric center of the image of the lens 107 of the camera assembly displayed on the display screen to manually move the lens placement area 106 to move the lens 107 of the camera assembly so that the central axis of the through hole 104 of the calibration fixture 102 is aligned with the position of the geometric center of the image of the lens 107 of the camera assembly, or automatically control the second drive motor to drive the lens placement area 106 to move the lens 107 of the camera assembly so that the central axis of the through hole 104 of the calibration fixture 102 is aligned with the position of the geometric center of the image of the lens 107 of the camera assembly.

[0038] It should be noted that S301-S305 mentioned above can also be integrated into the control chip (i.e., electronic device) of the device used to test the performance of the camera components, and this is not limited here.

[0039] Understandably, after completing the above steps, the light rays from the camera assembly's lens 107, the optical axis of the teleconverter within the through-hole 104 of the calibration fixture 102, and the geometric center of the standard chart 101 are all aligned on a straight line. At this point, the camera assembly's lens 107 can be controlled to take a picture of the standard chart 101 through the teleconverter. Based on the various technical indicators of the captured image (such as the MTF curve and chromatic difference ΔE value), the camera assembly or image processing algorithm can be adjusted in reverse to ultimately ensure that the camera assembly outputs accurate, consistent, and high-quality photos, thereby completing the testing of the camera assembly.

[0040] In summary, the device alignment method and electronic device provided in this application embodiment for testing the performance of camera components involve, for any alignment object, receiving a calibration fixture 102 driving a calibration camera 103 to rotate N times in the horizontal direction, and capturing N images 401 of the unaligned alignment object after each rotation; determining the coordinates of the geometric center of the alignment object in each image 401; and determining the position of the geometric center of the unaligned alignment object based on the coordinates of the geometric center of the alignment object in each image 401. Because the above process is based on an algorithm to obtain the position of the geometric center of the unaligned alignment object, it does not rely on a laser level to ensure strict horizontal placement. The "three points, one position" alignment result is not affected by environmental factors, resulting in accurate and reliable alignment results, such as an alignment error of less than ±0.5μm, thus improving the production efficiency of camera components.

[0041] In addition, as before Figure 1-2 As shown, this application embodiment also provides a device for testing the performance of a camera assembly, including a calibration fixture assembly, a standard chart 101, and a lens placement area 106 for the camera assembly. The standard chart 101, the calibration fixture assembly, and the lens placement area 106 are arranged sequentially from top to bottom. The calibration fixture assembly includes a calibration fixture 102 with a through hole 104 and a calibration camera 103 disposed on the calibration fixture 102 and aligned with the through hole 104.

[0042] In addition, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it causes the electronic device to perform the method provided in the above embodiments.

[0043] In addition, this application embodiment also provides a storage medium storing a computer program, which, when executed by a processor, causes the computer to perform the method provided in the above embodiments of this application.

[0044] In addition, this application also provides a computer program product, including a computer program that, when run, causes an electronic device to perform the method provided in the above embodiments of this application.

[0045] The above description does not provide detailed technical specifications regarding the structure of each layer. However, those skilled in the art should understand that layers and regions of desired shapes can be formed using various technical means. Furthermore, to form the same structure, those skilled in the art can also design methods that are not entirely identical to those described above. Additionally, although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be advantageously combined.

[0046] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0047] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A device alignment method for testing the performance of camera components, characterized in that, An electronic device is applied to a device for testing the performance of a camera assembly. The device includes a calibration fixture assembly, a standard template, and a lens placement area for the camera assembly. The standard template, the calibration fixture assembly, and the lens placement area are arranged sequentially from top to bottom. The calibration fixture assembly includes a calibration fixture with a through-hole and a calibration camera disposed on the calibration fixture and aligned with the through-hole. The through-hole is used to place a teleconverter. Both the standard template and the lens of the camera assembly are alignment objects. The method includes: The calibration fixture drives the calibration camera to rotate N times in the horizontal direction, and after each rotation, the calibration camera takes N images of the misaligned object, where N is an integer greater than or equal to 3. Determine the coordinates of the geometric center of the alignment object in each of the captured images; Based on the coordinates of the geometric center of the alignment object in each captured image, determine the position of the geometric center of the misaligned alignment object, and record the current alignment object status as aligned. After determining that the central axis of the through hole of the calibration fixture is aligned with the geometric center of the current alignment object, the calibration camera is controlled to flip towards another misaligned alignment object, and then returns to the step of receiving the calibration camera rotating N times in the horizontal direction driven by the calibration fixture, and taking N images of the misaligned alignment object after each rotation, until the geometric center of the other misaligned alignment object is determined to be aligned with the central axis of the through hole of the calibration fixture.

2. The method according to claim 1, characterized in that, Determining the position of the geometric center of the misaligned object based on the coordinates of the geometric center of the aligned object in each of the captured images includes: A circle is constructed based on the coordinates of the geometric center of the aligning object in each of the captured images; The geometric center of the circle is determined as the position of the geometric center of the uncorresponding object.

3. The method according to claim 2, characterized in that, The step of constructing a circle based on the coordinates of the geometric center of the aligned object in each captured image includes: The coordinates of the geometric center of the non-corresponding object in each of the captured images are fitted using the least squares method to construct a circle.

4. The method according to claim 2, characterized in that, The step of constructing a circle based on the coordinates of the geometric center of the aligned object in each captured image includes: A circle is constructed based on an algebraic method and the coordinates of the geometric center of the non-corresponding object in each of the captured images.

5. The method according to claim 1, characterized in that, Determining the coordinates of the geometric center of the alignment object in each captured image includes: Based on the edge detection algorithm, closed contours are detected in each captured image, and the closed contours are determined as the contours of the corresponding objects in the captured images; Based on the outline of the alignment object, the coordinates of the geometric center of the alignment object in each captured image are determined.

6. The method according to claim 5, characterized in that, Before detecting closed contours in each captured image based on the edge detection algorithm, the method further includes: Convert each captured image to a grayscale image; Noise is removed from the grayscale image.

7. The method according to any one of claims 1-6, characterized in that, The first N images captured are images from a standard image card, and the second N images captured are images from the lens of the camera assembly; or the first N images captured are images from the lens of the camera assembly, and the second N images captured are images from a standard image card.

8. The method according to any one of claims 1-6, characterized in that, The first set of N images are images from a standard image card, and the second set of N images are images from the lens of the camera assembly. After determining the geometric center of the images from the standard image card, the method further includes: Output the position of the geometric center of the image from the standard graphics card to the display screen; Alternatively, the calibration fixture with through holes can be moved by controlling the first drive motor so that the central axis of the through holes of the calibration fixture is aligned with the geometric center of the image of the standard chart. After determining the location of the geometric center of the image from the lens of the camera assembly, the method further includes: Output the position of the geometric center of the image from the lens of the camera assembly to the display screen; Alternatively, the second drive motor can be controlled to drive the lens placement area to move the lens of the camera assembly, so that the central axis of the through hole of the calibration fixture is aligned with the geometric center of the image of the lens of the camera assembly.

9. A device for testing the performance of camera components, characterized in that, The system includes a calibration fixture assembly, a standard template, and a lens placement area for a camera assembly. The standard template, the calibration fixture assembly, and the lens placement area are arranged sequentially from top to bottom. The calibration fixture assembly includes a calibration fixture with a through hole and a calibration camera disposed on the calibration fixture and aligned with the through hole.

10. An electronic device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it causes the electronic device to perform the method as described in any one of claims 1 to 8.