Vehicle-mounted camera automatic calibration method and device, vehicle and medium
By integrating the inertial measurement unit in the vehicle camera module, the camera parameters are automatically calibrated and corrected, which solves the problem of poor 360° panoramic image stitching caused by camera position deviation in large vehicles, and improves driving and parking safety.
Patent Information
- Application Number
- CN202410667188.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-10-01
AI Technical Summary
Existing vehicle-mounted 360° panoramic imaging systems in large vehicles have poor splicing effects due to camera position deviation, which affects safety. Especially when driving or turning, blind spots are prone to occur, increasing the risk of accidents.
Using the automatic calibration method, the current position information of the vehicle camera is obtained through the inertial measurement unit, and compared with the initial position information, the camera parameters are recalibrated and image distortion is corrected to ensure the accuracy of 360° panoramic imaging.
It improves the accuracy of 360° panoramic imaging and the system's automatic calibration accuracy, reduces safety hazards caused by camera position deviation, and enhances the driving and parking safety of large vehicles.
Smart Images

Figure CN118736016A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of autonomous driving technology, and specifically to an automatic calibration method, device, vehicle and medium for a vehicle-mounted camera. Background Art
[0002] With the continuous improvement of people's living standards, cars have become an indispensable means of transportation for people to travel and transport goods. However, with the increasing development of the transportation industry, the land is becoming increasingly tense and scarce. The parking spaces in roads, streets, parking lots and other places are limited. It is inevitable to encounter complex environments with people during vehicle driving or parking, which requires high driving / parking skills of drivers. It is difficult for drivers with limited parking skills to park accurately, and they often collide with surrounding vehicles or objects during parking. In addition, it is difficult to avoid blind spots in the field of vision for some large vehicles, which can easily cause collisions or crushing accidents with pedestrians.
[0003] In response to the above-mentioned safety hazards, panoramic parking systems have appeared on the market, allowing drivers to clearly see the 360° panoramic view around the car in the cab, reducing the probability of safety accidents caused by low-speed driving / parking. The existing 360° surround view solution generally installs a camera on the front, rear, left and right of the car body. Each camera collects data within the field of view, and then integrates the collected images through the processing unit, removes the overlapping parts, and forms a 360° surround view panoramic image for output display on the display screen.
[0004] The 360° surround view system is an on-board surround view display system that can intuitively present the driver with the conditions around the car to improve the safety and stability of the vehicle during driving / parking. However, the on-board surround view display system is only applicable to cars with a single compartment, such as private cars; for trailers or vehicles with multiple compartments, the on-board surround view display effect is poor. Since a trailer or a multi-section vehicle is connected to more than one compartment, when reversing or turning, the front of the vehicle and the compartments are not at the same angle. If the surround view solution of a car is used, the information collected directly by the on-board camera cannot accurately display the conditions around the vehicle after being cropped and spliced.
[0005] In addition, the accuracy of camera installation has a great influence on the stitching effect. The driving environment of large commercial vehicles is complex. Especially during the use of the vehicle, due to the influence of vibration and impact, the camera will inevitably be offset. In addition, the size of the vehicle is relatively large, and a slight offset in the installation position of the camera will have a huge impact on the imaging effect. Once the camera is offset, the effect of the entire surround view system will deteriorate, and even blind spots that pose a safety hazard will appear. The effect of assisting the vehicle to drive / park or turn safely is poor, and accidents caused by driving / parking or turning cannot be effectively avoided. Summary of the invention
[0006] The embodiments of the present invention provide a method, device, vehicle and storage medium for automatic calibration of a vehicle-mounted camera. The technical problem to be solved is that, in view of the defects of the prior art, in the existing vehicle-mounted 360° panoramic image, the position of the vehicle-mounted camera is shifted due to external factors, which changes the parameters of the vehicle-mounted camera, thereby affecting the 360° panoramic image stitching effect.
[0007] In order to solve the above technical problems, a technical solution adopted by the present invention is: to provide an automatic calibration method for a vehicle-mounted camera, the automatic calibration method comprising:
[0008] Obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0009] Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0010] When the current position information is inconsistent with the initial position information, recalibrate the vehicle camera parameters according to the current position information and the initial position information, and perform image distortion correction;
[0011] When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
[0012] In a specific implementation, the current position information of the vehicle-mounted camera includes current posture information of the vehicle-mounted camera, and the current posture information includes current pitch angle information, current yaw angle information, and current roll angle information of the vehicle-mounted camera;
[0013] The initial position information includes initial posture information of the vehicle-mounted camera, and the initial posture information includes initial pitch angle information, initial yaw angle information, and initial roll angle information of the vehicle-mounted camera.
[0014] In a specific implementation, the recalibrating the vehicle camera parameters according to the current position information and the initial position information and performing image distortion correction includes:
[0015] According to the current pitch angle information, current yaw angle information and current roll angle information of the vehicle-mounted camera, and the initial pitch angle information, initial yaw angle information and initial roll angle information of the vehicle-mounted camera, a compensation value for distortion correction is calculated, and the internal parameters and external parameters of the vehicle-mounted camera are recalibrated, and image distortion correction is performed according to the recalibrated internal parameters and external parameters of the vehicle-mounted camera.
[0016] In a specific implementation, the current image data captured by the vehicle-mounted camera is acquired by an image sensor of the vehicle-mounted camera, and the current position information of the vehicle-mounted camera is acquired by an inertial measurement unit;
[0017] The inertial measurement unit is connected to the vehicle-mounted camera, and the vehicle-mounted camera, the image sensor and the inertial measurement unit constitute a vehicle-mounted camera module.
[0018] In a specific implementation, the current image data and the current position information are transmitted via a serial path of a serializer.
[0019] In a specific implementation, the initial position information of the vehicle-mounted camera is the position information of the vehicle-mounted camera in an initial calibration environment;
[0020] The vehicle-mounted camera parameters corresponding to the initial position information are internal parameters and external parameters of the vehicle-mounted camera calibrated in the initial calibration environment.
[0021] In a specific embodiment, the automatic calibration method further includes:
[0022] Perform panoramic stitching on the distortion-corrected images to obtain a vehicle-mounted panoramic surround view image;
[0023] The vehicle-mounted panoramic surround view image is output to a display terminal.
[0024] In a specific embodiment, an automatic calibration device for a vehicle-mounted camera is also included, and the automatic calibration device includes:
[0025] An acquisition unit, the acquisition unit is used to acquire current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0026] A judgment unit, the judgment unit is used to judge whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0027] An automatic calibration unit, wherein when the current position information is inconsistent with the initial position information, the automatic calibration unit is used to recalibrate the vehicle-mounted camera parameters according to the current position information and the initial position information;
[0028] A distortion correction unit, the distortion correction unit being used to perform image distortion correction according to the recalibrated vehicle camera parameters or according to the vehicle camera parameters corresponding to the initial position information;
[0029] A panoramic stitching unit, which is used to perform panoramic stitching on the distortion-corrected images to obtain a vehicle-mounted panoramic surround view image;
[0030] An output unit is used to output the vehicle-mounted panoramic surround image to a display terminal.
[0031] In a specific embodiment, a vehicle is also included, the vehicle comprising:
[0032] at least one controller;
[0033] at least four cameras communicatively connected to the at least one controller, and a memory communicatively connected to the at least one controller;
[0034] In which, the memory stores a computer program that can be executed by the at least one controller, and the computer program is executed by the at least one controller so that the at least one controller can execute the automatic calibration method of the vehicle-mounted camera described in any of the above-mentioned specific embodiments.
[0035] In a specific embodiment, it also includes a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute the automatic calibration method of the vehicle-mounted camera described in any of the above specific embodiments.
[0036] The beneficial effects of the present invention are as follows: Different from the prior art, the embodiments of the present application provide an automatic calibration method, device, vehicle and storage medium for a vehicle-mounted camera, wherein the automatic calibration method comprises:
[0037] Obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0038] Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0039] When the current position information is inconsistent with the initial position information, recalibrate the vehicle camera parameters according to the current position information and the initial position information, and perform image distortion correction;
[0040] When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
[0041] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0042] The present application sets an inertial measurement unit in the vehicle camera module, uses the inertial measurement unit to obtain the current position information of the vehicle camera, and compares the current position information with the initial position information, and uses the obtained current position information to assist the vehicle camera in automatic calibration. When the vehicle camera is installed for the first time, if the position offset caused by external factors affects the 360° panoramic imaging, the system can automatically calibrate at any time according to the offset position information of the vehicle camera. Moreover, since the inertial measurement unit is integrated in the vehicle camera module, the same whole shares a set of positioning system, so that the obtained position information is more accurate, the accuracy of subsequent data reuse, and the accuracy of the system automatic calibration are improved, so that the 360° panoramic imaging is clearer and more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 This is a schematic diagram of the implementation process of an automatic calibration method for a vehicle-mounted camera provided in Embodiment 1 of the present invention;
[0045] Figure 2 This is a schematic diagram of an initial calibration process of an automatic calibration method for a vehicle-mounted camera provided in Embodiment 1 of the present invention;
[0046] Figure 3 This is a logic diagram for implementing an automatic calibration method for a vehicle-mounted camera provided in the first embodiment of the present invention;
[0047] Figure 4 It is a schematic diagram of the module composition of an automatic calibration method for a vehicle-mounted camera provided in the first embodiment of the present invention;
[0048] Figure 5 It is a schematic diagram of the structure of an automatic calibration method for a vehicle-mounted camera provided in the first embodiment of the present invention;
[0049] Figure 6 This is a schematic diagram of the module composition of an automatic calibration device for a vehicle-mounted camera provided in Embodiment 2 of the present invention;
[0050] Figure 7 It is a functional structure diagram of a vehicle provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0051] The present application is further described in detail below in conjunction with the accompanying drawings and implementation methods. It is particularly noted that the following implementation methods are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following implementation methods are only some implementation methods of the present application rather than all implementation methods. All other implementation methods obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0052] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other steps or modules inherent to these processes, methods, products or devices.
[0053] The above terms are only for the convenience of description and should not be construed as limitations on the present technical solution.
[0054] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
[0056] Embodiment 1:
[0057] Figure 1 The implementation process of an automatic calibration method for a vehicle-mounted camera provided in Embodiment 1 of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows.
[0058] Acquire the current image data captured by the vehicle-mounted camera and the current position information of the vehicle-mounted camera.
[0059] One specific implementation is that the current position information of the vehicle-mounted camera includes the current posture information of the vehicle-mounted camera, and the current posture information includes the current pitch angle information, the current yaw angle information and the current roll angle information of the vehicle-mounted camera. The current position change of the vehicle-mounted camera can be calculated through the current pitch angle information, the current yaw angle information and the current roll angle information.
[0060] One specific implementation method is that the current image data captured by the vehicle-mounted camera is obtained by an image sensor of the vehicle-mounted camera, and the current position information of the vehicle-mounted camera is obtained by an inertial measurement unit;
[0061] The inertial measurement unit is connected to the vehicle-mounted camera, and the vehicle-mounted camera, the image sensor and the inertial measurement unit constitute a vehicle-mounted camera module.
[0062] It should be noted that since the inertial measurement unit is integrated into the vehicle-mounted camera module, the same vehicle-mounted camera module as a whole shares a set of positioning systems, so that the acquired position information of the vehicle-mounted camera is more accurate, thereby improving the accuracy of subsequent data reuse and the accuracy of system automatic calibration.
[0063] It should be noted that the inertial measurement unit includes an accelerometer, a gyroscope and a magnetometer. The accelerometer is used to measure the three-axis acceleration data of the vehicle-mounted camera, the gyroscope is used to measure the three-axis angular velocity data of the vehicle-mounted camera, and the magnetometer is used to measure the three-axis magnetometer data of the vehicle-mounted camera. By fusing and calculating the three-axis acceleration data, the three-axis angular velocity data and the three-axis magnetometer data, a more accurate pitch angle, yaw angle and roll angle of the vehicle-mounted camera can be obtained.
[0064] Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0065] In one specific implementation manner, the initial position information includes initial posture information of the vehicle-mounted camera, and the initial posture information includes initial pitch angle information, initial yaw angle information, and initial roll angle information of the vehicle-mounted camera.
[0066] In one specific implementation manner, the initial position information of the vehicle-mounted camera is the position information of the vehicle-mounted camera in an initial calibration environment;
[0067] The vehicle-mounted camera parameters corresponding to the initial position information are internal parameters and external parameters of the vehicle-mounted camera calibrated in the initial calibration environment.
[0068] It should be noted that the initial calibration of the vehicle-mounted camera is the calibration before leaving the factory, and the initial calibration environment is the standard calibration environment before leaving the factory, such as Figure 2 As shown, Figure 2The initial calibration process of the vehicle-mounted camera specifically includes obtaining the original image data taken by the vehicle-mounted camera and the initial position information of the vehicle-mounted camera, the initial posture information being the initial pitch angle, initial yaw angle and initial roll angle of the vehicle-mounted camera. In the initial calibration environment, the vehicle-mounted camera is initially calibrated, including analyzing the correspondence between the original image data and the initial position information, performing image panoramic stitching and image optimization on the acquired original image data, and recording the corresponding initial position information. Finally, the initial position information corresponding to the original image data with the best panoramic stitching and optimization effect is stored as a reference for subsequent recalibration.
[0069] When the current position information is inconsistent with the initial position information, the vehicle-mounted camera parameters are recalibrated according to the current position information and the initial position information, and image distortion correction is performed.
[0070] When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
[0071] One specific implementation method is that the method recalibrates the vehicle-mounted camera parameters according to the current position information and the initial position information, and performs image distortion correction, including:
[0072] According to the current pitch angle information, current yaw angle information and current roll angle information of the vehicle-mounted camera, and the initial pitch angle information, initial yaw angle information and initial roll angle information of the vehicle-mounted camera, a compensation value for distortion correction is calculated, and the internal parameters and external parameters of the vehicle-mounted camera are recalibrated, and image distortion correction is performed according to the recalibrated internal parameters and external parameters of the vehicle-mounted camera.
[0073] It should be noted that if Figure 3 As shown, Figure 3The present invention is a logical flow diagram for recalibrating the vehicle-mounted camera, obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera, judging whether the current position information of the vehicle-mounted camera is consistent with the stored initial position information, thereby judging whether the position and posture of the vehicle-mounted camera has changed. When the current position information is inconsistent with the stored initial position information, that is, the position and posture of the vehicle-mounted camera has changed, that is, the pitch angle, yaw angle and roll angle of the vehicle-mounted camera have changed, then the change amount of the pitch angle, yaw angle and roll angle of the vehicle-mounted camera is calculated, and the compensation value required for distortion correction is calculated according to the change amount of the pitch angle, yaw angle and roll angle of the vehicle-mounted camera, and the internal parameters and external parameters of the vehicle-mounted camera are recalibrated. The distortion correction of the image is performed according to the recalibrated internal parameters and external parameters of the vehicle-mounted camera, and the distortion-corrected image is panoramically stitched, and the spliced vehicle-mounted panoramic surround view image is output to the display end.
[0074] Figure 4 A schematic diagram of the module composition for automatic calibration of the vehicle-mounted camera, wherein the vehicle-mounted camera module includes a vehicle-mounted camera, an image sensor and an inertial measurement unit, and the graphics processing unit includes image acquisition, distortion correction, image optimization, perspective transformation and image stitching. The inertial measurement unit transmits the acquired current position information to the calibration process, and after the calibration is completed, the internal parameters and external parameters of the calibrated vehicle-mounted camera are obtained, and the distortion correction and image stitching are completed in the graphics processing unit.
[0075] In one specific implementation manner, the current image data and the current position information are data transmitted via a serial path of a serializer.
[0076] It should be noted that if Figure 5 As shown, Figure 5 The schematic diagram of the structure composition for automatic calibration of the vehicle-mounted camera is shown in the figure. The image data acquired by the image sensor and the current position information acquired by the inertial measurement unit are transmitted through the serializer, and enter the graphics processing unit through the deserializer located in the graphics processing module for distortion correction and image stitching, and finally output to the display end. The image data acquired by the image sensor is transmitted through the serial path of the serializer, and the current position information of the inertial measurement unit is transmitted through the IIC (Inter-Integrated Circuit) of the serializer to transmit the position and attitude data.
[0077] In one specific implementation, the automatic calibration method further includes:
[0078] Perform panoramic stitching on the distortion-corrected images to obtain a vehicle-mounted panoramic surround view image;
[0079] The vehicle-mounted panoramic surround view image is output to a display terminal.
[0080] Embodiment 2:
[0081] Figure 2 A schematic diagram of the module composition of an automatic calibration device for a vehicle-mounted camera provided in a second embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown.
[0082] An automatic calibration device for a vehicle-mounted camera according to an embodiment of the present invention comprises:
[0083] An acquisition unit, the acquisition unit is used to acquire current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0084] A judgment unit, the judgment unit is used to judge whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0085] It should be noted that the current position information of the vehicle-mounted camera includes the current posture information of the vehicle-mounted camera, and the current posture information includes the current pitch angle information, the current yaw angle information and the current roll angle information of the vehicle-mounted camera;
[0086] The initial position information includes initial posture information of the vehicle-mounted camera, and the initial posture information includes initial pitch angle information, initial yaw angle information, and initial roll angle information of the vehicle-mounted camera.
[0087] An automatic calibration unit, wherein when the current position information is inconsistent with the initial position information, the automatic calibration unit is used to recalibrate the vehicle-mounted camera parameters according to the current position information and the initial position information;
[0088] It should be noted that the recalibrating of the vehicle camera parameters according to the current position information and the initial position information includes:
[0089] According to the current pitch angle information, current yaw angle information and current roll angle information of the vehicle-mounted camera, and the initial pitch angle information, initial yaw angle information and initial roll angle information of the vehicle-mounted camera, the compensation value of the distortion correction is calculated, and the internal parameters and external parameters of the vehicle-mounted camera are recalibrated.
[0090] A distortion correction unit, the distortion correction unit being used to perform image distortion correction according to the recalibrated vehicle camera parameters or according to the vehicle camera parameters corresponding to the initial position information;
[0091] It should be noted that the current image data captured by the vehicle-mounted camera is obtained by the image sensor of the vehicle-mounted camera, and the current position information of the vehicle-mounted camera is obtained by the inertial measurement unit;
[0092] Furthermore, the inertial measurement unit is connected to the vehicle-mounted camera, and the vehicle-mounted camera, the image sensor and the inertial measurement unit constitute a vehicle-mounted camera module.
[0093] Furthermore, the current image data and the current position information are data transmitted via a serial path of a serializer.
[0094] Furthermore, the initial position information of the vehicle-mounted camera is the position information of the vehicle-mounted camera in an initial calibration environment;
[0095] The vehicle-mounted camera parameters corresponding to the initial position information are internal parameters and external parameters of the vehicle-mounted camera calibrated in the initial calibration environment.
[0096] A panoramic stitching unit, which is used to perform panoramic stitching on the distortion-corrected images to obtain a vehicle-mounted panoramic surround view image;
[0097] An output unit is used to output the vehicle-mounted panoramic surround image to a display terminal.
[0098] It should be noted that, for technical details not fully described in this embodiment, reference may be made to the method for quickly browsing the panoramic camera album provided in the first embodiment above, which will not be described in detail here.
[0099] Embodiment three:
[0100] In the embodiment of the present invention, Figure 7 As shown, a vehicle is provided, the vehicle comprising:
[0101] at least one controller;
[0102] at least four cameras communicatively connected to the at least one controller, and a memory communicatively connected to the at least one controller;
[0103] The memory stores a computer program executable by the at least one controller, and the computer program is executed by the at least one controller so that the at least one controller can execute the automatic calibration method of the vehicle-mounted camera described in any specific implementation of the first embodiment of the present application. For example, the controller can execute the following method:
[0104] Obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0105] Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0106] When the current position information is inconsistent with the initial position information, recalibrate the vehicle camera parameters according to the current position information and the initial position information, and perform image distortion correction;
[0107] When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
[0108] The specific implementation of each of the above operations can be found in the above embodiment 1, which will not be described in detail here.
[0109] Embodiment 4:
[0110] In an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, wherein the computer program is suitable for being loaded by a processor to execute the automatic calibration method for a vehicle-mounted camera described in any specific implementation of Embodiment 1 of the present application. For example, the computer program may execute the following method:
[0111] Obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0112] Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0113] When the current position information is inconsistent with the initial position information, recalibrate the vehicle camera parameters according to the current position information and the initial position information, and perform image distortion correction;
[0114] When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
[0115] The specific implementation of each of the above operations can be found in the above embodiment 1, which will not be described in detail here.
[0116] Different from the prior art, the embodiments of the present application provide an automatic calibration method, device, vehicle and storage medium for a vehicle-mounted camera, wherein the automatic calibration method includes:
[0117] Obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera;
[0118] Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera;
[0119] When the current position information is inconsistent with the initial position information, recalibrate the vehicle camera parameters according to the current position information and the initial position information, and perform image distortion correction;
[0120] When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
[0121] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0122] The present application sets an inertial measurement unit in the vehicle camera module, uses the inertial measurement unit to obtain the current position information of the vehicle camera, and compares the current position information with the initial position information, and uses the obtained current position information to assist the vehicle camera in automatic calibration. When the vehicle camera is installed for the first time, if the position offset caused by external factors affects the 360° panoramic imaging, the system can automatically calibrate at any time according to the offset position information of the vehicle camera. Moreover, since the inertial measurement unit is integrated in the vehicle camera module, the same whole shares a set of positioning system, so that the obtained position information is more accurate, the accuracy of subsequent data reuse, and the accuracy of the system automatic calibration are improved, so that the 360° panoramic imaging is clearer and more accurate.
[0123] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0125] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a terminal device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0126] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An automatic calibration method for a vehicle-mounted camera, Its characteristics are, The automatic calibration method comprises: Obtaining current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera; Determine whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera; When the current position information is inconsistent with the initial position information, recalibrate the vehicle camera parameters according to the current position information and the initial position information, and perform image distortion correction; When the current position information is consistent with the initial position information, image distortion correction is performed according to the vehicle-mounted camera parameters corresponding to the initial position information.
2. The automatic calibration method for a vehicle-mounted camera according to claim 1, Features: The current position information of the vehicle-mounted camera includes current posture information of the vehicle-mounted camera, and the current posture information includes current pitch angle information, current yaw angle information and current roll angle information of the vehicle-mounted camera; The initial position information includes initial posture information of the vehicle-mounted camera, and the initial posture information includes initial pitch angle information, initial yaw angle information, and initial roll angle information of the vehicle-mounted camera.
3. The automatic calibration method for a vehicle-mounted camera according to claim 2, It is characterized in that The recalibrating the vehicle-mounted camera parameters according to the current position information and the initial position information and performing image distortion correction includes: According to the current pitch angle information, current yaw angle information and current roll angle information of the vehicle-mounted camera, and the initial pitch angle information, initial yaw angle information and initial roll angle information of the vehicle-mounted camera, a compensation value for distortion correction is calculated, and the internal parameters and external parameters of the vehicle-mounted camera are recalibrated, and image distortion correction is performed according to the recalibrated internal parameters and external parameters of the vehicle-mounted camera.
4. According to the automatic calibration method of a vehicle-mounted camera as claimed in claim 1, Features: The current image data captured by the vehicle-mounted camera is obtained by an image sensor of the vehicle-mounted camera, and the current position information of the vehicle-mounted camera is obtained by an inertial measurement unit; The inertial measurement unit is connected to the vehicle-mounted camera, and the vehicle-mounted camera, the image sensor and the inertial measurement unit constitute a vehicle-mounted camera module.
5. The automatic calibration method for a vehicle-mounted camera according to claim 4, It is characterized in that The current image data and the current position information are data transmitted via a serial path of a serializer.
6. An automatic calibration method for a vehicle-mounted camera according to any one of claims 1 to 5, Features: The initial position information of the vehicle-mounted camera is the position information of the vehicle-mounted camera in an initial calibration environment; The vehicle-mounted camera parameters corresponding to the initial position information are internal parameters and external parameters of the vehicle-mounted camera calibrated in the initial calibration environment.
7. The automatic calibration method for a vehicle-mounted camera according to claim 6, It is characterized in that The automatic calibration method also includes: Perform panoramic stitching on the distortion-corrected images to obtain a vehicle-mounted panoramic surround view image; The vehicle-mounted panoramic surround view image is output to a display terminal.
8. An automatic calibration device for a vehicle-mounted camera, It is characterized in that The automatic calibration device comprises: An acquisition unit, the acquisition unit is used to acquire current image data captured by the vehicle-mounted camera and current position information of the vehicle-mounted camera; A judgment unit, the judgment unit is used to judge whether the current position information of the vehicle-mounted camera is consistent with the initial position information of the vehicle-mounted camera; An automatic calibration unit, wherein when the current position information is inconsistent with the initial position information, the automatic calibration unit is used to recalibrate the vehicle-mounted camera parameters according to the current position information and the initial position information; A distortion correction unit, the distortion correction unit being used to perform image distortion correction according to the recalibrated vehicle camera parameters or according to the vehicle camera parameters corresponding to the initial position information; A panoramic stitching unit, which is used to perform panoramic stitching on the distortion-corrected images to obtain a vehicle-mounted panoramic surround view image; An output unit is used to output the vehicle-mounted panoramic surround image to a display terminal.
9. A vehicle, the vehicle include: at least one controller; at least four cameras communicatively connected to the at least one controller, and a memory communicatively connected to the at least one controller; Wherein, the memory stores a computer program that can be executed by the at least one controller, and the computer program is executed by the at least one controller so that the at least one controller can execute the automatic calibration method of the vehicle-mounted camera described in any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the automatic calibration method for a vehicle-mounted camera as described in any one of claims 1 to 7.
Citation Information
Cited By
Intelligent inspection method and device combined with panoramic video monitoring
CN119169534A
A Smart Inspection Method and Device Combining Panoramic Video Surveillance
CN119169534B
