Method and system for dynamically calibrating external parameters of roadside camera

Through feature point matching and initial external parameter calibration technology, the external parameter matrix of the roadside camera is adjusted in real time, which solves the problem of positioning errors caused by external factors and improves the perception accuracy and robustness of the vehicle-road collaborative system.

CN118628583AInactive Publication Date: 2024-09-10SHANGHAI SHANGYU ZHITU AUTOMOBILE TECH CO LTD

Patent Information

Application Number
CN202410790025.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In vehicle-road collaboration technology, the deviation of roadside cameras due to external factors such as strong winds leads to perceived positioning errors. There is a lack of real-time dynamic external parameter calibration methods, which affects the accuracy and performance of the system.

Method used

Use feature point matching technology to identify image changes before and after camera offset, fit the mapping relationship of coordinates after offset, recalculate the calibration matrix of the camera, and use initial external parameter calibration and feature point matching algorithms such as ORB, Harris corner detection and RANSAC , adjust the external parameter matrix in real time to correct the camera offset.

Benefits of technology

It improves the accuracy of sensing positioning, reduces positioning errors caused by external factors, enhances the system's robustness and overall sensing capabilities, and ensures the stability and accuracy of the sensing system under conditions such as strong winds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628583A
    Figure CN118628583A
Patent Text Reader

Abstract

The invention discloses an external parameter dynamic calibration method and system of a roadside camera. The invention relates to the technical field of intelligent traffic. The initial external parameters of the roadside camera in the step S1 can be calibrated during installation, or calibrated when the roadside camera is still and has no shaking light; the initial external parameter calibration of the roadside camera can adopt a hand-eye calibration method, also can adopt a calibration method combined with a laser radar, and also can adopt a calibration method based on a high-precision electronic map. According to the method, the internal and external parameters of the camera can be accurately acquired through accurate camera calibration (feature point matching in the step S2), so that camera offset caused by external factors (such as strong wind) is corrected. Therefore, the sensing positioning error can be reduced, and the image data captured by the camera can be ensured to be highly consistent with the actual scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, specifically to the field of cooperative vehicle-roadside infrastructure technology, and in particular to a method and system for dynamic calibration of external parameters of a roadside camera. Background Art

[0002] Vehicle-road collaboration technology is a technology that enables real-time traffic information sharing by establishing two-way communication between vehicles and road facilities. It mainly consists of three core parts: intelligent vehicle-mounted system (vehicle side), intelligent roadside system (roadside side + cloud) and communication platform. These components work together to ensure smooth interaction between vehicles and roads.

[0003] Accurate information fusion is required in vehicle-road cooperative technology, which first relies on the accurate execution of vehicle-road spatial alignment. The spatial alignment process aims to coordinate the information captured by the vehicle-mounted perception system and the roadside perception system for subsequent data fusion processing. Without this alignment step, there will be significant errors in the association between the targets or trajectories perceived by the vehicle and the roadside, which will seriously affect the accuracy and effect of information fusion.

[0004] In this process, accurate calibration of road cameras is particularly important. Camera calibration involves two types of parameters: intrinsic parameters and extrinsic parameters. Intrinsic parameters, i.e., the internal attribute parameters of the camera, cover key indicators such as focal length and distortion coefficient. These parameters usually remain constant after the camera is determined. Extrinsic parameters describe the spatial position and posture of the camera in the global coordinate system, including rotation matrix and translation vector.

[0005] However, due to dynamic changes in the external environment, such as strong winds, shaking poles, or loose fixtures, the camera may experience slight displacement and rotation. Such slight changes will affect the camera's external parameters, and thus affect the camera's accurate representation in the world coordinate system. Therefore, these external parameters need to be recalibrated to ensure the accuracy of the perception system.

[0006] Current research lacks in-depth discussion on the real-time dynamic external parameter calibration of roadside cameras. If the external parameters of the camera cannot be corrected and adjusted in time, the positioning error of the perception system may increase significantly, thus affecting the overall performance and accuracy of the vehicle-road cooperative system.

[0007] To this end, the present invention proposes a method and system for dynamic calibration of external parameters of a roadside camera. Summary of the invention

[0008] In view of this, the embodiment of the present invention hopes to provide a method and system for dynamic calibration of external parameters of a roadside camera to solve or alleviate the technical problems existing in the prior art, that is, how to reduce the perception positioning error caused by the deviation of the roadside camera due to external factors such as strong wind, and at least provide a beneficial option for this; the technical solution of the present invention is implemented as follows:

[0009] In the first aspect, a method for dynamic calibration of external parameters of a roadside camera is provided:

[0010] 1. Overview:

[0011] The present invention aims to solve the above technical problems; by calibrating the initial external parameters of the roadside camera, the transformation relationship from the road surface pixel coordinates in the image to the world coordinate system is established. The feature point matching technology is used to identify the image changes before and after the camera offset. After determining the feature point matching relationship before and after the camera offset, this step aims to fit the mapping relationship of the offset coordinates and recalculate the calibration matrix after the camera offset. This new calibration matrix will be used to correct the camera offset caused by external factors, thereby improving the accuracy of perception positioning.

[0012] (II) Technical solution:

[0013] To achieve the above technical objectives, the following steps S1 to S3 need to be performed.

[0014] 2.1 Step S1, Data Engineering:

[0015] Calibrate the initial external parameters of the roadside camera to obtain the transformation relationship from the road pixel coordinates in the image to the world coordinate system;

[0016] Among them, the initial external parameters of the roadside camera in step S1 can be calibrated during installation, or when it is stationary, without shaking and with good lighting; the initial external parameters of the roadside camera can be calibrated by a hand-eye calibration method, a joint calibration method with a lidar, or a calibration method based on a high-precision electronic map.

[0017] 2.1.1 Step S11, setting calibration:

[0018] Place N reflective calibration pieces evenly on the road surface within the camera's field of view. At least 4 calibration pieces are required to solve the matrix, but in order to reduce random errors, N is actually taken to be ≥ 10.

[0019] A flat surface 20m to 50m away from the camera, close to the center area.

[0020] 2.1.2 Step S12, perform calibration:

[0021] Use GPS to measure the longitude and latitude of N calibration pieces, and obtain the two-dimensional world coordinates of the N calibration pieces;

[0022] 2.1.3 Step S13, coordinate acquisition:

[0023] Mark N calibration pieces on the camera image and obtain the pixel coordinates of the N calibration pieces, which are the pixels at the center of the calibration pieces;

[0024] 2.1.4 Step S14, calculate the conversion matrix:

[0025] According to the GPS coordinates and pixel coordinate pairs of N calibration points, the conversion matrix between world coordinates and pixel coordinates is calculated and solved by the least squares method;

[0026] The conversion from world coordinates to image coordinates can be divided into two steps: first, the conversion from world coordinates to camera coordinates, and then the conversion from camera coordinates to image coordinates. This process involves an intrinsic parameter matrix K and an extrinsic parameter matrix (including the rotation matrix R and the translation vector t).

[0027] 2.1.4.1 Conversion from world coordinates to camera coordinates:

[0028] P c =RP w +t;

[0029] Among them, P c =[Xc,Yc,Zc]T is the point in the camera coordinate system, R is the 3×3 rotation matrix, and t is the 3×1 translation vector.

[0030] Conversion from camera coordinates to image coordinates:

[0031]

[0032] Among them, K is the internal parameter matrix:

[0033]

[0034] Among them, f x and f y is the focal length of the camera in the x and y directions (in pixels),

[0035] (u0,v0) are the coordinates of the principal point of the image.

[0036] 2.1.4.2 Plane assumption and homography matrix:

[0037] In the road calibration scenario, since the road surface can be approximately regarded as a plane, the model can be further simplified. Assume that the Z coordinate of the road surface in the world coordinate system is w = 0, then a homography matrix H can be used to directly describe the relationship between world coordinates and image coordinates:

[0038]

[0039] Among them, ~ represents scale equivalence, that is, the two sides may differ by a non-zero scale factor. The homography matrix H is a 3×3 matrix that combines the information of intrinsic and extrinsic parameters and can be solved by at least 4 corresponding points.

[0040] 2.1.4.3 Solve the transformation matrix:

[0041] Given a set of corresponding points (world coordinates and image coordinates), the least squares method is used to solve the homography matrix H. Specifically, there are n corresponding points Then the following system of equations can be constructed:

[0042]

[0043] Where H is the homography matrix to be solved. This system of equations can be solved using the singular value decomposition (SVD) method.

[0044] 2.2 Step S2, feature point matching:

[0045] Use the feature point matching method to match the images before and after the camera is offset through the feature values ​​of the feature points;

[0046] 2.2.1 Step S21, perform matching:

[0047] The feature point matching method uses the ORB feature point detection algorithm or the Harris corner point detection algorithm; extract the ORB features of the image, and for the two images, extract their ORB feature points and descriptors respectively:

[0048] R = det(M) - k(trace(M)) 2 ;

[0049] Among them, M is a second-order matrix, which is composed of the second-order partial derivatives of the image grayscale function:

[0050]

[0051] Among them, I xx ,I yy and I xy They are the second-order derivatives of the image grayscale function in the x and y directions and their mixed derivatives. k is an empirical constant, usually between 0.04 and 0.06.

[0052] The feature points are required to be fixed on the ground with different colors, brightness and textures from the surrounding key points, such as the corners of guide arrows. Extract the corners of the image, such as the corners of guide arrows, lane lines or zebra crossings. For the two images, use the Harris corner detection algorithm to extract their corners.

[0053] 2.2.2 Step S22, calculate the matching between the feature points of the two images:

[0054] Use brute force matching or the Fast Nearest Neighbor (FLANN) algorithm; combined with the Euclidean distance metric:

[0055]

[0056] Where n is the length of the descriptor vector.

[0057] 2.2.3 Step S23, select the correct match:

[0058] Select the correct match based on the matching results, and use the RANSAC (Random Sample Consensus) algorithm to filter out the correct matching points.

[0059] The RANSAC algorithm is a model estimation method used to estimate the parameters of a mathematical model from a data set containing a large number of outliers. In feature point matching, RANSAC can be used to screen out the correct matching points. The RANSAC algorithm generates model hypotheses by randomly sampling data points and uses a scoring function to evaluate the pros and cons of each hypothesis. Through multiple iterations, the algorithm eventually selects an optimal model that is consistent with the inliers in the data (i.e., the correct matching points).

[0060] The core idea is to find the best model parameters through random sampling and consistency check to distinguish inliers from outliers (i.e. wrong matching points). In this process, the algorithm tries to find the largest subset that satisfies the following conditions: these points can be well fitted by a model (such as a homography matrix).

[0061] 2.3 Step S3, recalculate:

[0062] Fit the mapping relationship of the offset coordinates to calculate the new calibration matrix after the camera is offset.

[0063] When the camera is offset, the points in the image coordinate system will move accordingly. In order to fit the coordinate mapping relationship after this offset, a homography transformation is used to describe the mapping relationship between two planes. The process is represented by a 3*3 matrix H:

[0064]

[0065] Where (x, y) is the original image coordinate, (x′, y′) is the offset image coordinate. The homography matrix H can be calculated by matching feature point pairs.

[0066] Once the coordinate mapping relationship (such as the homography matrix H) is obtained, the new calibration matrix K′ after the camera offset can be calculated in combination with the original calibration matrix K. If the camera offset is mainly rotation and translation, and the internal parameters of the camera (such as focal length and principal point position) are not changed, the new calibration matrix may be the same as the original calibration matrix, but the external parameters (rotation matrix R and translation vector t) need to be updated to reflect the actual position and orientation of the camera.

[0067] (III) Mechanism for solving technical problems:

[0068] Vehicle-road collaboration requires the fusion of states in a unified space-time dimension. Through the external parameter dynamic calibration method, when the camera is offset or rotated, a new external parameter calibration matrix can be obtained in time to reflect the new position of the camera in the world coordinate system. Therefore, the perception positioning error caused by camera offset can be avoided, creating favorable conditions for the vehicle-road collaboration fusion based on position points, thereby helping to improve the positioning and tracking accuracy of perceived targets.

[0069] In the second aspect, a storage medium:

[0070] The storage medium stores program instructions for implementing the external parameter dynamic calibration method as described above.

[0071] Compared with the prior art, the present invention has the following beneficial effects:

[0072] 1. Improve calibration accuracy: The present invention can accurately obtain the internal and external parameters of the camera through precise camera calibration (feature point matching in step S2), thereby correcting the camera offset caused by external factors (such as strong wind). This helps to reduce the perception positioning error and ensure that the image data captured by the camera is highly consistent with the actual scene.

[0073] 2. Enhance system robustness: The present invention adopts a coarse-to-fine search strategy (such as the preliminary positioning that may be involved in S1 and the precise matching in S2), combined with algorithms such as RANSAC to screen the correct matching points, so that the system can still maintain high stability and accuracy when facing abnormal situations such as camera offset. This robustness is crucial to reducing positioning errors caused by external interference.

[0074] 3. Real-time adjustment and optimization: Through the recalculation in step S3, the system can fit the offset coordinate mapping relationship in real time and update the calibration matrix. Even after the camera is offset, the system can quickly adjust to ensure the continuity and accuracy of the perceived positioning. This real-time adjustment capability has a significant effect on reducing positioning errors caused by external factors.

[0075] 4. Improve overall perception capability: The present invention improves the overall perception capability of the system through precise camera calibration and real-time adjustment and optimization. This enables the roadside camera to accurately capture road conditions when facing external factors such as strong winds, providing reliable perception and positioning information for autonomous driving vehicles, thereby reducing safety risks caused by perception errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0077] Figure 1 A schematic diagram of an architecture for dynamic calibration of external parameters for a roadside camera according to the present invention;

[0078] Figure 2 A schematic diagram of using hand-eye calibration to calibrate initial external parameters of a camera according to the present invention;

[0079] Figure 3 A schematic diagram of feature point matching using the ORB feature point detection algorithm according to the present invention;

[0080] Figure 4 A schematic diagram of a result of key point matching according to the present invention;

[0081] Figure 5 A schematic diagram of the camera imaging principle according to the present invention;

[0082] Figure 6 The figure is a schematic diagram of the placement of the calibration piece used in the hand-eye calibration process according to the present invention. DETAILED DESCRIPTION

[0083] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below;

[0084] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0085] Example: Refer to Figure 1-6 This embodiment provides a method for dynamic calibration of external parameters of a roadside camera, the method comprising the following steps: Figure 1 As shown:

[0086] S1. Initial extrinsic calibration and establishment of coordinate conversion relationship: In the initial extrinsic calibration process of the roadside camera, we used the pinhole camera model to illustrate the mapping relationship between world coordinates and pixel coordinates. Since the image data captured by the camera does not contain depth information, it is usually impossible to directly convert two-dimensional pixel coordinates into three-dimensional world coordinates. However, for points on the road surface, we can reasonably assume that they are in the same plane, so that the Z component of the world coordinate is a constant. Based on this assumption, we can derive the conversion relationship from road pixel coordinates to the world coordinate system.

[0087] Specifically, the conversion between the two-dimensional pixel coordinates and the two-dimensional world coordinates can be regarded as a projective transformation. Furthermore, the two-dimensional world coordinates can be converted to longitude and latitude coordinates. In this conversion process:

[0088]

[0089] Where u, v are pixel coordinates, X, Y are GPS coordinates. The conversion relationship between the road pixel coordinates in the image and the world coordinate system is obtained. The conversion relationship between the two-dimensional pixel coordinates and the two-dimensional world coordinates is a projective transformation, and the calibration process is the process of finding the corresponding homography matrix. There is a homogeneous coordinate coefficient λ in this conversion relationship. When solving, λ should be eliminated first, and the following is obtained through N calibration point coordinate pairs:

[0090]

[0091] in represents the two-dimensional world coordinate system of the i-th calibration point; ui and v i Represents the pixel coordinates of the ith calibration point. After being simplified to a linear equation, it can be directly solved using the least squares method. The best function matching of the data is found by minimizing the sum of squares of the error. The least squares method can be used to easily obtain the transformation matrix so that the sum of squares of the error between the transformed data and the actual data is minimized.

[0092] Furthermore, the specific calibration process using the hand-eye method is as follows Figure 2 As shown, specifically:

[0093] (1) N reflective stator sheets are evenly placed on the road surface within the camera's field of view, such as Figure 6 As shown, solving the matrix requires at least 4 calibration slices, but in order to reduce random errors, N is actually taken as ≥ 10.

[0094] (2) Use a handheld GPS to measure the longitude and latitude of the N calibration pieces and obtain the two-dimensional world coordinates of the N calibration pieces.

[0095] (3) Mark N calibration pieces on the camera image and obtain the pixel coordinates of the N calibration pieces.

[0096] (4) Based on the coordinate pairs of N calibration points, calculate the transformation matrix between world coordinates and pixel coordinates.

[0097] S2. Application of feature point matching method: After the camera is offset, in order to re-establish the accurate relationship between the image and the world coordinate system, we use the feature point matching method. Specifically, we use the ORB (OrientedFAST and Rotated BRIEF) feature point detection algorithm to extract feature points and corresponding descriptors in the image.

[0098] Specifically, the feature point matching process includes the following steps:

[0099] 1) Feature extraction: For the two images before and after camera offset, their ORB feature points and descriptors are extracted respectively.

[0100] 2) Feature matching: Use the brute force matching algorithm or the fast nearest neighbor (FLANN) algorithm to calculate the matching relationship between the feature points in the two images.

[0101] 3) Matching screening: Use the RANSAC (Random Sample Consensus) algorithm or other methods to screen out the correct matching points to improve the accuracy and robustness of the matching.

[0102] Furthermore, the possibility of corner point matching can also be performed using the Harris corner point detection algorithm. The steps of this method include:

[0103] 1) Corner extraction: For the two images, the Harris corner detection algorithm is used to extract the corners.

[0104] 2) Distance calculation: Calculate the Euclidean distance or other distance measure between the corner points in two images.

[0105] 3) Matching screening: The RANSAC algorithm is also used to screen out the correct matching points.

[0106] Furthermore, regarding feature point matching and calculation of the new transformation matrix: after the camera is offset, the feature points of the offset camera image are matched with the image without offset, and then a new transformation matrix is ​​calculated. This new transformation matrix can remap the offset image coordinates to the world coordinate system, thereby correcting the error caused by camera offset.

[0107] Among them, this embodiment uses the ORB feature point detection algorithm for matching. The algorithm can effectively match the images before and after the camera shift by extracting feature points in the image and generating corresponding descriptors. The specific steps are as follows:

[0108] 1) ORB feature extraction: First, for the two images before and after the camera offset, we use the ORB algorithm in the OpenCV library to extract their ORB feature points and corresponding descriptors.

[0109] 2) Feature Point Matching: Next, we use the brute force matching algorithm or the fast nearest neighbor (FLANN) algorithm to calculate the matching relationship between the feature points in the two images. In the OpenCV library, this can be achieved through the "BFMatcher" or "FlannBasedMatcher" class.

[0110] 3) Matching point screening: In order to improve the matching accuracy, we further use the RANSAC (Random Sample Consensus) algorithm or other optimization methods to screen out the correct matching points, thereby ensuring the robustness and accuracy of the matching.

[0111] It should be pointed out that the Harris corner detection algorithm can also be used to perform corner matching.

[0112] The specific steps are as follows:

[0113] 1) Harris corner point extraction: For the two images to be matched, we use the “cornerHarris” function in the OpenCV library to extract the Harris corner points in the images.

[0114] 2) Corner point distance calculation: Subsequently, we calculate the Euclidean distance between the corner points extracted from the two images as the basis for matching.

[0115] 3) Matching point screening: Similar to the ORB algorithm, we also use the RANSAC algorithm or other methods to screen out the correct matching points to ensure the accuracy and reliability of the matching.

[0116] Through the above two feature point matching methods, this embodiment can effectively fit the mapping relationship of the camera coordinates after offset, and calculate the new camera calibration matrix accordingly. This process not only improves the accuracy of the roadside camera perception system, but also enhances its robustness to external factors (such as camera offset caused by strong wind).

[0117] All the above embodiments only express the implementation methods of the relevant practical applications of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

[0118] For those skilled in the art, it can be further appreciated that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0119] At the same time, those skilled in the art can understand that all or part of the processes in all the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Claims

1. A dynamic calibration method for external parameters of roadside cameras. It is characterized in that The steps include: S1, data engineering: calibrate the initial external parameters of the roadside camera and obtain the transformation relationship from the road pixel coordinates in the image to the world coordinate system; S2, feature point matching: using the feature point matching method, the images before and after the camera offset are matched through the feature values ​​of the feature points; S3, recalculation: fit the mapping relationship of the offset coordinates to calculate the new calibration matrix after the camera is offset.

2. The external parameter dynamic calibration method according to claim 1, Features: In S1, the calibration step includes: S11, setting calibration: evenly placing N reflective calibration sheets on the road surface within the camera field of view; S12, perform calibration: use GPS to measure the longitude and latitude of N calibration pieces, and obtain the two-dimensional world coordinates of the N calibration pieces; S13, coordinate acquisition: mark N calibration pieces on the camera image and obtain pixel coordinates of the N calibration pieces; S14, calculating the conversion matrix: according to the GPS coordinates and pixel coordinate pairs of the N calibration points, calculating and solving the conversion matrix between the world coordinates and the pixel coordinates.

3. The external parameter dynamic calibration method according to claim 2, Features: In S14, the world coordinates are converted to the camera coordinates, and then the camera coordinates are converted to the image coordinates: P c =RP w +t; Among them, P c =[Xc,Yc,Zc]T is the point in the camera coordinate system, R is the 3×3 rotation matrix, and t is the 3×1 translation vector. Conversion from camera coordinates to image coordinates: Among them, K is the internal parameter matrix: Among them, f x and f y is the focal length of the camera in the x and y directions (in pixels), (u 0 ,v 0 ) are the coordinates of the principal point of the image.

4. The external parameter dynamic calibration method according to claim 3, Features: Use a single mapping matrix H to directly describe the relationship between world coordinates and image coordinates: Here, ~ indicates scale equivalence, that is, the two sides may differ by a non-zero scale factor.

5. The external parameter dynamic calibration method according to claim 3, Features: Given a set of corresponding points, including world coordinates and image coordinates, the homography matrix H is solved using the least squares method.

6. The external parameter dynamic calibration method according to claim 1 or 2, Features: In S2, the feature point matching method is an ORB feature point detection algorithm; when performing matching, for two images, their ORB feature points and descriptors are extracted respectively: R=det(M)-k(trace(M)) 2 ; Among them, M is a second-order matrix, which is composed of the second-order partial derivatives of the image grayscale function: Among them, I xx ,I yy and I xy They are the second-order derivatives of the image grayscale function in the x and y directions and their mixed derivatives; k is an empirical constant.

7. The external parameter dynamic calibration method according to claim 6, Features: When calculating the match between the feature points of two images, use the brute force matching algorithm or the fast nearest neighbor algorithm; combined with the Euclidean distance for measurement: Where n is the length of the descriptor vector.

8. The external parameter dynamic calibration method according to claim 1, Features: In S3, the optimal model parameters are found through random sampling and consistency check, thereby distinguishing inliers and outliers, and fitting the model.

9. A storage medium, Features: The storage medium stores program instructions for implementing the external parameter dynamic calibration method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • A vehicle-mounted camera external parameter dynamic self-calibration method

    CN109903341A

  • Calibration method, device and system, electronic equipment and storage medium

    CN111681286A

  • Roadside camera calibration method and device, electronic equipment and storage medium

    CN112598750A

  • Target tracking method, terminal and computer readable storage medium

    CN114219830A

  • Transparent object positioning method and device based on monocular color and storage medium

    CN115830103A

Cited By

  • Camera external parameter calibration result correction method and system based on OpenCV Eigen

    CN119379815A