A testing method, system, electronic device, and storage medium for a camera module.

By obtaining the base point and center coordinates of the target black block in the checkerboard image during camera module testing, and using an algorithm to adjust the checkerboard image, the testing error problem was solved, and the testing accuracy and efficiency were improved.

CN119788839BActive Publication Date: 2026-03-10TRULY OPTO ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In the existing SFR testing of camera modules, the relative position changes of the checkerboard image cause testing errors, affecting the accuracy and efficiency of the test.

Method used

By obtaining the center coordinates of the chessboard image as the base point, the target black block is analyzed and its center coordinates are calculated. Different algorithms are used to adjust the chessboard image to stabilize the relative position, and the adjustment data and information are output.

Benefits of technology

This improved the accuracy and efficiency of camera module testing, avoided testing errors, and ensured that the relative position of each module to the chessboard grid remained stable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788839B_ABST
    Figure CN119788839B_ABST
Patent Text Reader

Abstract

This invention provides a testing method, system, electronic device, and storage medium for camera modules. The method includes: acquiring the center coordinates of a checkerboard image as a base point; analyzing and processing the checkerboard image to obtain target black blocks and analyzing and processing the target black blocks to obtain their center coordinates; processing the base point and center coordinates using a first algorithm to output adjustment data; and outputting adjustment information based on the adjustment data. By analyzing and processing the original checkerboard image to obtain adjustment data and adjustment information, the checkerboard image can be automatically adjusted according to the adjustment information, ensuring that the relative position of each test module to the checkerboard remains stable, avoiding test errors, and improving test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of camera module technology, and in particular to a testing method, system, electronic device, and storage medium for camera modules. Background Technology

[0002] Currently, all camera modules undergo SFR (Spatial Frequency Response) testing before leaving the factory. This test measures the camera module's response to different spatial frequencies, thus measuring the image quality and accuracy of the camera module.

[0003] In related technologies, SFR testing requires the use of a checkerboard pattern. The checkerboard is randomly placed on the pattern. Since the relative position of each module to the checkerboard changes during testing, this will lead to testing errors. Summary of the Invention

[0004] The purpose of this invention is to address the shortcomings of existing technologies by proposing a testing method, system, electronic device, and storage medium for camera modules.

[0005] To achieve the above objectives, in a first aspect, embodiments of the present invention provide a testing method for a camera module, comprising:

[0006] The coordinates of the center point of the chessboard image are used as the base point;

[0007] The chessboard image is analyzed and processed to obtain the target black block, and the center coordinates of the target black block are obtained by further analysis and processing.

[0008] The base point and center coordinates are processed using the first algorithm to output adjustment data;

[0009] The adjustment information is output based on the adjusted data.

[0010] In one preferred embodiment, the step of analyzing and processing the chessboard image to obtain target black blocks and then analyzing and processing the target black blocks to obtain the center coordinates of the target black blocks includes:

[0011] The location of the base point is detected as either a black block area or a white block area.

[0012] In a preferred embodiment, the step of analyzing and processing the chessboard image to obtain target black blocks and then analyzing and processing the target black blocks to obtain the center coordinates of the target black blocks further includes:

[0013] If the location of the base point is a black block area, then the black block area where the base point is located is the first target black block, and the first center coordinates of the first target black block are calculated using the second algorithm.

[0014] In a preferred embodiment, the step of analyzing and processing the chessboard image to obtain target black blocks and then analyzing and processing the target black blocks to obtain the center coordinates of the target black blocks further includes:

[0015] If the location of the base point is a white block area, then the first black area to the left of the white block area where the base point is located is the second target black block, and the second center coordinates of the second target black block are calculated using the third algorithm. Alternatively, the first black area to the right of the white block area where the base point is located is the third target black block, and the third center coordinates of the third target black block are calculated using the fourth algorithm.

[0016] In a preferred embodiment, if the location of the base point is a black block region, then the black block region where the base point is located is the first target black block. The second algorithm is used to calculate the first center coordinates of the first target black block, including:

[0017] Starting from the base point, find the first boundary that appears to the left, right, top and bottom of the base point respectively, and calculate the four intersection points A1, B1, C1 and D1 between the first boundaries to the left, right, top and bottom of the base point;

[0018] The first center coordinates of the first target black block are calculated based on the coordinates of the four intersection points A1, B1, C1, and D1.

[0019] In a preferred embodiment, if the location of the base point is a white block area, then the first black area to the left of the white block area where the base point is located is the second target black block, and a third algorithm is used to calculate the second center coordinates of the second target black block; or, if the first black area to the right of the white block area where the base point is located is the third target black block, then a fourth algorithm is used to calculate the third center coordinates of the third target black block, including:

[0020] Starting from the first test, if the base point appears in the white block area for an odd number of times, then starting from the base point, find the first boundary and the second boundary that appear to the right of the base point respectively;

[0021] Take any point between the first boundary and the second boundary to the right of the base point as the first auxiliary point. Starting from the first auxiliary point, find the first boundary that appears above and below the first auxiliary point respectively.

[0022] Calculate the four intersection points A2, B2, C2, and D2 between the first boundary and the second boundary to the right of the base point, and between the first boundary above and below the first auxiliary point;

[0023] The second center coordinates of the second target black block are calculated based on the coordinates of the four intersection points A2, B2, C2, and D2.

[0024] In a preferred embodiment, if the location of the base point is a white block area, then the first black area to the left of the white block area where the base point is located is the second target black block, and a third algorithm is used to calculate the second center coordinates of the second target black block; or, if the first black area to the right of the white block area where the base point is located is the third target black block, then a fourth algorithm is used to calculate the third center coordinates of the third target black block, including:

[0025] Starting from the first test, if the base point appears in the white block area for an even number of times, then starting from the base point, find the first boundary and the second boundary that appear to the left of the base point respectively;

[0026] Take any point between the first and second boundaries to the left of the base point as the second auxiliary point. Starting from the second auxiliary point, find the first boundary that appears above and below the second auxiliary point respectively.

[0027] Calculate the four intersection points A3, B3, C3, and D3 between the first and second boundaries to the left of the base point and the first boundaries to the upper and lower sides of the second auxiliary point;

[0028] The third center coordinates of the third target black block are calculated based on the coordinates of the four intersection points A3, B3, C3, and D3.

[0029] Secondly, embodiments of the present invention also provide a camera module testing system, comprising:

[0030] The first processing module is used to obtain the image center coordinates of the chessboard image as the base point;

[0031] The second processing module is used to analyze and process the chessboard image, obtain the target black block, and analyze and process the target black block to obtain the center coordinates of the target black block.

[0032] The third processing module is used to process the base point and center coordinates using the first algorithm and output adjustment data;

[0033] The fourth processing module is used to output adjustment information based on the adjustment data.

[0034] Thirdly, an electronic device is also provided, comprising:

[0035] Processor; and

[0036] A memory that stores executable code, which, when executed by the processor, causes the processor to perform the method described above.

[0037] Fourthly, a computer-readable storage medium is also provided, on which executable code is stored, which, when executed by a processor of an electronic device, causes the processor to perform the method described above.

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

[0039] This application analyzes and processes the original chessboard image to obtain adjustment data and adjustment information. Based on the adjustment information, the chessboard image can be automatically adjusted to keep the relative position of each test module to the chessboard stable, thereby avoiding test errors and improving test efficiency. Attached Figure Description

[0040] Figure 1 A flowchart illustrating a testing method for a camera module according to an embodiment of the present invention;

[0041] Figure 2 A flowchart illustrating a testing method for a camera module according to an embodiment of the present invention;

[0042] Figure 3 A flowchart illustrating a testing method for a camera module according to an embodiment of the present invention;

[0043] Figure 4 A flowchart illustrating a testing method for a camera module according to an embodiment of the present invention;

[0044] Figure 5 A flowchart illustrating a testing method for a camera module according to an embodiment of the present invention;

[0045] Figure 6 This is a schematic diagram of the structure of a chessboard image provided in one embodiment of the present invention;

[0046] Figure 7 This is a schematic diagram of the structure of a chessboard image provided in one embodiment of the present invention;

[0047] Figure 8 This is a schematic diagram of the structure of a testing system for a camera module according to an embodiment of the present invention;

[0048] Figure 9 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation

[0049] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0050] Numerous specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways than those described herein, and therefore the invention is not limited to the specific embodiments disclosed in the following specification.

[0051] To address the problems in the existing technology, firstly, referencing... Figure 1 This invention provides a testing method for a camera module, comprising:

[0052] S100, Obtain the coordinates of the center point of the chessboard image as the base point;

[0053] It should be noted that the coordinates of the center of the checkerboard image are the coordinates of the center of the image within the field of view of the camera module in this test.

[0054] S200. Analyze and process the chessboard image to obtain the target black block, and analyze and process the target black block to obtain the center coordinates of the target black block;

[0055] It should be noted that the target black block is the black block region closest to the base point. When the base point is in a black block region, the black block region where the base point is located is the target black block; when the base point is in a white block region, the first black block region to the left of the base point or the first black block region to the right of the base point is the target black block.

[0056] S300. The base point and center coordinates are processed using the first algorithm, and the adjustment data is output.

[0057] It should be noted that after obtaining the base point and center coordinates, for example, if the base point is O(cx,cy) and the center coordinates are O'(x,y), then the adjustment data required to adjust the base point O(cx,cy) to the center coordinates O'(x,y) can be calculated based on O(cx,cy) and O'(x,y). At this time, the adjustment data is the coordinate adjustment data.

[0058] S400, Output adjustment information based on the adjustment data.

[0059] It should be noted that the adjustment data mentioned in step S30 is coordinate adjustment data. The coordinate adjustment data should also be adjusted to the actual adjustment data according to a preset ratio. The actual adjustment data is the actual output adjustment information.

[0060] This application analyzes and processes the original chessboard image to obtain adjustment data and adjustment information. Based on the adjustment information, the chessboard image can be automatically adjusted to keep the relative position of each test module to the chessboard stable, thereby avoiding test errors and improving test efficiency.

[0061] As a preferred embodiment, reference is made to Figure 2 The step S200, which involves analyzing and processing the chessboard image to obtain the target black block and then analyzing and processing the target black block to obtain the center coordinates of the target black block, includes:

[0062] S210. Detect whether the location of the base point is a black block area or a white block area.

[0063] In a preferred embodiment, step S200, which involves analyzing and processing the checkerboard image to obtain target black blocks and then analyzing and processing the target black blocks to obtain the center coordinates of the target black blocks, further includes:

[0064] S220. If the location of the base point is a black block area, then the black block area where the base point is located is the first target black block, and the first center coordinates of the first target black block are calculated using the second algorithm.

[0065] As a preferred embodiment, reference is made to Figure 2 The step S200, which involves analyzing and processing the chessboard image to obtain the target black block and then analyzing and processing the target black block to obtain the center coordinates of the target black block, further includes:

[0066] S230. If the location of the base point is a white block area, then the first black area to the left of the white block area where the base point is located is the second target black block, and the second center coordinates of the second target black block are calculated using the third algorithm. Alternatively, the first black area to the right of the white block area where the base point is located is the third target black block, and the third center coordinates of the third target black block are calculated using the fourth algorithm.

[0067] It should be noted that when testing a batch of camera modules, the center point of the black block can be set by default to be in the center of the test camera module's field of view image. Therefore, it is necessary to adjust the checkerboard image so that the center point of the black block coincides with the center point of the test camera module's field of view image. In order to minimize the adjustment displacement, it is necessary to analyze and process the above two positions separately.

[0068] As a preferred embodiment, reference is made to Figure 3The step S220, where the base point is located in a black block area, is the first target black block, and the second algorithm is used to calculate the first center coordinates of the first target black block, includes:

[0069] S221. Starting from the base point, find the first boundary that appears on the left, right, top and bottom sides of the base point respectively, and calculate the four intersection points A1, B1, C1 and D1 between the first boundaries on the left, right, top and bottom sides of the base point;

[0070] It should be noted that the area enclosed by the first boundary on the left, right, upper and lower sides of the base point is the first target black block.

[0071] S222. Calculate the first center coordinates of the first target black block based on the coordinates of the four intersection points A1, B1, C1, and D1.

[0072] In this embodiment of the invention, the first center coordinates of the first target black block can be calculated using a common center coordinate calculation method.

[0073] refer to Figure 6 The base point is the center of the white cursor. By following the steps above, it can be confirmed that the circled area is the first target black block.

[0074] As a preferred embodiment, reference is made to Figure 4 The step S230, where the base point is located in a white area, and the first black area to the left of the white area where the base point is located is the second target black block, and the second center coordinates of the second target black block are calculated using a third algorithm; or, where the first black area to the right of the white area where the base point is located is the third target black block, and the third center coordinates of the third target black block are calculated using a fourth algorithm, includes:

[0075] S231. Starting from the first test, if the base point appears in the white block area for an odd number of times, then starting from the base point, find the first boundary and the second boundary that appear to the right of the base point respectively.

[0076] S232. Take any point between the first boundary and the second boundary to the right of the base point as the first auxiliary point. Starting from the first auxiliary point, find the first boundary that appears above and below the first auxiliary point respectively.

[0077] S233. Calculate the four intersection points A2, B2, C2, and D2 between the first boundary and the second boundary to the right of the base point, and between the first boundary on the upper and lower sides of the first auxiliary point;

[0078] It should be noted that the area enclosed by the first and second boundaries to the right of the base point, and the first boundaries above and below the first auxiliary point, constitutes the second target black block. The presence of the first auxiliary point helps in identifying the second target black block.

[0079] refer to Figure 7 The base point is the center of the black cursor. By following the steps above, it can be confirmed that the circled area is the second target black block.

[0080] S234. Calculate the second center coordinates of the second target black block based on the coordinates of the four intersection points A2, B2, C2, and D2.

[0081] In this embodiment of the invention, the second center coordinates of the second target black block can be calculated using a common center coordinate calculation method.

[0082] As a preferred embodiment, reference is made to Figure 5 The step S230, where the base point is located in a white area, and the first black area to the left of the white area where the base point is located is the second target black block, and the second center coordinates of the second target black block are calculated using a third algorithm; or, where the first black area to the right of the white area where the base point is located is the third target black block, and the third center coordinates of the third target black block are calculated using a fourth algorithm, includes:

[0083] S235. Starting from the first test, if the base point appears in the white block area for an even number of times, then starting from the base point, find the first boundary and the second boundary that appear to the left of the base point respectively.

[0084] S236. Take any point between the first boundary and the second boundary to the left of the base point as the second auxiliary point. Starting from the second auxiliary point, find the first boundary that appears above and below the second auxiliary point respectively.

[0085] S237. Calculate the four intersection points A3, B3, C3, and D3 between the first and second boundaries on the left side of the base point and the first boundaries on the upper and lower sides of the second auxiliary point.

[0086] It should be noted that the area enclosed by the first and second boundaries to the left of the base point, and the first boundaries above and below the second auxiliary point, constitutes the third target black block. The presence of the second auxiliary point helps in identifying the third target black block.

[0087] S238. Calculate the third center coordinates of the third target black block based on the coordinates of the four intersection points A3, B3, C3, and D3.

[0088] In this embodiment of the invention, the third center coordinates of the third target black block can be calculated using common center coordinate calculation methods.

[0089] In this embodiment of the invention, searching for black blocks to the right or left is performed when the base point appears in the white block area an odd or even number of times. This is to avoid continuously searching in one direction, which would cause the chessboard image to shift in one direction and move out of the field of view of the camera module.

[0090] Secondly, refer to Figure 8 This invention also provides a camera module testing system, comprising:

[0091] The first processing module 10 is used to obtain the image center coordinates of the chessboard image as the base point;

[0092] The second processing module 20 is used to analyze and process the chessboard image, obtain the target black block, and analyze and process the target black block to obtain the center coordinates of the target black block.

[0093] The third processing module 30 is used to process the base point and center coordinates using the first algorithm and output adjustment data.

[0094] The fourth processing module 40 is used to output adjustment information based on the adjustment data.

[0095] In addition, the second processing module also includes:

[0096] The first processing unit is used to detect whether the location of the base point is a black block area or a white block area.

[0097] The second processing unit is used to calculate the first center coordinates of the first target black block if the location of the base point is a black block area, and the black block area where the base point is located is the first target black block, using a second algorithm.

[0098] The third processing unit is used to calculate the second center coordinates of the second target black block if the location of the base point is a white block area, and the first black area to the left or right of the white block area where the base point is located is the second target black block using a third algorithm.

[0099] Furthermore, the second processing unit also includes:

[0100] The first processing subunit is used to find the first boundary appearing on the left, right, top and bottom sides of the base point, starting from the base point, and to calculate the four intersection points A1, B1, C1 and D1 between the first boundaries on the left, right, top and bottom sides of the base point.

[0101] The second processing subunit is used to calculate the first center coordinates of the first target black block based on the coordinates of the four intersection points A1, B1, C1, and D1.

[0102] Furthermore, the third processing unit also includes:

[0103] The third processing subunit is used to count from the first test. If the base point appears in the white block area for an odd number of times, the first boundary and the second boundary appearing to the right of the base point are searched, starting from the base point.

[0104] The fourth processing subunit is used to select any point between the first boundary and the second boundary to the right of the base point as the first auxiliary point, and starting from the first auxiliary point, to find the first boundary that appears above and below the first auxiliary point respectively.

[0105] The fifth processing subunit is used to calculate the first and second boundaries to the right of the base point, and the four intersection points A2, B2, C2, and D2 between the first boundary on the upper and lower sides of the first auxiliary point;

[0106] The sixth processing subunit is used to calculate the second center coordinates of the second target black block based on the coordinates of the four intersection points A2, B2, C2, and D2.

[0107] The seventh processing subunit is used to count from the first test. If the base point appears in the white block area for an even number of times, the first boundary and the second boundary appearing to the left of the base point are searched, starting from the base point.

[0108] The eighth processing subunit is used to select any point between the first boundary and the second boundary on the left side of the base point as the second auxiliary point, and starting from the second auxiliary point, find the first boundary that appears above and below the second auxiliary point respectively.

[0109] The ninth processing subunit is used to calculate the four intersection points A3, B3, C3, and D3 between the first and second boundaries to the left of the base point and the first boundaries to the upper and lower sides of the second auxiliary point.

[0110] The tenth processing subunit is used to calculate the second center coordinates of the second target black block based on the coordinates of the four intersection points A3, B3, C3, and D3.

[0111] The technical effects of the camera module testing system in this embodiment of the invention correspond one-to-one with the technical effects of the corresponding methods.

[0112] This application analyzes and processes the original chessboard image to obtain adjustment data and adjustment information. Based on the adjustment information, the chessboard image can be automatically adjusted to keep the relative position of each test module to the chessboard stable, thereby avoiding test errors and improving test efficiency.

[0113] Thirdly, Figure 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. See also... Figure 9 Electronic device 1000 includes memory 1010 and processor 1020. Processor 1020 may be a central processing unit (CPU), or it may be an integrated circuit composed of other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor may be any conventional processor that can run the Linux kernel.

[0114] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. The ROM may store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a read-write storage device.

[0115] Persistent storage devices can be non-volatile storage devices that retain stored instructions and data even when the computer is powered off. In some embodiments, persistent storage devices use high-capacity storage devices (e.g., magnetic or optical discs, flash memory) as persistent storage devices. In other embodiments, persistent storage devices can be removable storage devices (e.g., floppy disks, optical drives). System memory can be a read-write storage device or a volatile read-write storage device, such as dynamic random access memory. System memory can store some or all of the instructions and data required by the processor during operation. Furthermore, memory 1010 can include any combination of computer-readable storage media, including various types of semiconductor memory chips (e.g., DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical discs may also be used. In some embodiments, memory 1010 can include removable storage devices that are readable and / or writable, such as laser discs (CDs), read-only digital versatile optical discs (e.g., DVD-ROMs, dual-layer DVD-ROMs), read-only Blu-ray discs, ultra-high density optical discs, flash memory cards (e.g., SD cards, mini SD cards, Micro-SD cards, etc.), magnetic floppy disks, etc. Computer-readable storage media do not contain carrier waves or transient electronic signals transmitted wirelessly or via wire.

[0116] The memory 1010 stores executable code, which, when processed by the processor 1020, can cause the processor 1020 to execute part or all of the methods described above.

[0117] Furthermore, the method according to embodiments of the present invention can also be implemented as a computer program or computer program product, which includes computer program code instructions for performing some or all of the steps in the methods described above in this application.

[0118] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments for application in other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.

Claims

1. A testing method for a camera module, characterized in that, The method comprises the following steps: taking the image center coordinate of the checkerboard image as a base point; analyzing and processing the checkerboard image to obtain a target black block and analyzing and processing the target black block to obtain a center coordinate of the target black block; processing the base point and the center coordinate by using a first algorithm to output adjustment data; outputting adjustment information according to the adjustment data; the step of analyzing and processing the checkerboard image to obtain a target black block and analyzing and processing the target black block to obtain a center coordinate of the target black block comprises detecting whether the position of the base point is a black block region or a white block region; the step of analyzing and processing the checkerboard image to obtain a target black block and analyzing and processing the target black block to obtain a center coordinate of the target black block further comprises: if the position of the base point is a white block region, a first black region adjacent to the left of the white block region where the base point is located is a second target black block, and a second center coordinate of the second target black block is calculated by using a third algorithm, or a first black region adjacent to the right of the white block region where the base point is located is a third target black block, and a third center coordinate of the third target black block is calculated by using a fourth algorithm; the step of calculating the second center coordinate of the second target black block or the third center coordinate of the third target black block by using the third algorithm or the fourth algorithm if the position of the base point is a white block region comprises the following steps: counting from the first test, if the base point appears in the white block region for an odd number of times, a first boundary and a second boundary appearing on the right side of the base point are found respectively with the base point as a starting point; a first auxiliary point is taken at any point between the first boundary and the second boundary on the right side of the base point, and a first boundary appearing on the upper side and the lower side of the first auxiliary point is found respectively with the first auxiliary point as a starting point; four intersection points A2, B2, C2 and D2 between the first boundary and the second boundary on the right side of the base point and the first boundary appearing on the upper side and the lower side of the first auxiliary point are calculated; the second center coordinate of the second target black block is calculated according to the coordinates of the four intersection points A2, B2, C2 and D2. the step of analyzing and processing the checkerboard image to obtain a target black block and analyzing and processing the target black block to obtain a center coordinate of the target black block further comprises:

2. The camera module testing method of claim 1, wherein, if the position of the base point is a black block region, a black block region where the base point is located is a first target black block, and a first center coordinate of the first target black block is calculated by using a second algorithm. the step of calculating the first center coordinate of the first target black block by using the second algorithm if the position of the base point is a black block region comprises the following steps:

3. The camera module testing method of claim 2, wherein, ​ Taking the base point as a starting point, a first boundary appearing on the left side, the right side, the upper side and the lower side of the base point is found respectively, and four intersection points A1, B1, C1, D1 between the first boundaries on the left side, the right side, the upper side and the lower side of the base point are calculated; The first center coordinates of the first target black block are calculated according to the coordinates of the four intersection points A1, B1, C1, D1.

4. The camera module testing method of claim 1, wherein, If the base point is located in a white block region, a first black region adjacent to the left side of the white block region where the base point is located is a second target black block, a second center coordinate of the second target black block is calculated by using a third algorithm, or a first black region adjacent to the right side of the white block region where the base point is located is a third target black block, a third center coordinate of the third target black block is calculated by using a fourth algorithm, including: Starting from the first test, if the base point appears in the white block region for an even number of times, a first boundary and a second boundary appearing on the left side of the base point are found respectively; A point between the first boundary and the second boundary on the left side of the base point is taken as a second auxiliary point, a first boundary appearing on the upper side and the lower side of the second auxiliary point is found respectively; Four intersection points A3, B3, C3, D3 between the first boundary and the second boundary on the left side of the base point and the first boundary appearing on the upper side and the lower side of the second auxiliary point are calculated; The third center coordinates of the third target black block are calculated according to the coordinates of the four intersection points A3, B3, C3, D3.

5. A camera module testing system, comprising: Including: A first processing module, the first processing module is used for acquiring image center coordinates of a checkerboard image as a base point; A second processing module, the second processing module is used for analyzing and processing the checkerboard image, acquiring a target black block and analyzing and processing the target black block, and acquiring center coordinates of the target black block; A third processing module, the third processing module is used for processing the base point and the center coordinates by using a first algorithm, and outputting adjustment data; A fourth processing module, the fourth processing module is used for outputting adjustment information according to the adjustment data.

6. An electronic device, comprising: Including: A processor; And A memory having executable code stored thereon, when the executable code is executed by the processor, the processor executes the method in any one of claims 1-4.

7. A computer readable storage medium having executable code stored thereon, when the executable code is executed by a processor of an electronic device, the processor executes the method in any one of claims 1-4.

Citation Information

Patent Citations

  • Checkerboard-based image test method and system, storage medium and intelligent terminal

    CN113947587A

  • Automatic test method and system for camera module, electronic equipment and storage medium

    CN118055219A