Verify camera module calibration accuracy, camera module testing method and device

By using the target black and white test chart to extract grayscale and depth images, the calibration accuracy of the TOF camera module is verified, which solves the problem of tedious and time-consuming test steps in the existing technology, and enables calibration and verification on the same machine. Efficient process.

CN113838146BActive Publication Date: 2024-10-18KUNSHAN QIUTI PHOTOELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111128130.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-10-18
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

In the existing technology, the calibration process and calibration accuracy verification process of the TOF camera module require the use of different test charts, which results in cumbersome and time-consuming test steps and cannot be performed on the same machine.

Method used

By using the target black and white test chart, the imaging results of the TOF camera module are obtained, the grayscale image and the depth image are extracted, the position information of the white area is determined, and the depth information of the target block of interest is extracted from the depth image based on this information to verify Ranging calibration results of the camera module.

Benefits of technology

It realizes calibration and calibration accuracy verification on the same test chart, simplifies the test steps, reduces the test time, avoids noise interference in the black area, and improves the test efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113838146B_ABST
    Figure CN113838146B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for verifying the calibration accuracy of a camera module, a camera module test method, and a device, which obtain the imaging result of a TOF camera module on a target black and white test image, and extract a grayscale image and a depth image from the imaging result; determine the first position information of a white area in the grayscale image, and determine the second position information of a target focus block in the white area according to the first position information of the white area; extract the depth information of the target focus block in the depth image according to the second position information; and verify the range calibration result of the TOF camera module based on the depth information. The present invention breaks the limitation of the type of test image used in the process of verifying the calibration accuracy, thereby solving the technical problems of cumbersome test steps and long test process of the camera module to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of camera testing, and in particular relates to a method and device for verifying camera module calibration accuracy and testing a camera module. Background Art

[0002] The TOF (Time of flight) camera module has a testing process before leaving the factory. The testing process includes a calibration process and a process of verifying the calibration accuracy. In order to ensure the accuracy of the calibration, the calibration accuracy needs to be verified. After completing the calibration of the TOF camera module, the calibration accuracy needs to be verified. For example: For the TOF camera module, it is necessary to calibrate the test distance between the TOF camera module and the test board, and verify the accuracy of the ranging calibration result.

[0003] In the related technology, the process of verifying the calibration accuracy uses a white test chart, which is different from the test chart used in the calibration process and cannot be used interchangeably. As a result, the calibration process of the TOF camera module and the process of verifying the calibration accuracy need to be performed on two different machines and cannot be combined on the same machine. The testing steps are cumbersome and the testing process is time-consuming. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for verifying the calibration accuracy of a camera module and testing a camera module, so that the process of verifying the calibration accuracy can use a target black and white test image, which to a certain extent solves the technical problems in the prior art of complicated testing steps and time-consuming testing process.

[0005] In a first aspect, an embodiment of the present invention provides a method for verifying the calibration accuracy of a camera module, comprising:

[0006] Obtaining the imaging result of the TOF camera module on the target black and white test image, and extracting the grayscale image and the depth image from the imaging result;

[0007] Determine first position information of a white area in the grayscale image, and determine second position information of a target focus block in the white area according to the first position information of the white area;

[0008] Extracting depth information of the target focus block in the depth image according to the second position information;

[0009] Based on the depth information, the ranging calibration result of the TOF camera module is verified.

[0010] Optionally, determining first position information of a white area in the grayscale image includes:

[0011] Processing the grayscale image to locate each white area in the grayscale image;

[0012] The position coordinates of each white area in the grayscale image are extracted to obtain the first position information.

[0013] Optionally, determining second position information of the target focus block in the white area according to the first position information of the white area includes:

[0014] Acquire third position information and grayscale information of a preselected position from the grayscale image;

[0015] The second position information is determined according to the first position information, and the third position information and the grayscale information of the preselected position.

[0016] Optionally, determining the second position information according to the first position information, and the third position information and grayscale information of the preselected position includes:

[0017] According to the grayscale information of the pre-selected position, determining whether the pre-selected position belongs to the white area;

[0018] If yes, using the third position information of the preselected position as the second position information of the target focus block;

[0019] If not, the position coordinates of a pixel block in the target white area are used as the second position information of the target focus block, and the target white area is adjacent to the pre-selected position.

[0020] Optionally, extracting depth information of the target focus block in the depth image includes:

[0021] According to the second position information, obtaining a depth value of each pixel in the target focus block from the depth image;

[0022] The depth information is obtained according to the depth value of each pixel in the target focus block.

[0023] In a second aspect, an embodiment of the present invention provides a camera module testing method, which is applied to a camera testing machine, wherein the camera testing machine is provided with a target black and white test pattern, and the method comprises:

[0024] On the camera test machine, calibrating the TOF camera module using the target black and white test chart to obtain a ranging calibration result;

[0025] On the camera test machine, the distance measurement calibration result is verified using the target black and white test chart and the method described in any implementation manner of the first aspect.

[0026] In a third aspect, an embodiment of the present invention provides a device for verifying the calibration accuracy of a camera module, comprising:

[0027] An image acquisition unit is used to acquire an imaging result of a target black and white test image by a TOF camera module, and to extract a grayscale image and a depth image from the imaging result;

[0028] a position determination unit, configured to determine first position information of a white area in the grayscale image, and determine second position information of a target focus block in the white area according to the first position information of the white area;

[0029] An information extraction unit, configured to extract depth information of the target focus block in the depth image according to the second position information;

[0030] A verification unit is used to verify the ranging calibration result of the TOF camera module based on the depth information.

[0031] Optionally, the position determination unit includes:

[0032] a white positioning subunit, used for processing the grayscale image to locate each white area in the grayscale image;

[0033] The coordinate extraction subunit is used to extract the position coordinates of each white area in the grayscale image to obtain the first position information.

[0034] Optionally, the position determination unit includes:

[0035] A first information extraction subunit, configured to obtain third position information and grayscale information of a preselected position from the grayscale image;

[0036] The second information extraction subunit is used to determine the second position information according to the first position information and the third position information and grayscale information of the pre-selected position.

[0037] Optionally, the second information extraction subunit is specifically used to:

[0038] According to the grayscale information of the pre-selected position, determining whether the pre-selected position belongs to the white area;

[0039] If yes, using the third position information of the preselected position as the second position information of the target focus block;

[0040] If not, the position coordinates of a pixel block in the target white area are used as the second position information of the target focus block, and the target white area is adjacent to the pre-selected position.

[0041] Optionally, the information extraction unit includes:

[0042] A depth value extraction subunit, configured to obtain a depth value of each pixel in the target focus block from the depth image according to the second position information;

[0043] The depth information acquisition subunit is used to obtain the depth information according to the depth value of each pixel in the target focus block.

[0044] Optionally, the target black-and-white test pattern is specifically a checkerboard black-and-white test pattern.

[0045] In a fourth aspect, an embodiment of the present invention provides a camera module testing device, including a camera testing machine, wherein the camera testing machine is provided with a target black and white test pattern, and the testing device further includes:

[0046] A distance measurement calibration device is used to calibrate the TOF camera module on the camera test machine using the target black and white test chart to obtain a distance measurement calibration result;

[0047] An accuracy verification device is used to verify the distance measurement calibration result on the camera test machine using the target black and white test chart and any one of the implementation methods of the first aspect.

[0048] In a fifth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of the embodiments of the first aspect or the second aspect is implemented.

[0049] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation of the first aspect or the second aspect.

[0050] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

[0051] By extracting the grayscale image and depth image from the imaging results of the target black and white test chart by the TOF camera module; determining the first position information of the white area in the grayscale image, and determining the second position information of the target focus block in the white area based on the first position information; obtaining the depth information of the target focus block in the depth image based on the second position information; and verifying the distance measurement calibration result of the TOF camera module based on the depth information. This ensures that the target focus block can avoid the interference of the noise in the black area on the depth information extraction, realizes the verification of the calibration accuracy of the camera module using the target black and white test chart, and breaks the limitation of the calibration accuracy verification process on the test chart. In addition, the calibration accuracy verification process can use the same test chart as the distance measurement calibration process, which is conducive to simplifying the test steps and reducing the test time. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 A flow chart of a method for verifying the calibration accuracy of a camera module provided by an embodiment of the present invention;

[0054] Figure 2 A flowchart of a camera module testing method provided by an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of a device for verifying the calibration accuracy of a camera module provided by an embodiment of the present invention;

[0056] Figure 4 A system architecture diagram of a camera module testing device provided in an embodiment of the present invention;

[0057] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to solve the technical problems in the prior art that the testing steps of the camera module are complicated and the testing process is time-consuming, the embodiments of the present invention provide a method and device for verifying the calibration accuracy of the camera module and testing the camera module.

[0059] In order to solve the above technical problems, the technical solutions provided by the above embodiments of the present invention have the following general ideas:

[0060] Extract the grayscale image and depth image from the imaging result of the TOF camera module on the target black and white test image; determine the first position information of the white area in the grayscale image, and determine the second position information of the target focus block based on the first position information; obtain the depth information of the target focus block in the depth image based on the second position information; verify the distance measurement calibration result of the TOF camera module based on the depth information. The above technical solution avoids the interference of noise in the black area on the extraction of depth information, realizes the verification of the calibration accuracy of the camera module using the target black and white test image, and then, the same test image can be used in the calibration process, which is conducive to simplifying the test steps and reducing the test time.

[0061] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0062] First of all, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0063] In the testing of camera modules in related technologies, a black and white test pattern is generally used for distance measurement calibration of the TOF camera module, such as a checkerboard black and white test pattern, while a white pattern is required for verifying the calibration accuracy. As a result, different test patterns are required for the distance measurement calibration process and the calibration accuracy verification process. In actual testing, the test pattern needs to be replaced after the calibration process, and the distance measurement calibration process and the calibration accuracy verification process cannot be completed on the same test machine. Therefore, the test efficiency is low.

[0064] The inventors found that the process of verifying the calibration accuracy cannot directly use the black and white test chart used for distance measurement calibration, because the black area of ​​the black and white test chart has a large amount of noise, which will interfere with the extraction of depth information during the verification process, resulting in inaccurate verification. Therefore, in order to use the same black and white test chart for distance measurement calibration and verification of calibration accuracy of the TOF camera module, the embodiment of the present invention provides a method for verifying the distance measurement calibration result of the TOF camera module using a black and white test chart to verify whether the calibration accuracy reaches the preset accuracy.

[0065] refer to Figure 1 As shown, the method for verifying the calibration accuracy of a camera module provided by an embodiment of the present invention comprises the following steps:

[0066] S101, obtaining an imaging result of a target black-and-white test image by a TOF camera module, and extracting a grayscale image and a depth image from the imaging result.

[0067] In step S101, the TOF camera module to be tested is used to shoot a target black and white test pattern set on the test machine to obtain an imaging result. Among them, the target black and white test pattern can be but not limited to a black and white test pattern of a chessboard. Depending on the actual situation, the target black and white test pattern used is different. Specifically, the black and white test pattern used for ranging calibration by the TOF camera module is directly used to simplify the test process.

[0068] Specifically, the imaging result of the TOF camera module on the target black and white test image is obtained, and the grayscale image and the depth image are extracted from the imaging result. When extracting the grayscale image from the imaging result, any algorithm such as floating point algorithm, integer method, shift method, average method, etc. can be used. The depth image is directly obtained from the imaging result of the TOF camera module on the target black and white test image.

[0069] S102 , determining first position information of a white area in the grayscale image, and determining second position information of a target focus block located in the white area according to the first position information of the white area.

[0070] In step S102, by processing the grayscale image, each white area in the grayscale image is located; the position coordinates of each white area in the grayscale image are extracted, thereby obtaining first position information, and the first position information includes the position coordinates of each white area in the grayscale image. The position coordinates of each extracted white area can be represented by the coordinates of each vertex of the white area, such as: (x1, y1, x2, y2, x3, y3, x4, y4). Of course, it can also be represented by the coordinates of the diagonal vertices, such as: (x1, y1, x2, y2).

[0071] Take a black and white test chart with checkerboard as an example. In the black and white test chart with checkerboard, a white square corresponds to a white area in the imaging result, and a black square corresponds to a black area in the imaging result. The imaging result of the black and white test chart with checkerboard is an image formed by the interlacing of black areas and white areas. It is necessary to locate each independent white area from the grayscale image of the imaging result.

[0072] In step S102, third position information and grayscale information of a preselected position are obtained from the grayscale image; second position information of the target focus area is determined based on the first position information and the third position information and grayscale information of the preselected position.

[0073] It should be noted that the pre-selected position may be a pixel block at the center point of the imaging result, and of course, may also be other positions selected according to actual needs, such as: a pixel block located at 60% of the field of view on all sides.

[0074] In specific implementation, the method of extracting the second position information of the target block of interest is different depending on whether the pre-selected position is imaged in a white area or a black area. Specifically, based on the grayscale information of the pre-selected position, it is determined whether the pre-selected position belongs to the white area; if the pre-selected position belongs to the white area, the third position information of the pre-selected position is used as the second position information of the target block of interest.

[0075] If the pre-selected position does not belong to the white area, the position coordinates of a pixel block in the target white area are used as the second position information of the target focus block, and the target white area is adjacent to the pre-selected position. Specifically, the position coordinates of each white area in the first position information are compared with the third position information to determine a white area closest to the pre-selected position, that is, the target white area; select the target focus block in the target white area, for example: select a pixel block closest to the pre-selected position in the target white area as the target focus area.

[0076] It is understandable that the target focus block is a pixel block of a preset size, for example, the preset size may be 10*10 pixels. Of course, in specific implementation, the preset size may be preset to other values ​​according to actual needs, which is not limited here.

[0077] In the process of directly using the black and white test image to verify the calibration accuracy, the inventor found that the noise in the black area is relatively large, which will interfere with the extraction of depth information. In order to eliminate noise interference, the second position information of the target focus block in the white area can be accurately extracted through the above step S102.

[0078] S103 . Extract depth information of the target focus block in the depth image according to the second position information.

[0079] Specifically, the pixel block indicated by the second position information is where the white area is located. According to the second position information, the depth information of the target focus block is extracted in the depth image, and the depth information of the black area will not be extracted. For example, if the second position information is (x1, y1, x2, y2, x3, y3, x4, y4), then the depth information of the pixel block (x1, y1, x2, y2, x3, y3, x4, y4) extracted in the depth image does not contain the depth information of the black pixels and is accurate.

[0080] It is understandable that, according to the second position information, the depth value of each pixel in the target focus block is obtained from the depth image; according to the depth value of each pixel in the target focus block, the depth information is determined. Specifically, the depth value of each pixel in the target focus block is averaged to obtain the average depth. Of course, in the specific implementation, other calculation methods can also be used to calculate the depth value of each pixel in the target focus block to obtain the depth information of the target focus block.

[0081] S104: Verify the distance measurement calibration result of the TOF camera module based on the depth information.

[0082] Specifically, the ranging calibration result calibrates the test distance between the TOF camera module and the target black and white test image, and determines whether the difference between the depth information and the ranging calibration result is less than a preset value. If so, it is determined that the ranging calibration result of the TOF camera module meets the preset accuracy. Otherwise, it is determined that the ranging calibration result of the TOF camera module does not meet the preset accuracy, and the test distance of the TOF camera module needs to be recalibrated.

[0083] Through the above technical solution, the process of verifying the calibration accuracy can be carried out using the target black and white test chart, breaking the limitation of the test chart in the process of verifying the calibration accuracy, and then the same target black and white test chart can be used in the calibration process of calibrating the TOF camera module, thus providing conditions for the ranging calibration and verification of the calibration accuracy of the TOF camera module on the same test machine.

[0084] Based on the same inventive concept, an embodiment of the present invention provides a camera module testing method, which is applied to a camera testing machine. The camera testing machine is provided with a target black and white test pattern. Figure 2 As shown, the TOF camera module testing method includes the following steps:

[0085] S201, on a camera test machine, calibrate the TOF camera module using a target black and white test chart to obtain a ranging calibration result;

[0086] S202: On a camera test machine, verify the distance measurement calibration result using a target black and white test chart and a method for verifying the calibration accuracy of a camera module.

[0087] It should be noted that the process of calibrating the TOF camera module in this embodiment can refer to the existing relevant technology; and the process of verifying the calibration accuracy of the camera module can refer to the aforementioned method embodiment for verifying the calibration accuracy of the camera module. For the sake of brevity of the specification, they will not be repeated here.

[0088] Through the embodiment of the present invention, the distance measurement calibration and calibration accuracy verification process of the TOF camera module are completed on the same test machine and using the same test chart, which simplifies the pre-shipment test process of the TOF camera module, saves test time, and improves test efficiency.

[0089] Moreover, the hardware environment used for the distance measurement calibration and verification of the calibration accuracy of the TOF camera module can be consistent, which improves the calibration pass rate.

[0090] Based on the same inventive concept, the embodiment of the present invention also provides a device for verifying the calibration accuracy of a camera module, referring to Figure 3 As shown, the device for verifying the calibration accuracy of the camera module includes:

[0091] The image acquisition unit 301 is used to acquire the imaging result of the TOF camera module on the target black and white test image, and extract the grayscale image and the depth image from the imaging result;

[0092] A position determination unit 302 is used to determine first position information of a white area in the grayscale image, and determine second position information of a target focus block in the white area according to the first position information of the white area;

[0093] An information extraction unit 303 is used to extract depth information of the target focus block in the depth image according to the second position information;

[0094] The verification unit 304 is used to verify the distance measurement calibration result of the TOF camera module based on the depth information.

[0095] In an optional implementation manner, the location determination unit 302 includes:

[0096] A white positioning subunit, used for processing the grayscale image to locate each white area in the grayscale image;

[0097] The coordinate extraction subunit is used to extract the position coordinates of each white area in the grayscale image to obtain first position information, and the first position information includes the position coordinates of each white area in the grayscale image.

[0098] In an optional implementation manner, the location determination unit 302 includes:

[0099] A first information extraction subunit, used for acquiring third position information and grayscale information of a preselected position from the grayscale image;

[0100] The second information extraction subunit is used to determine the second position information according to the first position information, and the third position information and grayscale information of the pre-selected position.

[0101] In an optional implementation manner, the second information extraction subunit is specifically configured to:

[0102] According to the grayscale information of the pre-selected position, determine whether the pre-selected position belongs to the white area;

[0103] If yes, use the third position information of the pre-selected position as the second position information of the target focus block;

[0104] If not, the position coordinates of a pixel block in the target white area are used as the second position information of the target focus block, and the target white area is adjacent to the pre-selected position.

[0105] In an optional implementation manner, the information extraction unit 303 includes:

[0106] A depth value extraction subunit, used to obtain the depth value of each pixel in the target focus block from the depth image according to the second position information;

[0107] The depth information acquisition subunit is used to obtain depth information according to the depth value of each pixel in the target focus block.

[0108] In the above-mentioned device for verifying the calibration accuracy of the camera module, each functional unit is used to implement the aforementioned method embodiment for verifying the calibration accuracy of the camera module. For the corresponding method steps, the specific implementation details can refer to the relevant content in the aforementioned method embodiment for verifying the calibration accuracy of the camera module. For the sake of brevity of the specification, they will not be repeated here.

[0109] Based on the same inventive concept, an embodiment of the present invention provides a camera module testing device, referring to Figure 4 As shown, the camera module testing device includes: a camera testing machine 400, the camera testing machine 400 is provided with a target black and white test chart 401, and the camera module testing device also includes:

[0110] The distance measurement calibration device is used to calibrate the TOF camera module 402 using the target black and white test chart 401 on the camera test machine 400 to obtain the distance measurement calibration result;

[0111] The accuracy verification device is used to verify the ranging calibration result obtained by the ranging calibration device on the camera testing machine 400 using the target black and white test chart 401 and the method for verifying the calibration accuracy of the camera module described in any embodiment of the first aspect.

[0112] It should be noted that the process of calibrating the TOF camera module in this embodiment can refer to the relevant technology; and the process of verifying the calibration accuracy of the camera module can refer to the aforementioned method embodiment for verifying the calibration accuracy of the camera module. For the sake of brevity of the specification, they will not be repeated here.

[0113] Based on the same inventive concept, another embodiment of the present invention provides an electronic device for implementing the method for verifying the calibration accuracy of the camera module in the embodiment of the present invention, such as Figure 5 As shown, the electronic device includes a memory 504, a processor 502, and a computer program stored in the memory 504 and executable on the processor 502. When the processor 502 executes the program, the method for verifying the calibration accuracy of the camera module described above is implemented.

[0114] Among them, Figure 5 In the embodiment of the present invention, a bus architecture (represented by bus 500) is shown, which may include any number of interconnected buses and bridges, and bus 500 links various circuits including one or more processors represented by processor 502 and memory represented by memory 504. Bus 500 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 505 provides an interface between bus 500 and receiver 501 and transmitter 503. Receiver 501 and transmitter 503 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 502 is responsible for managing bus 500 and general processing, while memory 504 may be used to store data used by processor 502 when performing operations.

[0115] Since the electronic device introduced in this embodiment is an electronic device used to implement the method for verifying the calibration accuracy of the camera module in the embodiment of the present invention, based on the method for verifying the calibration accuracy of the camera module introduced in the embodiment of the present invention, the technical personnel in this field can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present invention is not described in detail here. As long as the technical personnel in this field implement the electronic device used by the method for verifying the calibration accuracy of the camera module in the embodiment of the present invention, it belongs to the scope of protection of the present invention.

[0116] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0117] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0118] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0119] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0120] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0121] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for verifying the calibration accuracy of a camera module. It is characterized in that include: Obtaining the imaging result of the TOF camera module on the target black and white test image, and extracting the grayscale image and the depth image from the imaging result; Determining the first position information of the white area in the grayscale image, and determining the second position information of the target focus block in the white area according to the first position information of the white area, including: acquiring the third position information and grayscale information of the preselected position from the grayscale image; determining the second position information according to the first position information, and the third position information and grayscale information of the preselected position; wherein, judging whether the preselected position belongs to the white area according to the grayscale information of the preselected position; if yes, using the third position information of the preselected position as the second position information of the target focus block; if no, using the position coordinates of a pixel block in the target white area as the second position information of the target focus block, and the target white area is adjacent to the preselected position; Extracting depth information of the target focus block in the depth image according to the second position information; Based on the depth information, the ranging calibration result of the TOF camera module is verified.

2. The method according to claim 1, It is characterized in that The determining first position information of the white area in the grayscale image includes: Processing the grayscale image to locate each white area in the grayscale image; The position coordinates of each white area in the grayscale image are extracted to obtain the first position information.

3. The method according to claim 1, It is characterized in that The extracting the depth information of the target focus block in the depth image includes: According to the second position information, obtaining a depth value of each pixel in the target focus block from the depth image; The depth information is obtained according to the depth value of each pixel in the target focus block.

4. A camera module testing method, applied to a camera testing machine, wherein the camera testing machine is provided with a target black and white test pattern, It is characterized in that The method comprises: On the camera test machine, calibrating the TOF camera module using the target black and white test chart to obtain a ranging calibration result; On the camera test machine, the distance measurement calibration result is verified using the target black and white test chart and the method described in any one of claims 1 to 3.

5. A device for verifying the calibration accuracy of a camera module, It is characterized in that include: An image acquisition unit is used to acquire an imaging result of a target black and white test image by a TOF camera module, and to extract a grayscale image and a depth image from the imaging result; A position determination unit, for determining first position information of a white area in the grayscale image, and determining second position information of a target focus block in the white area according to the first position information of the white area, comprising: acquiring third position information and grayscale information of a preselected position from the grayscale image; determining the second position information according to the first position information, and the third position information and grayscale information of the preselected position; wherein, judging whether the preselected position belongs to the white area according to the grayscale information of the preselected position; if so, using the third position information of the preselected position as the second position information of the target focus block; if not, using the position coordinates of a pixel block in the target white area as the second position information of the target focus block, and the target white area is adjacent to the preselected position; An information extraction unit, configured to extract depth information of the target focus block in the depth image according to the second position information; A verification unit is used to verify the ranging calibration result of the TOF camera module based on the depth information.

6. A camera module testing device, comprising a camera testing machine, on which a target black and white test pattern is arranged. It is characterized in that The camera module testing device also includes: A distance measurement calibration device is used to calibrate the TOF camera module on the camera test machine using the target black and white test chart to obtain a distance measurement calibration result; An accuracy verification device is used to verify the distance measurement calibration result on the camera test machine using the target black and white test chart and the method described in any one of claims 1 to 3.

7. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when executing the program.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • TOF camera module precision measurement method and system

    CN111385558A

  • Test image processing method and device, electronic equipment and storage medium

    CN113362238A