Calibration method for motion optical imaging
By performing motion optical imaging calibration in a variety of different scenarios, using a checkerboard calibration board and image processing algorithms to calculate the internal and external parameters of the sensor, the problems of calibration accuracy and reliability in the existing technology are solved, and a higher level of accuracy is achieved. accuracy and reliability.
Patent Information
- Application Number
- CN202410941252.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-08-23
AI Technical Summary
The motion optical imaging calibration method in the existing technology only performs single image verification in a single environment, which limits the accuracy of verification and cannot effectively solve the accuracy and reliability problems in multiple environments and multiple scenes.
Using a checkerboard calibration board, motion optical sensors, calibration software and image processing software, through repeated calibration in a variety of different scenarios, image data is collected and processed, feature points are extracted, internal and external parameters of the sensor are calculated, and lens distortion is measured The average value of the variables is calculated to improve the accuracy and reliability of the calibration results.
Through multiple calibrations and data statistics in different scenarios, the accuracy and reliability of sports optical imaging calibration have been significantly improved, a large amount of data support has been provided, and the decision-making accuracy of calibration has been improved.
Smart Images

Figure CN118537414A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motion optical imaging calibration methods, and in particular to a motion optical imaging calibration method. Background Art
[0002] With the development of science and technology, imaging calibration technology has received more and more attention, and motion optical sensors have also been widely used in many fields. Motion optical sensors can track the motion state of the target in real time, and have significant advantages such as high accuracy and fast response speed. However, in the application, a series of imaging calibration must be performed to obtain accurate measurement results. The imaging calibration of motion optical sensors is an important process in computer vision and image processing, which is used to determine the internal parameters (intrinsic parameters) and external parameters (extrinsic parameters) of the camera, as well as possible lens distortion parameters. These parameters describe how to map objects in the three-dimensional world to the two-dimensional image plane, and take into account the characteristics of the camera itself and optical distortion. For example, the existing Chinese patent document CN117237456A discloses a calibration method and system for large-target multi-camera imaging, which includes the following steps: S1: configuring a calibration block, a main camera and a plurality of paired auxiliary cameras; a main correction area is provided on the calibration block; and auxiliary calibration area; S2: using the main calibration area of the calibration block to calibrate the zero plane of the main camera and obtain the calibration parameters of the main camera; S3: taking the main camera as the reference camera, calibrate each auxiliary camera separately to obtain the calibration parameters of each auxiliary camera; complete the static calibration of the main camera and each auxiliary camera; S4: after the static calibration is completed, drive the main camera and each auxiliary camera to move in the Y-axis direction to complete the dynamic calibration of the main camera and each auxiliary camera; as described in this patent, the calibration methods for motion optical imaging in the prior art only perform single image verification calibration of a single environment, and the single environment image calibration greatly limits the accuracy of the verification.
[0003] Therefore, it is necessary to provide a calibration method for motion optical imaging to solve the above technical problems. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a calibration method for motion optical imaging.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a calibration method for motion optical imaging, specifically comprising the following steps: S1. Prepare the equipment required for calibration, including preparing a checkerboard calibration board, a motion optical sensor, calibration software and image processing software. Install the motion optical sensor at the calibration position and ensure that it is stable and facing the checkerboard calibration board. During the installation process, calibrate the motion optical sensor to ensure that it obtains the best imaging effect. S2, using the prepared calibration equipment to generate a calibration image; S3, using the motion optical sensor installed and calibrated in step S2 to collect image data from the calibration image generated on the checkerboard calibration board, and reducing noise and interference as much as possible during the collection process to ensure clarity and stability of the collected image; S4, preprocessing the acquired image acquired in step S4 by image processing software to improve the image quality, extracting feature points in the image by image processing algorithm, and then matching and corresponding the extracted feature points with the feature points on the calibration image generated in step S3; S5. Calculate the internal and external parameters of the sensor using a calibration algorithm based on the extracted feature points and the generated calibration image; S6, repeating the above steps S1 to S7 with different scenes, and repeating the above steps S1 to S5 multiple times in the same scene, and generating different calibration images for calibration each time, performing statistical calculations on the internal parameters and external parameters calculated each time, and finally outputting a comprehensive settlement result; S7. Use the calculated parameters to verify the sensor to ensure the accuracy and reliability of the calibration results. Collect new images and analyze them to compare the imaging effects before and after calibration.
[0006] Preferably, the calibration of the motion optical sensor during installation in step S1 specifically includes adjusting parameters such as the position, angle and focal length of the sensor.
[0007] Preferably, the internal parameters and external parameters are specifically lens distortion, an internal parameter matrix and an external parameter matrix.
[0008] Preferably, in step S2, it is necessary to ensure that the feature points in the generated calibration image contain 10-20 checkerboard corner points of the checkerboard calibration plate, and all the checkerboard corner points must be evenly distributed in the calibration image.
[0009] Preferably, the statistical calculation of the internal parameters and the external parameters in step S6 specifically includes the following steps: D1. Record the lens distortion amount obtained by each calibration algorithm; D2. Calculate and obtain the average value PJZ of the lens distortion.
[0010] Preferably, the step S6 also includes tabulating and outputting all statistically obtained data to assist in the calibration and verification of the sensor.
[0011] Preferably, the lens distortion average value PJZ is calculated using the following formula: ; Wherein JBn represents the calculated distortion amount, and n represents the number of times steps S1 to S5 are repeated.
[0012] Preferably, the image processing software is Matrox Imaging Library.
[0013] Preferably, the different scenes in step S6 include at least three different scenes, and the difference between the different scenes lies in the change of light intensity.
[0014] The present invention provides a calibration method for motion optical imaging. Compared with the prior art, it has the following beneficial effects: A motion optical imaging calibration method provided by the present invention performs imaging calibration on an optical motion sensor by using a checkerboard calibration plate, a motion optical sensor, calibration software, image processing software and an image processing algorithm. In particular, during the calibration, a plurality of different scenes are changed, and different calibration images are repeatedly generated for each scene for calibration, and the lens distortion amount obtained by calibration is averaged, thereby greatly improving the accuracy and reliability of the calibration result. At the same time, since the calculation results can be statistically analyzed during multiple calibration processes, the decision-making work of image calibration is assisted, a large amount of data support is provided for the calibration result, and the accuracy of the calibration is further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] See also Figure 1 The embodiment of the present invention provides a technical solution: a calibration method for motion optical imaging, which specifically includes the following steps: S1. Prepare the equipment required for calibration, including preparing a checkerboard calibration board, a motion optical sensor, calibration software and image processing software. Install the motion optical sensor at the calibration position and ensure that it is stable and facing the checkerboard calibration board. During the installation process, calibrate the motion optical sensor to ensure that it obtains the best imaging effect. S2, using the prepared calibration equipment to generate a calibration image; S3, using the motion optical sensor installed and calibrated in step S2 to collect image data from the calibration image generated on the checkerboard calibration board, and reducing noise and interference as much as possible during the collection process to ensure clarity and stability of the collected image; S4, preprocessing the acquired image acquired in step S4 by image processing software to achieve the effect of improving image quality, extracting feature points in the image by image processing algorithm, and then matching and corresponding the extracted feature points with the feature points on the calibration image generated in step S3. Common image processing algorithms are used for extracting feature points, including the following: 1) SIFT (Scale-Invariant Feature Transform) algorithm: SIFT is a classic feature point extraction algorithm with good scale invariance and rotation invariance. It detects extreme points in the scale space by constructing Gaussian pyramids and DOG pyramids, and calculates the direction histogram of each extreme point as a feature descriptor. The SIFT algorithm is widely used in various image processing tasks; 2) SURF (Speeded Up Robust Features) algorithm: The SURF algorithm is an improvement of the SIFT algorithm, which aims to improve the algorithm's operation speed. It uses the Hessian matrix to detect feature points in the image and adopts a simplified descriptor to represent the surrounding information of each feature point. The SURF algorithm has a faster operation speed while maintaining scale invariance and rotation invariance, and is suitable for tasks such as real-time image processing and target recognition; 3) ORB (Oriented FAST and Rotated BRIEF) algorithm: The ORB algorithm is an algorithm that combines FAST feature point detection and BRIEF feature descriptor. It uses the FAST algorithm to detect corner points in the image and uses the BRIEF algorithm to calculate the binary description value of each corner point. The ORB algorithm has a fast computing speed and good real-time performance, and is suitable for image processing tasks on embedded systems and mobile devices. 4) Harris corner detection algorithm: Harris algorithm is a corner detection algorithm based on image grayscale changes. It determines whether a point is a corner by calculating the autocorrelation matrix at each pixel in the image. Harris algorithm has a certain invariance to image rotation, brightness and contrast changes, and is suitable for tasks such as image registration and target tracking. The steps for extracting image feature points using the SIFT algorithm are as follows: F1. Constructing scale space: Within a certain range, the human eye can distinguish objects no matter how big or small they are. In order to enable computers to have a unified understanding of objects at different scales, the SIFT algorithm first constructs a scale space, which is usually achieved through a Gaussian pyramid, where each level is obtained by Gaussian blurring and downsampling the image of the previous level; F2. Detect extreme points in scale space: In the constructed scale space, the SIFT algorithm detects extreme points by comparing the grayscale values of each pixel with its adjacent pixels. These extreme points are feature points that are significant at different scales. F3. Accurately locate extreme points: After initially detecting extreme points, the SIFT algorithm also needs to accurately locate them to eliminate unstable factors caused by scale changes and image blur. This is usually achieved by fitting a three-dimensional quadratic function. F4. Specify direction parameters for each key point: In order to make the feature points rotationally invariant, the SIFT algorithm specifies one or more direction parameters for each key point. This is achieved by calculating the gradient direction and gradient amplitude of the pixels around the key point. F5. Generate feature descriptors: Finally, the SIFT algorithm generates a feature descriptor for each key point. This descriptor is a vector that contains the gradient direction and gradient amplitude information of the pixels around the key point. This descriptor can be used for subsequent image matching and target recognition tasks. S5. Calculate the internal and external parameters of the sensor using a calibration algorithm based on the extracted feature points and the generated calibration image; S6, repeating the above steps S1 to S7 with different scenes, and repeating the above steps S1 to S5 multiple times in the same scene, and generating different calibration images for calibration each time, performing statistical calculations on the internal parameters and external parameters calculated each time, and finally outputting a comprehensive settlement result; S7. Use the calculated parameters to verify the sensor to ensure the accuracy and reliability of the calibration results. Collect new images and analyze them to compare the imaging effects before and after calibration.
[0018] Since calibration is repeated multiple times, and different images are used for each calibration, multiple verifications are performed in different scenes. The calibration results of multiple verifications can be compared horizontally, and the average value of the obtained data can be calculated, which improves the accuracy of the calibration results. The calibration of the motion optical sensor during installation in step S1 specifically includes adjusting parameters such as the position, angle and focal length of the sensor.
[0019] The internal parameters and external parameters are specifically lens distortion, an internal parameter matrix and an external parameter matrix.
[0020] In step S2, it is necessary to ensure that the feature points in the generated calibration image contain 10-20 checkerboard corner points of the checkerboard calibration plate, and all the checkerboard corner points must be evenly distributed in the calibration image.
[0021] The statistical calculation of the internal parameters and the external parameters in step S6 specifically includes the following steps: D1. Record the lens distortion amount obtained by each calibration algorithm; D2. Calculate and obtain the average value PJZ of the lens distortion.
[0022] The step S6 also includes tabulating and outputting all the statistically obtained data to assist in the calibration and verification of the sensor. The table is as follows:
[0023] The lens distortion average value PJZ is calculated using the following formula: ; Wherein JBn represents the calculated distortion amount, and n represents the number of times steps S1 to S5 are repeated.
[0024] The image processing software is Matrox Imaging Library.
[0025] The different scenes in step S6 include at least three different scenes, and the difference between the different scenes lies in the change of light intensity.
[0026] In summary, a motion optical imaging calibration method provided by the present invention performs imaging calibration on an optical motion sensor by adopting a checkerboard calibration plate, a motion optical sensor, calibration software, image processing software and an image processing algorithm. In particular, during the calibration work, a plurality of different scenes are changed, and different calibration images are repeatedly generated for each scene for calibration, and the lens distortion amount obtained by calibration is averaged, thereby greatly improving the accuracy and reliability of the calibration result. At the same time, since the calculation results can be statistically analyzed during multiple calibration processes, the decision-making work of image calibration is assisted, a large amount of data support is provided for the calibration result, and the accuracy of the calibration result is further improved.
[0027] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0028] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0029] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A calibration method for motion optical imaging, It is characterized in that The specific steps include: S1. Prepare the equipment required for calibration, including preparing a checkerboard calibration board, a motion optical sensor, calibration software and image processing software. Install the motion optical sensor at the calibration position and ensure that it is stable and facing the checkerboard calibration board. During the installation process, calibrate the motion optical sensor to ensure that it obtains the best imaging effect. S2, using the prepared calibration equipment to generate a calibration image; S3, using the motion optical sensor installed and calibrated in step S2 to collect image data from the calibration image generated on the checkerboard calibration board, and reducing noise and interference as much as possible during the collection process to ensure clarity and stability of the collected image; S4, preprocessing the acquired image acquired in step S4 by image processing software to improve the image quality, extracting feature points in the image by image processing algorithm, and then matching and corresponding the extracted feature points with the feature points on the calibration image generated in step S3; S5. Calculate the internal and external parameters of the sensor using a calibration algorithm based on the extracted feature points and the generated calibration image; S6, repeating the above steps S1 to S7 with different scenes, and repeating the above steps S1 to S5 multiple times in the same scene, and generating different calibration images for calibration each time, performing statistical calculations on the internal parameters and external parameters calculated each time, and finally outputting a comprehensive settlement result; S7. Use the calculated parameters to verify the sensor, collect new images and analyze them to compare the imaging effects before and after calibration.
2. A method for calibrating motion optical imaging according to claim 1, Features: The calibration of the motion optical sensor during installation in step S1 specifically includes adjusting parameters such as the position, angle and focal length of the sensor.
3. A method for calibrating motion optical imaging according to claim 2, Features: The internal parameters and external parameters are specifically lens distortion, an internal parameter matrix and an external parameter matrix.
4. The method for calibrating motion optical imaging according to claim 1, Features: In step S2, it is necessary to ensure that the feature points in the generated calibration image contain 10-20 checkerboard corner points of the checkerboard calibration plate, and all the checkerboard corner points must be evenly distributed in the calibration image.
5. The method for calibrating motion optical imaging according to claim 3, Features: The statistical calculation of the internal parameters and the external parameters in step S6 specifically includes the following steps: D1. Record the lens distortion amount obtained by each calibration algorithm; D2. Calculate and obtain the average value PJZ of the lens distortion.
6. A method for calibrating motion optical imaging according to claim 5, Features: The step S6 also includes tabulating and outputting all statistically obtained data to assist in the calibration and verification of the sensor.
7. A method for calibrating motion optical imaging according to claim 6, Features: The lens distortion average value PJZ is calculated using the following formula: ; Wherein JBn represents the calculated distortion amount, and n represents the number of times steps S1 to S5 are repeated.
8. The method for calibrating motion optical imaging according to claim 1, Features: The image processing software is Matrox Imaging Library.
9. The method for calibrating motion optical imaging according to claim 1, Features: The different scenes in step S6 include at least three different scenes, and the difference between the different scenes lies in the change of light intensity.
Citation Information
Patent Citations
Calibration plate used for binocular camera calibration, calibration method and calibration system thereof
CN106887023A
Three-dimensional calibration algorithm of long-focus binocular camera
CN110969668A
Camera distortion pixel-by-pixel calibration method
CN113284196A
Development system of artificial intelligence calibration algorithm
CN114004898A
Camera parameter calibration method and device
WO2021238923A1
