A method of recognizing camera pose changes and anomalies in conjunction with lidar
By combining LiDAR and cameras, and utilizing timestamp synchronization and pose relationship calculations, abnormal poses of ADAS cameras can be identified, solving the problem of installation posture changes caused by vibration and aging, and ensuring the reliability and safety of ADAS functions.
Patent Information
- Application Number
- CN202211206030.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-29
AI Technical Summary
During vehicle use, ADAS cameras may experience changes in their installation posture due to vibration and aging, affecting the accuracy of visual perception results and the reliability of their functions.
By combining LiDAR and camera, image data is acquired synchronously through timestamps, the pose relationship between camera and LiDAR is calculated, Euclidean distance is used to determine pose anomalies, and the recognition results are output to ensure the reliability and safety of ADAS functions.
By identifying changes and anomalies in camera pose, the impact of vibration and aging on visual perception results is reduced, ensuring the accuracy and safety of ADAS functions.
Smart Images

Figure CN115546299B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and in particular to a method for identifying camera pose changes and anomalies by combining lidar. Background Technology
[0002] Advanced Driving Assistance Systems (ADAS) utilize various sensors installed in the vehicle (millimeter-wave radar, lidar, cameras, and satellite navigation) to continuously sense the surrounding environment while the car is in motion, collect data, identify, detect, and track static and dynamic objects, and combine this data with navigation map data to perform system calculations and analyses. This allows the driver to anticipate potential dangers, effectively increasing driving comfort and safety.
[0003] The installation orientation of ADAS cameras is calibrated when the vehicle rolls off the production line. However, during vehicle use, factors such as vibration and aging can affect the camera's accuracy, leading to inaccurate visual perception results and consequently impacting the reliability and safety of ADAS functions. Therefore, improving camera accuracy and ensuring the reliability and safety of ADAS functions is a pressing issue that technical personnel in this industry need to address. Summary of the Invention
[0004] This invention provides a method for identifying camera pose changes and anomalies by combining LiDAR with LiDAR. Based on the pose relationship between the camera and LiDAR, specific calculations and comparisons are performed to monitor the installation posture of the vehicle camera, thereby ensuring the reliability and safety of ADAS functions.
[0005] To address the aforementioned technical problems, embodiments of the present invention provide a method for identifying camera pose changes by combining LiDAR, comprising:
[0006] Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion;
[0007] Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data.
[0008] Based on the synchronized two-frame images of each group, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two-frame images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the pose relationship between the camera and the lidar is calculated according to the transformation matrix.
[0009] As one preferred embodiment, the step of time synchronization based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data specifically includes:
[0010] Based on the timestamps of the LiDAR point cloud data, the image is synchronized with it in time;
[0011] Get the image with the nearest timestamp and select it as the synchronized image data.
[0012] Another embodiment of the present invention provides a method for identifying camera pose anomalies by combining LiDAR, comprising:
[0013] Based on the calibration parameters of the camera and lidar in the initial state, the first pose relationship between the camera and lidar is calculated.
[0014] Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion;
[0015] Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data.
[0016] Based on the synchronized two frames of images, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two frames of images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the second pose relationship between the camera and the lidar is calculated according to the transformation matrix.
[0017] If the Euclidean distance between the first pose relationship and the second pose relationship is greater than a preset threshold, the recognition result of camera pose abnormality will be output.
[0018] As one preferred approach, the preset threshold value is determined based on the sensitivity of the camera and the lidar.
[0019] As one preferred embodiment, the step of calculating the first pose relationship between the camera and the lidar based on the calibration parameters of the camera and lidar in the initial state specifically includes:
[0020] The calibration parameters of the camera and the LiDAR are obtained in the initial state, respectively. The calibration parameters of the camera include an intrinsic parameter matrix and a first extrinsic parameter matrix, and the calibration parameters of the LiDAR include a second extrinsic parameter matrix.
[0021] Based on the calibration parameters, the first pose relationship between the camera and the lidar in the initial state is calculated using the following formula:
[0022]
[0023] in, For the first pose relationship, R c Let R be the first extrinsic parameter matrix. l This is the second extrinsic parameter matrix.
[0024] As one preferred embodiment, the step of time synchronization based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data specifically includes:
[0025] Based on the timestamp of the LiDAR point cloud data, the image is synchronized with it in time;
[0026] Get the image with the nearest timestamp and select it as the synchronized image data.
[0027] As one preferred embodiment, based on the synchronized two-frame images, the matching point pairs obtained from image feature points, and the lidar point clouds of the two-frame images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively. Then, the second pose relationship between the camera and the lidar is calculated based on the transformation matrices, specifically including:
[0028] The feature points between the two consecutive frames of synchronized images in each group are matched to obtain matching point pairs, and the pose transformation matrix of the camera between the two consecutive frames is calculated based on the matching point pairs.
[0029] Based on the lidar point clouds of two consecutive frames, the pose transformation matrix of the lidar is calculated using the ICP registration algorithm.
[0030] Based on the pose transformation matrix of each group of cameras and the pose transformation matrix of the lidar, the second pose relationship between the camera and the lidar is calculated.
[0031] As one preferred embodiment, the calculation of the camera pose transformation matrix between two consecutive frames specifically includes:
[0032] Based on the matching point pairs, the fundamental matrix and the essential matrix are calculated using the following formulas:
[0033] x T Fx′=0
[0034]
[0035] Where x and x′ are the matching point pairs, F is the basic matrix, and M is the base matrix. c Let E be the intrinsic parameter matrix, and let E be the essential matrix.
[0036] The essential matrix is decomposed by SVD to obtain the camera pose transformation matrix.
[0037] As one preferred embodiment, the step of calculating the pose transformation matrix of the LiDAR based on the LiDAR point clouds of two consecutive frames using the ICP registration algorithm specifically includes:
[0038] The preset objective function is iterated, and the function value when the objective function is less than the convergence error is determined as the pose transformation matrix of the lidar;
[0039] The objective function is:
[0040]
[0041] Among them, E(R) nl R represents the function value of the objective function being iterated. nl Let p be the pose transformation matrix of the lidar. i For a convergence error of 1e -10 .
[0042] As one preferred embodiment, the step of calculating the second pose relationship between the camera and the lidar based on the pose transformation matrices of each group of cameras and the pose transformation matrix of the lidar specifically includes:
[0043] A hand-eye calibration model is constructed, and multiple sets of pose transformation matrices of the camera and the LiDAR are substituted into it to calculate the second pose relationship between the camera and the LiDAR.
[0044] The hand-eye calibration model specifically includes:
[0045]
[0046]
[0047] Among them, R nc Let R be the pose transformation matrix of the camera. nl Let be the pose transformation matrix of the lidar. This is the second pose relationship.
[0048] Another embodiment of the present invention provides an apparatus for identifying camera pose changes in conjunction with LiDAR, including a vehicle controller, the vehicle controller being configured to:
[0049] Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion;
[0050] Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data.
[0051] Based on the synchronized two-frame images of each group, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two-frame images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the pose relationship between the camera and the lidar is calculated according to the transformation matrix.
[0052] Another embodiment of the present invention provides a device for identifying camera pose anomalies by combining LiDAR, including a vehicle controller, the vehicle controller being configured to:
[0053] Based on the calibration parameters of the camera and lidar in the initial state, the first pose relationship between the camera and lidar is calculated.
[0054] Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion;
[0055] Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data.
[0056] Based on the synchronized two frames of images, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two frames of images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the second pose relationship between the camera and the lidar is calculated according to the transformation matrix.
[0057] If the Euclidean distance between the first pose relationship and the second pose relationship is greater than a preset threshold, the recognition result of camera pose abnormality will be output.
[0058] In another embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, wherein when the device containing the computer-readable storage medium executes the computer program, it implements the method described above for identifying camera pose changes in conjunction with LiDAR or the method described above for identifying camera pose anomalies in conjunction with LiDAR.
[0059] Compared with the prior art, the beneficial effects of the embodiments of the present invention are at least one of the following:
[0060] First, based on the calibration parameters of the camera and LiDAR in the initial state, the initial pose relationship between the camera and LiDAR is calculated, providing a reference index for subsequent comparisons. During this process, a threshold value is simultaneously acquired. Then, time synchronization is performed using timestamp technology to obtain multiple sets of synchronized image data. The timestamp synchronization provides multiple sets of detected image data, offering accurate data support for subsequent calculations. Next, based on the synchronized two-frame images, the matching point pairs obtained from image feature points, and the LiDAR point clouds of the two-frame images, the pose transformation matrix of the camera and the LiDAR are calculated respectively. The second pose relationship between the camera and LiDAR is then calculated based on these transformation matrices. This second pose relationship reflects the pose changes of the camera and LiDAR in each set of image data relative to the previous moment. Finally, after obtaining the new pose relationship between the camera and LiDAR (i.e., the second pose relationship), the Euclidean distance between this new relationship and the initial pose relationship is calculated. It is then determined whether the Euclidean distance is greater than a preset threshold value, thereby determining whether the ADAS camera pose has undergone a significant change, and outputting the recognition result for abnormal camera pose. The method for identifying camera pose abnormalities by combining LiDAR provided by this invention can perform calibration analysis during vehicle use and output accurate identification results, reducing the impact of vibration and aging on the camera, ensuring the accuracy of visual perception results, and thus ensuring the reliability and safety of ADAS functions. Attached Figure Description
[0061] Figure 1 This is a flowchart illustrating a method for identifying camera pose changes using a lidar system, as described in one embodiment of the present invention.
[0062] Figure 2 This is a flowchart illustrating a method for identifying camera pose anomalies using LiDAR in one embodiment of the present invention.
[0063] Figure 3 This is a schematic diagram of the image data acquisition process in one embodiment of the present invention;
[0064] Figure 4 This is a schematic diagram of the process for obtaining the second pose relationship in one embodiment of the present invention;
[0065] Figure 5 This is a logic block diagram of the entire method in one embodiment of the present invention. Detailed Implementation
[0066] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0067] In the description of this application, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0068] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. The terms "vertical," "horizontal," "left," "right," "upper," "lower," and similar expressions used herein are for illustrative purposes only and do not indicate or imply that the device or component referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as limiting the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0069] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing specific embodiments only and is not intended to limit the invention. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0070] One embodiment of the present invention provides a method for identifying camera pose changes by combining LiDAR. For details, please refer to [link to documentation]. Figure 1 , Figure 1 The diagram shown is a flowchart illustrating a method for identifying camera pose changes using a lidar system, according to one embodiment of the present invention. The method includes steps S1 to S3, specifically:
[0071] S1. Acquire point cloud data from the lidar and image data from the camera while the vehicle is in motion;
[0072] S2. Synchronize the time based on the timestamp of the lidar point cloud data to obtain multiple sets of synchronized image data;
[0073] S3. Based on the synchronized two frames of images, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two frames of images, calculate the pose transformation matrix of the camera and the pose transformation matrix of the lidar, and calculate the pose relationship between the camera and the lidar according to the transformation matrix.
[0074] Furthermore, in the above embodiments, for step S2: time synchronization of the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data, specifically including:
[0075] Based on the timestamps of the LiDAR point cloud data, the image is synchronized with it in time;
[0076] Get the image with the nearest timestamp and select it as the synchronized image data.
[0077] Another embodiment of the present invention provides a method for identifying camera pose anomalies by combining LiDAR; for details, please refer to [link to relevant documentation]. Figure 2 , Figure 2 The diagram shown is a flowchart illustrating a method for identifying camera pose anomalies using a lidar in one embodiment of the present invention, including steps S1 to S5, specifically:
[0078] S1. Calculate the first pose relationship between the camera and the lidar based on the calibration parameters of the camera and lidar in the initial state.
[0079] S2. Acquire point cloud data from the lidar and image data from the camera while the vehicle is in motion;
[0080] S3. Synchronize the time based on the timestamp of the lidar point cloud data to obtain multiple sets of synchronized image data;
[0081] S4. Based on the synchronized two frames of images, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two frames of images, calculate the pose transformation matrix of the camera and the pose transformation matrix of the lidar respectively, and calculate the second pose relationship between the camera and the lidar according to the transformation matrix.
[0082] S5. If the Euclidean distance between the first pose relationship and the second pose relationship is greater than a preset threshold, then output the recognition result of camera pose abnormality.
[0083] It should be noted that the camera and lidar in this invention are applicable to vehicles that integrate environmental perception, planning and decision-making, and multi-level assisted driving functions. This vehicle can be an autonomous vehicle to adapt to ADAS-related functions. Autonomous vehicles are a type of intelligent vehicle, primarily relying on an in-vehicle computer-based intelligent driving system to achieve autonomous driving. Autonomous driving involves using onboard sensors to perceive the vehicle's surrounding environment and, based on road, vehicle position, and obstacle information obtained by the intelligent vehicle, controlling the vehicle's steering and speed, thereby enabling the vehicle to drive safely and reliably on the road.
[0084] Furthermore, in the above embodiments, the preset threshold value is determined based on the sensitivity of the camera and the lidar.
[0085] Further, in the above embodiments, for step S1: calculating the first pose relationship between the camera and the lidar based on the calibration parameters of the camera and the lidar in the initial state, specifically includes:
[0086] S11. Obtain the calibration parameters of the camera and the LiDAR in the initial state, respectively. The calibration parameters of the camera include an intrinsic parameter matrix and a first extrinsic parameter matrix, and the calibration parameters of the LiDAR include a second extrinsic parameter matrix.
[0087] S12. Based on the calibration parameters, calculate the first pose relationship between the camera and the lidar in the initial state using the following formula:
[0088]
[0089] in, For the first pose relationship, R c Let R be the first extrinsic parameter matrix. l This is the second extrinsic parameter matrix.
[0090] The camera's intrinsic parameter matrix reflects the camera's own attributes, such as focal length, which is determined by the actual vehicle model and camera model. The extrinsic parameter matrix reflects the camera's coordinate position in the world coordinate system. The processes for obtaining the intrinsic and extrinsic parameter matrices can be referred to the relevant methods disclosed in the prior art, and will not be elaborated here.
[0091] Furthermore, in the above embodiments, please refer to Figure 3 , Figure 3 The diagram illustrates the image data acquisition process in one embodiment of the present invention. For step S3: time synchronization is performed based on the timestamps of the LiDAR point cloud data to obtain multiple sets of synchronized image data, specifically including:
[0092] S31. Synchronize the image with the lidar point cloud data based on the timestamp;
[0093] S32. Obtain the image with the nearest timestamp and select it as the synchronized image data.
[0094] Considering that the sampling frequencies of the camera and the LiDAR are different, for example, the camera is 30 frames per second and the LiDAR is 10 frames per second, in order to provide accurate image data and facilitate subsequent calculation and comparison, this embodiment synchronizes the image with the timestamp of the LiDAR point cloud data to obtain accurate synchronized image data. Then, multiple sets of synchronized image data are selected to provide data support for subsequent calculations.
[0095] Furthermore, in the above embodiments, please refer to Figure 4 , Figure 4 The diagram illustrates the process of obtaining the second pose relationship. For step S4: based on the synchronized two-frame images, the matching point pairs obtained from image feature points, and the LiDAR point clouds of the two-frame images, the pose transformation matrix of the camera and the pose transformation matrix of the LiDAR are calculated respectively. The second pose relationship between the camera and the LiDAR is then calculated based on the transformation matrices. Specifically, this includes:
[0096] S41. Match the feature points between the two consecutive frames of synchronized images in each group to obtain matching point pairs, and calculate the pose transformation matrix of the camera between the two consecutive frames based on the matching point pairs.
[0097] S42. Based on the lidar point cloud of the two consecutive frames of images, calculate the lidar pose transformation matrix using the ICP registration algorithm.
[0098] S43. Based on the pose transformation matrix of each group of cameras and the pose transformation matrix of the lidar, calculate the second pose relationship between the camera and the lidar.
[0099] After acquiring multiple sets of accurate image data, the pose changes of the camera and LiDAR relative to the previous moment are calculated in each set of data, thereby obtaining the camera pose transformation matrix R. nc The pose transformation matrix R of the lidar nl The specific process will be explained in detail below.
[0100] For the camera pose transformation matrix R nc In this embodiment, after obtaining the above-mentioned matching point pairs, the fundamental matrix and the essential matrix are calculated based on the matching point pairs using the following formula:
[0101] x T Fx′=0
[0102]
[0103] Where x and x′ are the matching point pairs, F is the basic matrix, and M is the base matrix. c Let E be the intrinsic parameter matrix, and let E be the essential matrix.
[0104] Performing SVD decomposition on the essential matrix yields the camera pose transformation matrix R. nc .
[0105] For the pose transformation matrix R of the lidar nl The objective function is obtained through iterative calculation. First, the objective function is set:
[0106]
[0107] Among them, E(R) nl R represents the function value of the objective function being iterated. nl Let p be the pose transformation matrix of the lidar. i For a convergence error of 1e -10 Through iteration, we find the value of R when E < convergence error. nl The value at this point is typically set to 1e for the convergence error. -10 .
[0108] After obtaining the camera pose transformation matrix R nc The pose transformation matrix R of the lidar nl Next, a hand-eye calibration model, AX = XB, is constructed to calculate the pose relationship between the camera and the LiDAR. The calculation method is as follows:
[0109]
[0110]
[0111] Among them, R nc Let R be the pose transformation matrix of the camera. nl Let be the pose transformation matrix of the lidar. This is the second pose relationship.
[0112] Since there are multiple sets of image data initially, the above calculation process is repeated for each set of image data, by substituting multiple sets of R... nc and R nl Using the data as input, the current value can be calculated. The value of .
[0113] Another embodiment of the present invention provides an apparatus for identifying camera pose changes in conjunction with LiDAR, including a vehicle controller, the vehicle controller being configured to:
[0114] Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion;
[0115] Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data.
[0116] Based on the synchronized two-frame images of each group, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two-frame images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the pose relationship between the camera and the lidar is calculated according to the transformation matrix.
[0117] Another embodiment of the present invention provides a device for identifying camera pose anomalies by combining LiDAR, including a vehicle controller, the vehicle controller being configured to:
[0118] Based on the calibration parameters of the camera and lidar in the initial state, the first pose relationship between the camera and lidar is calculated.
[0119] Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion;
[0120] Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data.
[0121] Based on the synchronized two frames of images, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two frames of images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the second pose relationship between the camera and the lidar is calculated according to the transformation matrix.
[0122] If the Euclidean distance between the first pose relationship and the second pose relationship is greater than a preset threshold, the recognition result of camera pose abnormality will be output.
[0123] It should be noted that the aforementioned devices for identifying camera pose changes in conjunction with LiDAR, and devices for identifying camera pose anomalies in conjunction with LiDAR, can be integrated into relevant vehicle electronic devices or modules and have a communication connection with the camera and LiDAR. As one preferred embodiment, please refer to [link to preferred embodiment]. Figure 5 , Figure 5 The diagram shown is a logical block diagram of the entire method in one embodiment of the present invention. For example, the device for identifying camera pose abnormalities by combining LiDAR is implemented in the form of a monitoring module in the diagram. It monitors whether the camera pose changes. When a change in camera pose is detected, it alerts the user through the relevant alarm module in the vehicle or the display device on the dashboard. If no change in camera pose is detected, the ADAS works normally.
[0124] Furthermore, the electronic devices of the aforementioned vehicles can also be servers or other devices. These servers can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. However, they are not limited to these. That is, the method for identifying camera pose anomalies by combining LiDAR provided by this invention can also be implemented by a server, or by a terminal and a server together. Further details will not be elaborated here.
[0125] In another embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, wherein when the device containing the computer-readable storage medium executes the computer program, it implements the method described above for identifying camera pose changes in conjunction with LiDAR or the method described above for identifying camera pose anomalies in conjunction with LiDAR.
[0126] The present invention provides a method, apparatus, and computer-readable storage medium for identifying camera pose changes and anomalies using LiDAR, the advantages of which are at least one of the following:
[0127] First, based on the calibration parameters of the camera and LiDAR in the initial state, the initial pose relationship between the camera and LiDAR is calculated, providing a reference index for subsequent comparisons. During this process, a threshold value is simultaneously acquired. Then, time synchronization is performed using timestamp technology to obtain multiple sets of synchronized image data. The timestamp synchronization provides multiple sets of detected image data, offering accurate data support for subsequent calculations. Next, based on the synchronized two-frame images, the matching point pairs obtained from image feature points, and the LiDAR point clouds of the two-frame images, the pose transformation matrix of the camera and the LiDAR are calculated respectively. The second pose relationship between the camera and LiDAR is then calculated based on these transformation matrices. This second pose relationship reflects the pose changes of the camera and LiDAR in each set of image data relative to the previous moment. Finally, after obtaining the new pose relationship between the camera and LiDAR (i.e., the second pose relationship), the Euclidean distance between this new relationship and the initial pose relationship is calculated. It is then determined whether the Euclidean distance is greater than a preset threshold value, thereby determining whether the ADAS camera pose has undergone a significant change, and outputting the recognition result for abnormal camera pose. The method for identifying camera pose abnormalities by combining LiDAR provided by this invention can perform calibration analysis during vehicle use and output accurate identification results, reducing the impact of vibration and aging on the camera, ensuring the accuracy of visual perception results, and thus ensuring the reliability and safety of ADAS functions.
[0128] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for identifying camera pose anomalies using LiDAR, characterized in that, include: Based on the calibration parameters of the camera and lidar in the initial state, the first pose relationship between the camera and lidar is calculated. Acquire point cloud data from the LiDAR and image data from the camera while the vehicle is in motion; Time synchronization is performed based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data. Based on the synchronized two frames of images, the matching point pairs obtained from the image feature points, and the lidar point clouds of the two frames of images, the pose transformation matrix of the camera and the pose transformation matrix of the lidar are calculated respectively, and the second pose relationship between the camera and the lidar is calculated according to the transformation matrix. If the Euclidean distance between the first pose relationship and the second pose relationship is greater than a preset threshold, the identification result of camera pose abnormality is output; wherein, the preset threshold is determined based on the sensitivity of the camera and the lidar. The calculation of the first pose relationship between the camera and the lidar based on the calibration parameters of the camera and lidar in the initial state specifically includes: The calibration parameters of the camera and the LiDAR are obtained in the initial state, respectively. The calibration parameters of the camera include an intrinsic parameter matrix and a first extrinsic parameter matrix, and the calibration parameters of the LiDAR include a second extrinsic parameter matrix. Based on the calibration parameters, the first pose relationship between the camera and the lidar in the initial state is calculated using the following formula: in, This represents the first pose relationship. Let be the first extrinsic parameter matrix. This is the second extrinsic parameter matrix; Based on the synchronized two-frame images of each group, the matching point pairs obtained from image feature points, and the LiDAR point clouds of the two-frame images, the pose transformation matrix of the camera and the pose transformation matrix of the LiDAR are calculated respectively. Then, the second pose relationship between the camera and the LiDAR is calculated based on the transformation matrices, specifically including: The feature points between the two consecutive frames of synchronized images in each group are matched to obtain matching point pairs, and the pose transformation matrix of the camera between the two consecutive frames is calculated based on the matching point pairs. Based on the lidar point clouds of two consecutive frames, the pose transformation matrix of the lidar is calculated using the ICP registration algorithm. Based on the pose transformation matrices of the cameras and the lidar in each group, the second pose relationship between the cameras and the lidar is calculated, specifically including: A hand-eye calibration model is constructed, and multiple sets of pose transformation matrices of the camera and the LiDAR are substituted into it to calculate the second pose relationship between the camera and the LiDAR. The hand-eye calibration model specifically includes: = in, Let be the pose transformation matrix of the camera. Let be the pose transformation matrix of the lidar. This is the second pose relationship.
2. The method for identifying camera pose anomalies by combining lidar as described in claim 1, characterized in that, The process of time synchronization based on the timestamps of the lidar point cloud data to obtain multiple sets of synchronized image data specifically includes: Based on the timestamps of the LiDAR point cloud data, the image is synchronized with it in time; Get the image with the nearest timestamp and select it as the synchronized image data.
3. The method for identifying camera pose anomalies by combining lidar as described in claim 1, characterized in that, The calculation of the camera pose transformation matrix between two consecutive frames specifically includes: Based on the matching point pairs, the fundamental matrix and the essential matrix are calculated using the following formulas: in, and These are matching point pairs, Based on the matrix, c Let be the intrinsic parameter matrix. This is the essential matrix; The essential matrix is decomposed by SVD to obtain the camera pose transformation matrix.
4. The method for identifying camera pose anomalies by combining lidar as described in claim 1, characterized in that, The step of calculating the pose transformation matrix of the LiDAR based on the LiDAR point clouds of two consecutive frames of images using the ICP registration algorithm specifically includes: The preset objective function is iterated, and the function value when the objective function is less than the convergence error is determined as the pose transformation matrix of the lidar; The objective function is: in, The function value of the objective function for iteration. For input quantity, Let be the pose transformation matrix of the lidar. The convergence error is 1 .
5. A device for identifying camera pose anomalies using LiDAR, characterized in that, Includes a vehicle controller, the vehicle controller being configured to perform the method as described in any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the device containing the computer-readable storage medium executes the computer program, it implements the method for identifying camera pose anomalies by combining LiDAR as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Laser radar and camera calibration parameter correction method and device based on image registration
CN112233184A
Camera calibration method and device, intelligent vehicle and storage medium
CN112330756A
