Test method and system of camera module, electronic equipment and storage medium
By analyzing and automatically adjusting the center coordinates of the checkerboard image in the SFR test of the camera module, the problem of testing error in the prior art is solved, and the testing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411741107.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the SFR test of existing camera modules, due to the change in the relative position of the checkerboard drawing, the test error occurs, affecting the evaluation of image quality and accuracy.
By obtaining the image center coordinates of the checkerboard image as the basis point, the checkerboard image is analyzed and processed, the center coordinates of the target black block are obtained, and the algorithm is used to process the output adjustment data and information, and the checkerboard image is automatically adjusted, so that the relative position of each test module and the checkerboard remains stable.
It effectively avoids the occurrence of test errors, improves the testing efficiency and accuracy, and ensures reliable evaluation of image quality and accuracy of each camera module.
Smart Images

Figure CN119788839A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of camera modules, and in particular to a testing method, system, electronic equipment and storage medium for a camera module. Background Art
[0002] Currently, camera modules are subjected to SFR (Spatial Frequency Response) testing before leaving the factory. This test can be used to test the response of the camera module to different spatial frequencies in order to measure the image quality and accuracy of the camera module.
[0003] In the related art, SFR testing requires the use of a checkerboard drawing, on which checkerboards are randomly placed. During testing, the relative position of each module and the checkerboard will change, which will lead to test errors. Summary of the invention
[0004] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a testing method, system, electronic device and storage medium for a camera module.
[0005] In order to achieve the above objectives, in a first aspect, an embodiment of the present invention provides a method for testing a camera module, comprising:
[0006] Get the image center coordinates of the chessboard image as the base point;
[0007] Analyzing and processing the checkerboard image to obtain a target black block, and analyzing and processing the target black block to obtain the center coordinates of the target black block;
[0008] Processing the base point and the center coordinates using a first algorithm to output adjustment data;
[0009] Adjustment information is output according to the adjustment data.
[0010] As a preferred implementation manner, 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 the center coordinates of the target black block includes:
[0011] The location of the base point is detected as a black block area or a white block area.
[0012] As a preferred implementation manner, the analyzing and processing the checkerboard image to obtain the target black block and analyzing and processing the target black block to obtain the center coordinates of the target black block further includes:
[0013] If the location of the base point is a black block area, the black block area where the base point is located is a first target black block, and the first center coordinates of the first target black block are calculated using a second algorithm.
[0014] As a preferred implementation manner, the analyzing and processing the checkerboard image to obtain the target black block and analyzing and processing the target black block to obtain the center coordinates of the target black block further includes:
[0015] If the base point is located in a white block area, the first black area on the left adjacent to the white block area where the base point is located is the second target black block, and the third algorithm is used to calculate the second center coordinates of the second target black block, or the first black area on the right adjacent to the white block area where the base point is located is the third target black block, and the fourth algorithm is used to calculate the third center coordinates of the third target black block.
[0016] As a preferred implementation manner, if the location of the base point is a black block area, the black block area where the base point is located is a first target black block, and the first center coordinates of the first target black block are calculated using a second algorithm, including:
[0017] Starting from the base point, find the first boundary on the left side, right side, top side and bottom side of the base point respectively, and calculate four intersection points A1, B1, C1 and D1 between the first boundaries on the left side, right side, top side and bottom side of the base point;
[0018] The first center coordinates of the first target black block are calculated according to the coordinates of the four intersection points A1, B1, C1, and D1.
[0019] As a preferred implementation manner, if the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is a second target black block, and the second center coordinates of the second target black block are calculated using a third algorithm, or the first black area on the right adjacent to the white block area where the base point is located is a third target black block, and the third center coordinates of the third target black block are calculated using a fourth algorithm, including:
[0020] Counting from the first test, if the base point appears in the white block area for an odd number of times, starting from the base point, respectively search for the first boundary and the second boundary that appear on the right side of the base point;
[0021] A point between the first boundary and the second boundary on the right side of the base point is randomly selected as a first auxiliary point, and starting from the first auxiliary point, the first boundary appearing above and below the first auxiliary point is searched respectively;
[0022] Calculate the first boundary and the second boundary on the right side of the base point, and four intersection points A2, B2, C2, and D2 between the first boundary on the upper side and the lower side of the first auxiliary point;
[0023] The second center coordinates of the second target black block are calculated according to the coordinates of the four intersection points A2, B2, C2, and D2.
[0024] As a preferred implementation manner, if the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is a second target black block, and the second center coordinates of the second target black block are calculated using a third algorithm, or the first black area on the right adjacent to the white block area where the base point is located is a third target black block, and the third center coordinates of the third target black block are calculated using a fourth algorithm, including:
[0025] Counting from the first test, if the base point appears in the white block area for an even number of times, starting from the base point, respectively search for the first boundary and the second boundary that appear on the left side of the base point;
[0026] A point between the first boundary and the second boundary on the left side of the base point is randomly selected as a second auxiliary point, and starting from the second auxiliary point, the first boundary appearing above and below the second auxiliary point is searched respectively;
[0027] Calculate four intersection points A3, B3, C3, and D3 between the first boundary and the second boundary on the left side of the base point, and the first boundary on the upper side and the lower side of the second auxiliary point;
[0028] The third center coordinates of the third target black block are calculated according to the coordinates of the four intersection points A3, B3, C3, and D3.
[0029] In a second aspect, an embodiment of the present invention further provides a camera module testing system, including:
[0030] A first processing module, the first processing module is used to obtain the image center coordinates of the chessboard image as a base point;
[0031] A second processing module, the second processing module is used to analyze and process the checkerboard image, obtain a target black block, and analyze and process the target black block to obtain the center coordinates of the target black block;
[0032] A third processing module, the third processing module is used to process the base point and the center coordinates using the first algorithm and output adjustment data;
[0033] A fourth processing module, the fourth processing module is used to output adjustment information according to the adjustment data.
[0034] In a third aspect, an electronic device is also provided, including:
[0035] Processor; and
[0036] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0037] According to a fourth aspect, a computer-readable storage medium is provided, on which an executable code is stored. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0038] Compared with the prior art, the present invention has at least the following advantages:
[0039] The present application obtains adjustment data and adjustment information by analyzing and processing the original checkerboard image, and can automatically adjust the checkerboard image according to the adjustment information, so that the relative position of each test module and the checkerboard remains stable, thereby avoiding test errors and improving test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart of a method for testing a camera module provided by one embodiment of the present invention;
[0041] Figure 2 A flowchart of a method for testing a camera module provided by one embodiment of the present invention;
[0042] Figure 3 A flowchart of a method for testing a camera module provided by one embodiment of the present invention;
[0043] Figure 4 A flowchart of a method for testing a camera module provided by one embodiment of the present invention;
[0044] Figure 5 A flowchart of a method for testing a camera module provided by one embodiment of the present invention;
[0045] Figure 6 A schematic diagram of the structure of a chessboard image provided by an embodiment of the present invention;
[0046] Figure 7 A schematic diagram of the structure of a chessboard image provided by an embodiment of the present invention;
[0047] Figure 8 A schematic diagram of the structure of a camera module testing system provided by one embodiment of the present invention;
[0048] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.
[0051] In order to solve the existing technical problems, firstly, referring to Figure 1 , an embodiment of the present invention provides a method for testing a camera module, comprising:
[0052] S100, obtaining the image center coordinates of the chessboard image as a base point;
[0053] It should be noted that the image center coordinates of the checkerboard image are the center coordinates of the image within the field of view of the camera module of this test.
[0054] S200, analyzing and processing the checkerboard image to obtain a target black block and analyzing and processing 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 area closest to the base point. When the base point is in the black block area, the black block area where the base point is located is the target black block; when the base point is in the white block area, the first black block area to the left of the base point or the first black block area to the right of the base point is the target black block.
[0056] S300, processing the base point and the center coordinates using a first algorithm, and outputting adjustment data;
[0057] It should be noted that after obtaining the base point and the center coordinates, for example, 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 according to the adjustment data.
[0059] It should be noted that the adjustment data in step S30 is coordinate adjustment data, and the coordinate adjustment data should be adjusted to actual adjustment data according to a preset ratio, and the actual adjustment data is the adjustment information actually output.
[0060] The present application obtains adjustment data and adjustment information by analyzing and processing the original checkerboard image, and can automatically adjust the checkerboard image according to the adjustment information, so that the relative position of each test module and the checkerboard remains stable, thereby avoiding test errors and improving test efficiency.
[0061] As a preferred implementation mode, refer to Figure 2 The step S200 of analyzing and processing the checkerboard image, obtaining a target black block, and 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] As a preferred implementation manner, the step S200 of analyzing and processing the checkerboard image, obtaining a target black block, and analyzing and processing the target black block to obtain the center coordinates of the target black block further includes:
[0064] S220: If the base point is located in a black block area, the black block area where the base point is located is a first target black block, and a second algorithm is used to calculate the first center coordinates of the first target black block.
[0065] As a preferred implementation mode, refer to Figure 2 The step S200 of analyzing and processing the checkerboard image, obtaining a target black block and analyzing and processing the target black block, and obtaining the center coordinates of the target black block, further includes:
[0066] S230. If the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is the second target black block, and the third algorithm is used to calculate the second center coordinates of the second target black block, or the first black area on the right adjacent to the white block area where the base point is located is the third target black block, and the fourth algorithm is used to calculate the third center coordinates of the third target black block.
[0067] It should be noted that when testing a batch of camera modules, it can be set by default that the center point of the black block should be at the center position 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 its black block coincides with the center point of the test camera module's field of view image. In order to minimize the adjustment displacement, the above two positions need to be analyzed and processed separately.
[0068] As a preferred implementation mode, refer to Figure 3If the position of the base point is a black block area, the black block area where the base point is located is a first target black block, and a step S220 of using a second algorithm to calculate the first center coordinates of the first target black block includes:
[0069] S221, starting from the base point, respectively searching for the first boundary on the left side, right side, top side and bottom side of the base point, and calculating four intersection points A1, B1, C1 and D1 between the first boundaries on the left side, right side, top side and bottom side of the base point;
[0070] It should be noted that the area enclosed by the first boundary on the left side, right side, top side and bottom side of the base point is the first target black block.
[0071] S222 . Calculate first center coordinates of the first target black block according to the coordinates of the four intersection points A1 , B1 , C1 , and D1 .
[0072] In the embodiment of the present invention, a common center coordinate calculation method may be used to calculate the first center coordinate of the first target black block.
[0073] refer to Figure 6 , wherein the base point is the center of the white cursor, and according to the above steps, it can be confirmed that the circled area is the first target black block.
[0074] As a preferred implementation mode, refer to Figure 4 , if the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is a second target black block, and the second center coordinates of the second target black block are calculated using the third algorithm, or the first black area on the right adjacent to the white block area where the base point is located is a third target black block, and the third center coordinates of the third target black block are calculated using the fourth algorithm, step S230, including:
[0075] S231, starting from the first test, if the base point appears in the white block area for an odd number of times, starting from the base point, respectively searching for the first boundary and the second boundary that appear on the right side of the base point;
[0076] S232, randomly select a point between the first boundary and the second boundary on the right side of the base point as a first auxiliary point, and start from the first auxiliary point to search for the first boundary that appears above and below the first auxiliary point respectively;
[0077] S233, calculating the first boundary and the second boundary on the right side of the base point, and four intersection points A2, B2, C2, and D2 between the first boundary on the upper side and the lower side of the first auxiliary point;
[0078] It should be noted that the area enclosed by the first boundary and the second boundary on the right side of the base point and the first boundary above and below the first auxiliary point is the second target black block. The existence of the first auxiliary point helps to determine the second target black block.
[0079] refer to Figure 7 , wherein the base point is the center of the black cursor, and according to the above steps, 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 according to the coordinates of the four intersection points A2, B2, C2, and D2.
[0081] In the embodiment of the present invention, a common center coordinate calculation method may be used to calculate the second center coordinate of the second target black block.
[0082] As a preferred implementation mode, refer to Figure 5 , if the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is a second target black block, and the second center coordinates of the second target black block are calculated using the third algorithm, or the first black area on the right adjacent to the white block area where the base point is located is a third target black block, and the third center coordinates of the third target black block are calculated using the fourth algorithm, step S230, including:
[0083] S235, starting from the first test, if the base point appears in the white block area for an even number of times, starting from the base point, searching for the first boundary and the second boundary that appear on the left side of the base point respectively;
[0084] S236, randomly selecting a point between the first boundary and the second boundary on the left side of the base point as a second auxiliary point, starting from the second auxiliary point, and searching for the first boundary that appears above and below the second auxiliary point respectively;
[0085] S237, calculating four intersection points A3, B3, C3, and D3 between the first boundary and the second boundary on the left side of the base point, and the first boundary on the upper side and the lower side of the second auxiliary point;
[0086] It should be noted that the area enclosed by the first boundary and the second boundary on the left side of the base point and the first boundary above and below the second auxiliary point is the third target black block. The existence of the second auxiliary point helps to determine the third target black block.
[0087] S238. Calculate the third center coordinates of the third target black block according to the coordinates of the four intersection points A3, B3, C3, and D3.
[0088] In the embodiment of the present invention, the third center coordinate of the third target black block may be calculated by using a common center coordinate calculation method.
[0089] In an embodiment of the present invention, searching for black blocks to the right or searching for black blocks to the left is performed when the base point appears in the white block area an odd number of times or an even number of times. This is to avoid the checkerboard image being displaced in one direction and out of the field of view of the camera module by searching in a certain direction all the time.
[0090] Second, reference Figure 8 The embodiment of the present invention further provides a camera module testing system, comprising:
[0091] A first processing module 10, wherein the first processing module 10 is used to obtain the image center coordinates of the chessboard image as a base point;
[0092] A second processing module 20, the second processing module 20 is used to analyze and process the checkerboard image, obtain a target black block and analyze and process the target black block to obtain the center coordinates of the target black block;
[0093] A third processing module 30, the third processing module 30 is used to process the base point and the center coordinates using a first algorithm and output adjustment data;
[0094] The fourth processing module 40 is configured to output adjustment information according to the adjustment data.
[0095] In addition, the second processing module further 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 for, if the location of the base point is a black block area, the black block area where the base point is located is a first target black block, and a second algorithm is used to calculate the first center coordinates of the first target black block.
[0098] The third processing unit is used to calculate the second center coordinates of the second target black block by using a third algorithm if the position of the base point is a white block area, then the first black area on the left or the first black area on the right adjacent to the white block area where the base point is located is the second target black block.
[0099] Furthermore, the second processing unit further includes:
[0100] a first processing subunit, the first processing subunit being used to start from the base point, respectively search for the first boundary on the left side, right side, top side and bottom side of the base point, and calculate four intersection points A1, B1, C1 and D1 between the first boundaries on the left side, right side, top side and bottom side of the base point;
[0101] A second processing subunit, the second processing subunit is used to calculate the first center coordinates of the first target black block according to the coordinates of the four intersection points A1, B1, C1, and D1.
[0102] Furthermore, the third processing unit further includes:
[0103] a third processing subunit, the third processing subunit being used to start counting from the first test, and if the base point appears in the white block area for an odd number of times, starting from the base point, respectively searching for a first boundary and a second boundary appearing on the right side of the base point;
[0104] a fourth processing subunit, the fourth processing subunit being used to select any point between the first boundary and the second boundary on the right side of the base point as a first auxiliary point, and starting from the first auxiliary point, respectively searching for the first boundary appearing above and below the first auxiliary point;
[0105] a fifth processing subunit, the fifth processing subunit being used to calculate four intersection points A2, B2, C2, and D2 between a first boundary and a second boundary on the right side of the base point, and a first boundary on the upper side and the lower side of the first auxiliary point;
[0106] A sixth processing subunit is used to calculate the second center coordinates of the second target black block according to the coordinates of the four intersection points A2, B2, C2, and D2.
[0107] a seventh processing subunit, the seventh processing subunit being used to start counting from the first test, and if the base point appears in the white block area for an even number of times, starting from the base point, respectively searching for a first boundary and a second boundary that appear on the left side of the base point;
[0108] an eighth processing subunit, the eighth processing subunit being used to select any point between the first boundary and the second boundary on the left side of the base point as a second auxiliary point, and starting from the second auxiliary point, respectively searching for the first boundary appearing above and below the second auxiliary point;
[0109] a ninth processing subunit, the ninth processing subunit being used to calculate four intersection points A3, B3, C3, and D3 between a first boundary and a second boundary on the left side of the base point, and the first boundary on the upper side and the lower side of the second auxiliary point;
[0110] A tenth processing subunit is used to calculate the second center coordinates of the second target black block according to the coordinates of the four intersection points A3, B3, C3, and D3.
[0111] The technical effects brought about by the camera module testing system in the embodiment of the present invention correspond one to one with the technical effects of the corresponding method.
[0112] The present application obtains adjustment data and adjustment information by analyzing and processing the original checkerboard image, and can automatically adjust the checkerboard image according to the adjustment information, so that the relative position of each test module and the checkerboard remains stable, thereby avoiding test errors and improving test efficiency.
[0113] Thirdly, Fig. 9 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present invention. Fig. 9 The electronic device 1000 includes a memory 1010 and a processor 1020. The processor 1020 may be a central processing unit (CPU), or an integrated circuit composed of other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be any conventional processor capable of running a Linux kernel.
[0114] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device can be a readable and writable storage device.
[0115] The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (e.g., a magnetic or optical disk, a flash memory) as a permanent storage device. In other embodiments, the permanent storage device may be a removable storage device (e.g., a floppy disk, an optical drive). The system memory may be a read-write storage device or a volatile read-write storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may 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 magnetic disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a removable storage device that is readable and / or writable, such as a laser disc (CD), a read-only digital versatile disc (e.g., a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0116] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0117] In addition, the method according to the embodiment of the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0118] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A camera module testing method, characterized in that: include: Get the image center coordinates of the chessboard image as the base point; Analyzing and processing the checkerboard image to obtain a target black block, and analyzing and processing the target black block to obtain the center coordinates of the target black block; Processing the base point and the center coordinates using a first algorithm to output adjustment data; Adjustment information is output according to the adjustment data.
2. The camera module testing method according to claim 1, characterized in that: 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 the center coordinates of the target black block includes: The location of the base point is detected as a black block area or a white block area.
3. The camera module testing method according to claim 2, characterized in that: The analyzing and processing the checkerboard image to obtain the target black block and analyzing and processing the target black block to obtain the center coordinates of the target black block also includes: If the location of the base point is a black block area, the black block area where the base point is located is a first target black block, and the first center coordinates of the first target black block are calculated using a second algorithm.
4. The camera module testing method according to claim 2, characterized in that: The analyzing and processing the checkerboard image to obtain the target black block and analyzing and processing the target black block to obtain the center coordinates of the target black block also includes: If the base point is located in a white block area, the first black area on the left adjacent to the white block area where the base point is located is the second target black block, and the third algorithm is used to calculate the second center coordinates of the second target black block, or the first black area on the right adjacent to the white block area where the base point is located is the third target black block, and the fourth algorithm is used to calculate the third center coordinates of the third target black block.
5. The camera module testing method according to claim 3, characterized in that: If the position of the base point is a black block area, the black block area where the base point is located is a first target black block, and a second algorithm is used to calculate the first center coordinates of the first target black block, including: Starting from the base point, find the first boundary on the left side, right side, top side and bottom side of the base point respectively, and calculate four intersection points A1, B1, C1 and D1 between the first boundaries on the left side, right side, top side and bottom side of the base point; The first center coordinates of the first target black block are calculated according to the coordinates of the four intersection points A1, B1, C1, and D1.
6. The camera module testing method according to claim 4, characterized in that: If the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is a second target black block, and the second center coordinates of the second target black block are calculated using a third algorithm, or the first black area on the right adjacent to the white block area where the base point is located is a third target black block, and the third center coordinates of the third target black block are calculated using a fourth algorithm, including: Counting from the first test, if the base point appears in the white block area for an odd number of times, starting from the base point, respectively search for the first boundary and the second boundary that appear on the right side of the base point; A point between the first boundary and the second boundary on the right side of the base point is randomly selected as a first auxiliary point, and starting from the first auxiliary point, the first boundary appearing above and below the first auxiliary point is searched respectively; Calculate the first boundary and the second boundary on the right side of the base point, and four intersection points A2, B2, C2, and D2 between the first boundary on the upper side and the lower side of the first auxiliary point; The second center coordinates of the second target black block are calculated according to the coordinates of the four intersection points A2, B2, C2, and D2.
7. The camera module testing method according to claim 4, characterized in that: If the position of the base point is a white block area, the first black area on the left adjacent to the white block area where the base point is located is a second target black block, and the second center coordinates of the second target black block are calculated using a third algorithm, or the first black area on the right adjacent to the white block area where the base point is located is a third target black block, and the third center coordinates of the third target black block are calculated using a fourth algorithm, including: Counting from the first test, if the base point appears in the white block area for an even number of times, starting from the base point, respectively search for the first boundary and the second boundary that appear on the left side of the base point; A point between the first boundary and the second boundary on the left side of the base point is randomly selected as a second auxiliary point, and starting from the second auxiliary point, the first boundary appearing above and below the second auxiliary point is searched respectively; Calculate four intersection points A3, B3, C3, and D3 between the first boundary and the second boundary on the left side of the base point, and the first boundary on the upper side and the lower side of the second auxiliary point; The third center coordinates of the third target black block are calculated according to the coordinates of the four intersection points A3, B3, C3, and D3.
8. A camera module testing system, characterized in that: include: A first processing module, the first processing module is used to obtain the image center coordinates of the chessboard image as a base point; A second processing module, the second processing module is used to analyze and process the checkerboard image, obtain a target black block, and analyze and process the target black block to obtain the center coordinates of the target black block; A third processing module, the third processing module is used to process the base point and the center coordinates using the first algorithm and output adjustment data; A fourth processing module, the fourth processing module is used to output adjustment information according to the adjustment data.
9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
AR sand table calibration model calculation method capable of automatically correcting deviation
CN108320311A
Image resolution determination method and device and computer storage medium
CN111524153A
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