Multi-camera calibration method, device, equipment and medium based on road features

Through the multi-objective camera calibration method based on road characteristics, the visual intersection is identified and camera parameters are optimized, which solves the problems of high cost and insufficient dynamic adaptability of traditional calibration solutions, and achieves efficient performance improvement of the panoramic surround view system.

CN113643374BActive Publication Date: 2024-09-06ANHUI OFILM INTELLIGENT CONNECTED VEHICLE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010344426.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-27
Publication Date
2024-09-06
Estimated Expiration
2040-04-27

AI Technical Summary

Technical Problem

The calibration solution of the traditional panoramic surround view system is high in cost, complicated to operate, and cannot dynamically adapt to changes in vehicle and road conditions, and cannot calibrate all cameras at the same time.

Method used

A multi-objective camera calibration method based on road features is used to identify visual intersections in road features, optimize the initial rotation angle and position of the camera, and perform global optimization to achieve simultaneous calibration of all cameras.

Benefits of technology

It reduces calibration costs and operational complexity, can dynamically adjust camera parameters to adapt to different vehicle and road conditions, and improves the performance of the panoramic surround view system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113643374B
    Figure CN113643374B
Patent Text Reader

Abstract

This application relates to a method, apparatus, device, and medium for calibrating multi-camera systems based on road features. The method includes: acquiring first images captured by each camera, the installation position of each camera, and the vehicle's mileage; performing road feature detection on the first images to obtain road features; determining corresponding vanishing points based on the road features, and determining the initial rotation angle of each camera using the vanishing points; determining the initial position of each camera based on its installation position and the vehicle's mileage; optimizing the camera extrinsic parameters of each camera based on its initial rotation angle and initial position; and performing global optimization based on the optimized extrinsic parameters of each camera and the vehicle's mileage to complete camera calibration. This method enables simultaneous calibration of all cameras.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent vehicle technology, and in particular to a method, device, equipment and medium for calibrating a multi-view camera based on road features. Background Art

[0002] The vehicle-mounted surround view system consists of multiple fisheye cameras installed on the front, back, left and right sides of the vehicle. Each camera covers a certain area around the vehicle. The image is transformed into a top view through viewpoint transformation, and then spliced ​​to obtain the vehicle-mounted surround view bird's-eye view. In the process of generating the final vehicle-mounted surround view bird's-eye view, the fisheye camera needs to be calibrated to find its internal and external parameters, and then the initial image captured by the fisheye camera is distorted.

[0003] Traditional calibration solutions for panoramic surround view systems are mostly completed by building precise calibration stations, which are expensive and complicated to operate. At the same time, such offline calibration solutions cannot cover calibration changes caused by changes in vehicle conditions / road conditions during vehicle use. A few online (automatic) calibration solutions can support dynamic calibration needs, but because they generally assume that the positions of some cameras are accurate, they cannot calibrate all cameras at the same time. Summary of the invention

[0004] Based on this, it is necessary to provide a multi-camera calibration method, device, equipment and medium based on road features that can calibrate all cameras simultaneously to address the above technical problems.

[0005] A multi-camera calibration method based on road features, the method comprising:

[0006] Determine the installation position of each camera relative to the vehicle;

[0007] Collecting a first image of the environmental road condition by each camera;

[0008] Get the vehicle's mileage;

[0009] identifying road features in the first image, and further identifying visual intersections in the road features;

[0010] Determining an initial rotation angle of each camera according to the visual intersection point;

[0011] determining an initial position of the camera relative to the vehicle according to the installation position;

[0012] The camera extrinsic parameters of each camera are optimized according to the initial rotation angle and initial position of each camera;

[0013] A global optimization is performed based on the optimized external parameters of each camera and the vehicle's mileage to adjust the rotation angle and initial position of each camera.

[0014] In the above embodiment, full-automatic calibration of any camera or any number of cameras is supported. The high cost and complicated operation of the traditional offline calibration method are well avoided, and the dynamic calibration requirements that the traditional offline calibration cannot support can be covered. When the vehicle is driving under different road conditions with different vehicle conditions, this embodiment can provide the optimal camera parameter solution under the current conditions, thereby improving the performance of the panoramic surround view system.

[0015] In one embodiment, identifying a road feature in the first image includes:

[0016] Scanning the first image to obtain a grayscale value distribution corresponding to the first image, and determining a feature point in the first image whose grayscale value is greater than a preset value according to the grayscale value distribution;

[0017] Selecting feature points that meet the requirements from the determined feature points according to preset rules;

[0018] The road features are obtained by fitting according to the selected feature points.

[0019] In the above embodiment, feature points with grayscale values ​​greater than a preset value are identified through the grayscale value distribution of the image, and road features are obtained by fitting. The road features can be identified only through the grayscale value of the image, and the operation is simple.

[0020] In one embodiment, identifying a road feature in the first image includes:

[0021] Converting the first image into a grayscale value first image, and obtaining attributes corresponding to road features;

[0022] Performing filtering processing on the gray value first image according to the attribute to preliminarily extract the area corresponding to the road feature;

[0023] Screening the areas corresponding to the initially extracted road features to obtain areas corresponding to the road features;

[0024] The area corresponding to the screened road features is subjected to edge fitting processing to obtain the road features.

[0025] In the above embodiment, the attributes of the road features are fully utilized and filtering is performed according to the attributes, so that the area corresponding to the road features can be preliminarily determined, and then after screening, the corresponding road features can be accurately determined.

[0026] In one embodiment, identifying a road feature in the first image includes:

[0027] The first image is input into a pre-trained deep learning network to extract road features through the deep learning network, wherein the deep learning network is trained based on an image containing annotated road features.

[0028] In the above embodiment, the road features are detected through a deep learning network without the need for complex processing, which simplifies the operation and improves accuracy.

[0029] In one embodiment, before optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera, the method further includes:

[0030] The initial rotation angle and initial position of each camera are stored in groups according to the camera.

[0031] In the above embodiment, since it is necessary to first perform group optimization according to the camera later, the initial rotation angle and the initial position of each camera are grouped and stored according to the camera, which can facilitate subsequent processing.

[0032] In one embodiment, optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera includes:

[0033] According to the initial rotation angle, initial position and corresponding road features of each camera, the single camera optimization index is determined according to the projected road features, wherein the road features are road features obtained by identifying the first image, or the road features in the second image obtained by acquiring the second image captured by each camera and extracted.

[0034] According to the single camera optimization metric, the initial rotation angle and initial position of each camera are optimized.

[0035] In the above embodiment, a single camera is optimized by reprojection and then minimizing the reprojection, which can lay a foundation for subsequent global optimization.

[0036] In one embodiment, determining a single-camera optimization metric based on the projected road features includes:

[0037] The width and angle of the projected road features, the positional relationship between the road features, and whether the road features are straight lines are used as single-camera optimization metrics.

[0038] In the above embodiment, for a good calibration, the image of the lane line projected onto the ground should be a straight line and parallel to each other, with equal width and consistent angle, etc. Therefore, based on this, the above parameters of each detected lane line can be compared with each other to improve the accuracy of single camera optimization.

[0039] In one embodiment, determining the single-camera optimization metric based on the projected road features further includes:

[0040] Determining a first displacement standard value of a road feature according to the mileage of the vehicle;

[0041] The displacement of the projected road feature is determined according to the projected road feature, and the difference between the first displacement standard value and the displacement of the projected road feature is calculated as a single camera optimization measurement indicator.

[0042] In the above embodiment, the vehicle mileage can provide scale information when optimizing a single camera and global optimization. For example, if the vehicle displacement between two frames is 5 cm, the lane line displacement in the image should also be 5 cm, which provides a measurement indicator for single camera optimization.

[0043] In one embodiment, the global optimization is performed based on the optimized external parameters of each camera and the mileage of the vehicle to calibrate the camera online, including:

[0044] Stitching the first image or the second image captured by each camera;

[0045] Obtain the deviation value corresponding to the same road feature after splicing as a global optimization measurement indicator;

[0046] According to the global optimization metric, the initial rotation angle and initial position of each camera are optimized.

[0047] In the above embodiment, during global optimization, the goal is to minimize the overall parameter error. After a single camera is optimized, after the images of all cameras are stitched together, there will definitely be problems such as misalignment and scale inconsistency. Therefore, global optimization is performed based on these misalignment and scale inconsistency problems to improve the accuracy of processing.

[0048] In one embodiment, the step of obtaining the deviation value corresponding to the same road feature after splicing as a global optimization metric includes:

[0049] Acquire the same road features in images captured by adjacent cameras;

[0050] The width and angle deviation values ​​of the same road feature after splicing are calculated as global optimization metrics.

[0051] In the above embodiment, the lane line parameters (thickness, angle, etc.) between different cameras and the global position (the stitching cannot be misaligned) are optimized to improve the accuracy of the processing.

[0052] In one embodiment, the step of obtaining the deviation value corresponding to the same road feature after splicing as a global optimization metric further includes:

[0053] Determining a second displacement standard value of the road characteristic according to the mileage of the vehicle;

[0054] Determine the actual displacement corresponding to the road features;

[0055] The difference between the second displacement standard value and the actual displacement is calculated as a global optimization measurement indicator.

[0056] In the above embodiment, the vehicle mileage can provide scale information when optimizing a single camera and global optimization. For example, if the vehicle displacement between two frames is 5 cm, the lane line displacement in the image should also be 5 cm, which provides a measurement indicator for global optimization.

[0057] A multi-camera calibration device based on road features, the device comprising:

[0058] An installation position determination module, used to determine the installation position of each camera relative to the vehicle;

[0059] A first image acquisition module, used for acquiring a first image of the environmental road condition through each camera;

[0060] A vehicle mileage acquisition module is used to acquire the vehicle mileage;

[0061] a visual intersection determination module, used to identify road features in the first image, and further identify visual intersections in the road features;

[0062] An initial rotation angle determination module, used to determine the initial rotation angle of each camera according to the visual intersection point;

[0063] An initial position determination module, used to determine the initial position of the camera relative to the vehicle according to the installation position;

[0064] The single camera optimization module is used to optimize the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera;

[0065] The global optimization module is used to perform global optimization based on the optimized external parameters of each camera and the vehicle's mileage to adjust the rotation angle and initial position of each camera.

[0066] In the above embodiment, full-automatic calibration of any camera or any number of cameras is supported. The high cost and complicated operation of the traditional offline calibration method are well avoided, and the dynamic calibration requirements that the traditional offline calibration cannot support can be covered. When the vehicle is driving under different road conditions with different vehicle conditions, this embodiment can provide the optimal camera parameter solution under the current conditions, thereby improving the performance of the panoramic surround view system.

[0067] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0068] In the above embodiment, full-automatic calibration of any camera or any number of cameras is supported. The high cost and complicated operation of the traditional offline calibration method are well avoided, and the dynamic calibration requirements that the traditional offline calibration cannot support can be covered. When the vehicle is driving under different road conditions with different vehicle conditions, this embodiment can provide the optimal camera parameter solution under the current conditions, thereby improving the performance of the panoramic surround view system.

[0069] A computer-readable storage medium stores a computer program, which implements the steps of any one of the above methods when executed by a processor.

[0070] In the above embodiment, full-automatic calibration of any camera or any number of cameras is supported. The high cost and complicated operation of the traditional offline calibration method are well avoided, and the dynamic calibration requirements that the traditional offline calibration cannot support can be covered. When the vehicle is driving under different road conditions with different vehicle conditions, this embodiment can provide the optimal camera parameter solution under the current conditions, thereby improving the performance of the panoramic surround view system. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 This is a diagram of an application environment of a multi-camera method based on road features in one embodiment;

[0072] Figure 2 is a schematic diagram of a flow chart of a multi-camera method based on road features in one embodiment;

[0073] Figure 3 A schematic diagram of a vehicle condition or road condition causing a camera calibration problem in an embodiment;

[0074] Figure 4 It is a flowchart of a calibration effect determination process in another embodiment;

[0075] Figure 5 is a gray value distribution diagram of a single row image in one embodiment;

[0076] Figure 6is a flow chart of a multi-camera method based on road features in another embodiment;

[0077] Figure 7 is a structural block diagram of a multi-camera device based on road features in one embodiment;

[0078] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0080] The multi-camera method based on road features provided in this application can be applied to Figure 1 In the application environment shown. The image information acquired by the camera 102 is sent to the controller 104 in the vehicle for processing. The camera 102 can collect the first image of the environmental road conditions, and the controller 104 pre-stores the installation position of each camera, and collects the driving speed of the vehicle through the sensor installed on the vehicle, and then obtains the time interval between the previous frame image and the current frame image, and calculates the mileage of the vehicle through the driving speed and the time interval; in this way, the controller 104 performs road feature detection on the first image to obtain the road feature, and then obtains the visual intersection according to the road feature recognition, and determines the initial rotation angle of each camera through the visual intersection; in this way, the controller 104 determines the initial position of each camera according to the installation position of each camera, and the initial rotation angle and the initial position constitute the initial camera extrinsic parameters of each camera, and then optimizes the camera extrinsic parameters of each camera according to the initial rotation angle and the initial position of each camera; according to the optimized extrinsic parameters of each camera and the mileage of the vehicle, global optimization is performed to complete the camera calibration. In this way, the optimal camera parameter solution under the current conditions can be given, thereby improving the performance of the panoramic surround view system.

[0081] In one embodiment, Figure 2 As shown in the figure, a multi-camera method based on road features is provided, which is applied to Figure 1 The controller in the example is used to illustrate the following steps:

[0082] S202: Determine the installation position of each camera relative to the vehicle; collect a first image of the environmental road condition through each camera; and obtain the mileage of the vehicle.

[0083] Specifically, due to the calibration changes caused by changes in vehicle conditions / road conditions during vehicle use, the performance of the panoramic view system may deteriorate, such as Figure 3As shown, in order to solve this problem, this embodiment proposes to perform real-time calibration of the camera according to road features.

[0084] In this embodiment, a vehicle may be equipped with multiple cameras, and the image taken by each camera may carry a timestamp, so that the controller can determine the corresponding first image captured by each camera according to the timestamp, that is, the current frame image corresponding to the current time.

[0085] The installation position of each camera may be a designed installation position of the camera, and the designed installation position of the camera may be stored in the controller, so that the controller can directly read the installation position of each camera.

[0086] The vehicle's mileage can be obtained by collecting the vehicle's driving speed through a sensor installed on the vehicle, and then obtaining the time interval between the previous frame image and the current frame image, and calculating the vehicle's mileage through the driving speed and the time interval. Optionally, the controller can directly read the vehicle's relative mileage on the vehicle's odometer.

[0087] S203: Identify road features in the first image, and further identify visual intersections in the road features.

[0088] The road features may be various road signs planned on the road, such as lane lines, and further, zebra crossings, etc. The controller may detect the road features on the first image to obtain the road features by a variety of methods, such as identifying the road features by the frequency of the brightness of the road and the background, or by specific attributes of the road features, such as special position rules (for example, zebra crossings are light and dark lines), or by deep learning methods using neural networks.

[0089] Specifically, the visual intersection point refers to the visual intersection point of parallel lines, that is, the visual intersection point of a road feature, such as the visual intersection point of parallel lane lines. The controller can extend the detected road feature to obtain the coordinates of the visual intersection point.

[0090] S204: Determine the initial rotation angle of each camera according to the visual intersection point.

[0091] Specifically, the controller may determine the initial rotation angle of each camera through the coordinates of the visual intersection point, wherein the controller may obtain the initial rotation angle of the corresponding camera through two visual intersection points or three visual intersection points according to the projection relationship.

[0092] S206: Determine an initial position of the camera relative to the vehicle according to the installation position.

[0093] Specifically, the controller may determine the initial position of each camera according to the installation position of each camera.

[0094] S208: Optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera.

[0095] Specifically, the controller can adopt the principle of minimizing the reprojection error and use a nonlinear optimizer to optimize the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera. For example, the controller first calculates the single camera optimization metric, then optimizes the extrinsic parameters of a single camera through a nonlinear optimizer, and then calculates the single camera optimization metric to determine whether the single camera optimization metric meets the requirements. If so, the optimization is completed. Otherwise, the camera extrinsic parameters of each camera are optimized according to the initial rotation angle and initial position of each camera until the camera extrinsic parameters of a single camera are optimized.

[0096] In one embodiment, before optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera, the method further includes: storing the initial rotation angle and initial position of each camera in groups according to the camera. In addition, before grouping, the controller may also fit the edge information of the identification line to remove noise. In this way, since grouping optimization is required first according to the camera in the subsequent process, storing the initial rotation angle and initial position of each camera in groups according to the camera can facilitate subsequent processing.

[0097] S210: Perform global optimization based on the optimized external parameters of each camera and the mileage of the vehicle to adjust the rotation angle and initial position of each camera.

[0098] Specifically, global optimization can also adopt the principle of minimizing reprojection errors, use a nonlinear optimizer, and perform global optimization based on the optimized external parameters of each camera and the vehicle's mileage to complete camera calibration. Global optimization can first stitch images of the same timestamp corresponding to each camera, and then obtain global optimization metrics based on the stitched images, such as stitching misalignment or the difference between the actual displacement of the vehicle and the displacement obtained based on the stitched images, and complete camera calibration by nonlinearly optimizing the above global optimization metrics to a certain range.

[0099] Specifically, see Figure 4As shown, after the calibration is completed, that is, after each global optimization, the controller determines whether the error obtained is the smallest. If it is the smallest, the calibration is successful and ends. Otherwise, the above step S202 is continued to reacquire the image captured by the camera and continue to optimize. When judging, a new image frame can be re-captured, for example, the next image frame is captured, and then the next image frame corresponding to each camera is spliced, and the same marker after splicing, such as the same road feature, is obtained, and then the misalignment error of the same road feature in the spliced ​​image is determined. If the misalignment error meets the requirements, it means that the calibration is successful and ends. Otherwise, the next frame of the image is continued to be acquired as the current frame, and the camera is recalibrated.

[0100] In the above embodiment, full-automatic calibration of any camera or any number of cameras is supported. The high cost and complicated operation of the traditional offline calibration method are well avoided, and the dynamic calibration requirements that the traditional offline calibration cannot support can be covered. When the vehicle is driving under different road conditions with different vehicle conditions, this embodiment can provide the optimal camera parameter solution under the current conditions, thereby improving the performance of the panoramic surround view system.

[0101] Specifically, the controller may identify the road features in the first image by a variety of methods, such as by the frequency of the road features and the brightness of the road and the background, or by specific attributes of the road features, such as special position rules for detection (for example, a zebra crossing is a line of light and dark), or by a deep learning method of a neural network. The above methods will be described in detail below:

[0102] In one embodiment, identifying road features in a first image includes: scanning the first image to obtain a grayscale value distribution corresponding to the first image, and determining a feature point in the first image having a grayscale value greater than a preset value according to the grayscale value distribution; selecting a feature point that meets the requirements from the determined feature points according to a preset rule; and fitting the selected feature points to obtain the road features.

[0103] Specifically, this embodiment uses the frequency of the brightness of the road features, the road, and the background for identification. Specifically, the brightness frequency change can be understood as the grayscale value of the road feature in the grayscale image is greater than the grayscale value of the background such as the road surface (manifested as high brightness). The controller uses brightness to detect road features and will detect a lot of noise at the same time (brighter pixels that are not marking lines). At this time, the correct road features can be screened out based on continuity and size and through the RANSAC method.

[0104] Please combine Figure 5 As shown, Figure 5It is a gray value distribution diagram of a single row image in an embodiment, wherein the controller can scan the first image row by row to obtain the gray value distribution corresponding to the first image, and determine the gray value in the first image greater than the preset value to the feature point according to the gray value distribution. For example, by detecting the rising edge and the falling edge, the combination can detect the brighter area in the single row, and the brighter area can become the feature point. Then the controller preliminarily screens to obtain effective feature points. For example, feature points within a reasonable range can be selected according to the size of the feature points. Feature points that are continuous with each other can be screened out according to the distribution of the feature points, thereby deleting single feature points. Third, according to the breakpoints of the feature points, a straight line is fitted, and the feature points that cannot be combined into road features are continuously screened out. Fourth, stable and effective feature points are obtained, which can be combined into road features, and edge straight lines are fitted, and road marking lines are detected.

[0105] In the above embodiment, feature points with grayscale values ​​greater than a preset value are identified through the grayscale value distribution of the image, and road features are obtained by fitting. The road features can be identified only through the grayscale value of the image, and the operation is simple.

[0106] In one embodiment, identifying a road feature in a first image includes: converting the first image into a grayscale value first image, and obtaining attributes corresponding to the road features; filtering the grayscale value first image according to the attributes to preliminarily extract areas corresponding to the road features; screening the areas corresponding to the preliminarily extracted road features to obtain areas corresponding to the road features; and performing edge fitting on the screened areas corresponding to the road features to obtain the road features.

[0107] This embodiment detects the road features by using the specific attributes of the road features. Specifically, the controller uses a specific marking line (such as a zebra crossing) which has a fixed pattern combination attribute. Specifically, after the controller converts the first image into a grayscale image, it uses the Haar-like feature to process the image line by line using the following filter:

[0108]

[0109] Where m is the interval of road features, such as the interval of zebra crossings, It is the offset of the impact signal designed according to the road characteristics, such as the zebra crossing interval. is the impact signal corresponding to the offset, is the weight, which determines the strength of each impact signal, (-1) i+j is the weight, which determines whether the impact signal is added or subtracted, is to traverse all the impact signals, is the output of the filter.

[0110] The filter receives the zebra crossing interval as an input parameter. After scanning the first image line by line, the brighter areas that meet this interval will be amplified, and the areas that do not meet this interval will be weakened. Therefore, after this step, the zebra crossing area will be highlighted, while other background areas will be dim. After such an operation, the highlighted area basically belongs to the zebra crossing area, but there will still be some noise. At this time, the shape, size and position of the area contour in the image can be used for screening, and then the actual zebra crossing area can be screened out. Finally, the controller binarizes the screened zebra crossing area, extracts the edge fitting straight line to detect the zebra crossing, that is, the road feature.

[0111] In the above embodiment, the attributes of the road features are fully utilized and filtering is performed according to the attributes, so that the area corresponding to the road features can be preliminarily determined, and then after screening, the corresponding road features can be accurately determined.

[0112] In one embodiment, identifying road features in a first image includes: inputting the first image into a pre-trained deep learning network to extract the road features through the deep learning network, wherein the deep learning network is trained based on an image containing annotated road features.

[0113] Specifically, the method detects road features through a deep learning network, including generating training data. The road features in the training data are marked by manual annotation, and then a network architecture (such as CNN, etc.) is designed to train the neural network so that it can distinguish road features from non-road features. Finally, the trained network is used to identify the road feature area in the newly taken image.

[0114] In the above embodiment, the road features are detected through a deep learning network without the need for complex processing, which simplifies the operation and improves accuracy.

[0115] Specifically, the single-camera optimization process will be described in detail below. The single-camera optimization process is mainly performed using nonlinear optimization.

[0116] In one of the embodiments, the camera extrinsic parameters of each camera are optimized according to the initial rotation angle and initial position of each camera, including: projecting the initial rotation angle, initial position and corresponding road features of each camera onto a ground plane, and determining a single camera optimization metric based on the projected road features, wherein the road features are road features obtained by identifying a first image, or are obtained by acquiring a second image captured by each camera and extracting road features in the second image; optimizing the initial rotation angle and initial position of each camera according to the single camera optimization metric.

[0117] Specifically, when optimizing a single camera, the principle is that the most detected road features should be lane lines. For a good camera calibration, the image of the lane lines projected onto the ground should be straight and parallel to each other, with equal width and thickness, etc. Therefore, based on this, the above parameters of each detected lane line can be compared with each other and the difference can be calculated. The purpose of single camera optimization is to minimize the difference. When optimizing, a new image can be captured by the camera or the original image can be used. If a new image is captured, the road features in the second image are extracted. If the original image is used, the initial rotation angle, initial position and extracted road features of each camera are directly used to project onto the ground plane, and the single camera optimization metric is determined based on the projected road features.

[0118] The single camera optimization metric can be the width, angle, positional relationship between each road feature and whether the road feature is a straight line after projection as the single camera optimization metric. Since for a good calibration, the image of the lane line projected onto the ground should be a straight line and parallel to each other, with equal width and consistent angle, etc., it can be based on this to compare the above parameters of each detected lane line to improve the accuracy of single camera optimization. In addition, optionally, the single camera optimization metric can also be determined according to the mileage of the vehicle. For example, the controller determines the first displacement standard value of the road feature according to the mileage of the vehicle; determines the displacement of the projected road feature according to the projected road feature, and calculates the difference between the first displacement standard value and the displacement of the projected road feature as the single camera optimization metric. In the above embodiment, the vehicle mileage can provide scale information when optimizing a single camera and global optimization. For example, if the vehicle displacement between two frames is 5cm, the lane line displacement in the image should also be 5cm, which provides a metric for single camera optimization.

[0119] After the controller calculates the single-camera optimization metric, it can optimize the initial rotation angle and initial position of each camera based on the single-camera optimization metric. For example, the sum of the optimization metrics of each single camera can be calculated, and then the optimization can be performed cyclically until the sum is minimized or meets the preset requirements.

[0120] In the above embodiment, a single camera is optimized by reprojection and then minimizing the reprojection, which can lay a foundation for subsequent global optimization.

[0121] Specifically, after the single-camera optimization is completed, the controller continues to perform global optimization to improve the performance of the panoramic view system.

[0122] In one of the embodiments, global optimization is performed based on the optimized external parameters of each camera and the mileage of the vehicle to adjust the rotation angle and initial position of each camera, including: splicing the first image or the second image captured by each camera; obtaining the deviation value corresponding to the same road feature after splicing as a global optimization measurement index; and optimizing the initial rotation angle and initial position of each camera based on the global optimization measurement index.

[0123] Specifically, the overall steps of global optimization are similar to those of single-camera optimization, the difference being the way the difference is calculated. In global optimization, the goal is to minimize the overall parameter error. After the controller optimizes a single camera and stitches together the images from all the cameras, there will definitely be problems with misalignment and scale mismatch. Therefore, when calculating the difference, which is the global optimization metric, it is necessary to add the lane line parameters (thickness, angle, etc.) between different cameras, as well as the global position (splicing cannot be misaligned), etc. The purpose of optimization is to minimize these global optimization metrics.

[0124] The calculation method of the global optimization index may include: obtaining the same road feature in the images captured by adjacent cameras; calculating the deviation value of the width and angle of the same road feature after splicing as the global optimization index. In the above embodiment, the lane line parameters (thickness, angle, etc.) between different cameras and the global position (splicing cannot be misaligned) are optimized to improve the accuracy of the processing.

[0125] In addition, the calculation method of the global optimization metric may also include: determining the second displacement standard value of the road feature according to the vehicle's mileage; determining the actual displacement corresponding to the road feature; calculating the difference between the second displacement standard value and the actual displacement as the global optimization metric. In the above embodiment, the vehicle's mileage can provide scale information when optimizing a single camera and global optimization. For example, if the vehicle displacement between two frames is 5 cm, then the lane line displacement in the image should also be 5 cm. For example, assuming that the end of the lane line away from the vehicle is a reference object and the vehicle displacement is 5 cm, then the end of the lane line away from the vehicle also has a displacement of 5 cm in the image, which provides a metric for global optimization.

[0126] After calculating the above global optimization metrics, the controller performs nonlinear optimization. For example, the sum of the global optimization metrics can be calculated, and then a cyclic optimization is performed until the sum is minimized or meets the preset requirements.

[0127] In the above embodiment, during global optimization, the goal is to minimize the overall parameter error. After a single camera is optimized, after the images of all cameras are stitched together, there will definitely be problems such as misalignment and scale inconsistency. Therefore, global optimization is performed based on these misalignment and scale inconsistency problems to improve the accuracy of processing.

[0128] Specifically, please gather Figure 6 As shown, Figure 6 It is a flowchart of a multi-camera method based on road features in another embodiment. In this embodiment, the controller first detects various road marking lines according to the change of brightness frequency. Then, the initial value of the camera pose is obtained according to the collected information, including the initial rotation angle and initial position of the camera, that is, the controller uses the detected visual intersection and optical flow to track the ground features, combined with the odometer information of the vehicle, to obtain the estimated initial value of the camera pose. This process only requires the estimated value, and the accuracy requirement is not high. Then the controller collects the necessary data, that is, collects the road feature data and pre-processes it. Finally, the controller adopts the principle of minimizing the reprojection error, uses a nonlinear optimizer, first optimizes a single camera separately, and then globally optimizes all cameras to minimize the reprojection error. Road feature detection can actually be replaced by any algorithm that can detect road marking lines in real time and robustly, such as deep learning to detect lane lines, etc., using frequency shape features to detect road marking lines, etc. In this way, the initial value of the camera pose is robustly obtained, and then all cameras can be calibrated simultaneously. In the final optimization part, the global minimization of reprojection error optimization is added, which can greatly improve the calibration accuracy. At the same time, the vehicle motion model and the vehicle's odometer information are introduced to greatly reduce and suppress the errors caused by noise in open scenes.

[0129] It should be understood that although Figure 2 and Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 and Figure 6 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0130] In one embodiment, Figure 7As shown, a multi-camera calibration device based on road features is provided, comprising: an installation position determination module 100, a vehicle mileage acquisition module 300, a visual intersection determination module 400, an initial rotation angle determination module 500, an initial position determination module 600, a single camera optimization module 700 and a global optimization module 800, wherein:

[0131] An installation position determination module 100, used to determine the installation position of each camera relative to the vehicle;

[0132] The first image acquisition module 200 is used to acquire a first image of the environment and road conditions through each camera;

[0133] The vehicle mileage acquisition module 300 is used to acquire the vehicle mileage;

[0134] A visual intersection determination module 400, for identifying road features in the first image, and further identifying visual intersections in the road features;

[0135] An initial rotation angle determination module 500 is used to determine the initial rotation angle of each camera according to the visual intersection point;

[0136] An initial position determination module 600, for determining an initial position of the camera relative to the vehicle according to the installation position;

[0137] A single camera optimization module 700 is used to optimize the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera;

[0138] The global optimization module 800 is used to perform global optimization based on the optimized external parameters of each camera and the mileage of the vehicle to adjust the rotation angle and initial position of each camera.

[0139] In one embodiment, the visual intersection determination module 400 may include:

[0140] A scanning unit, configured to scan the first image to obtain a grayscale value distribution corresponding to the first image, and determine a feature point in the first image whose grayscale value is greater than a preset value according to the grayscale value distribution;

[0141] A selection unit, used for selecting feature points that meet the requirements from the determined feature points according to a preset rule;

[0142] The first fitting unit is used to obtain road features by fitting according to the selected feature points.

[0143] In one embodiment, the visual intersection determination module 400 may include:

[0144] A conversion unit, used to convert the first image into a gray value first image, and obtain attributes corresponding to the road features;

[0145] A preliminary extraction unit, used for screening the area corresponding to the preliminary extracted road features to obtain the area corresponding to the road features;

[0146] A screening unit, used for screening the areas corresponding to the initially extracted road features to obtain areas corresponding to the road features;

[0147] The second fitting unit is used to perform edge fitting processing on the area corresponding to the screened road feature to obtain the road feature.

[0148] In one embodiment, the visual intersection determination module 400 may include:

[0149] The deep learning network processing unit is used to input the first image into a pre-trained deep learning network to extract road features through the deep learning network, where the deep learning network is trained based on images containing annotated road features.

[0150] In one embodiment, the multi-camera calibration device based on road features further includes:

[0151] The grouping module is used to group and store the initial rotation angle and initial position of each camera according to the camera.

[0152] In one embodiment, the single camera optimization module 700 includes:

[0153] A feature extraction unit is used to project the initial rotation angle, initial position and corresponding road features of each camera onto a ground plane, and determine a single camera optimization metric according to the projected road features, wherein the road features are road features obtained by identifying the first image, or road features in the second image obtained by acquiring the second image captured by each camera and extracted;

[0154] The single-camera optimization unit is used to optimize the initial rotation angle and initial position of each camera according to the single-camera optimization measurement index.

[0155] In one embodiment, the feature extraction unit includes:

[0156] The first single-camera optimization measurement index determination unit is used to use the width and angle of the projected road feature, the positional relationship between the road features, and whether the road feature is a straight line as the single-camera optimization measurement index.

[0157] In one embodiment, the feature extraction unit further includes:

[0158] A first displacement standard value determining unit, used to determine a first displacement standard value of a road feature according to the mileage of the vehicle;

[0159] The second single camera optimization measurement index determination unit is used to determine the displacement of the projected road feature according to the projected road feature, and calculate the difference between the first displacement standard value and the displacement of the projected road feature as the single camera optimization measurement index.

[0160] In one embodiment, the global optimization module 800 includes:

[0161] A stitching unit, used for stitching the first image or the second image captured by each camera;

[0162] A global optimization measurement index acquisition unit is used to obtain the deviation value corresponding to the same road feature after splicing as a global optimization measurement index;

[0163] The global optimization unit is used to optimize the initial rotation angle and initial position of each camera according to the global optimization measurement index.

[0164] In one embodiment, the global optimization metric acquisition unit includes:

[0165] A same road feature acquisition unit, used to acquire the same road feature in the images collected by adjacent cameras;

[0166] The deviation value calculation unit is used to calculate the deviation value of the width and angle of the same road feature after splicing as a global optimization measurement indicator.

[0167] In one of the embodiments, the global optimization metric acquisition unit further includes:

[0168] A second displacement standard value determining unit, used to determine a second displacement standard value of a road feature according to the mileage of the vehicle;

[0169] An actual displacement determination unit, used to determine an actual displacement corresponding to a road feature;

[0170] The global optimization measurement index determination unit is used to calculate the difference between the second displacement standard value and the actual displacement as the global optimization measurement index.

[0171] For the specific definition of the multi-camera device based on road features, please refer to the definition of the multi-camera method based on road features above, which will not be repeated here. Each module in the multi-camera device based on road features can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0172] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a multi-camera method based on road features is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0173] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0174] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: determining the installation position of each camera relative to a vehicle; collecting a first image of an environmental road condition through each camera; obtaining the mileage of the vehicle; identifying road features in the first image, and further identifying visual intersections in the road features; determining an initial rotation angle of each camera according to the visual intersections; determining an initial position of the camera relative to the vehicle according to the installation position; optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera; and performing global optimization according to the optimized extrinsic parameters of each camera and the mileage of the vehicle to adjust the rotation angle and initial position of each camera.

[0175] In one embodiment, the identification of road features in a first image implemented when a processor executes a computer program includes: scanning the first image to obtain a grayscale value distribution corresponding to the first image, and determining feature points in the first image whose grayscale values ​​are greater than a preset value based on the grayscale value distribution; selecting feature points that meet the requirements from the determined feature points according to preset rules; and fitting the selected feature points to obtain road features.

[0176] In one embodiment, the identification of road features in a first image implemented when a processor executes a computer program includes: converting the first image into a grayscale value first image, and obtaining attributes corresponding to the road features; filtering the grayscale value first image according to the attributes to preliminarily extract areas corresponding to the road features; screening the areas corresponding to the preliminarily extracted road features to obtain areas corresponding to the road features; and performing edge fitting processing on the screened areas corresponding to the road features to obtain road features.

[0177] In one embodiment, the identification of road features in a first image implemented when a processor executes a computer program includes: inputting the first image into a pre-trained deep learning network to extract the road features through the deep learning network, wherein the deep learning network is trained based on an image containing annotated road features.

[0178] In one embodiment, before optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera respectively when the processor executes the computer program, it also includes: storing the initial rotation angle and initial position of each camera in groups according to the camera.

[0179] In one embodiment, the camera extrinsic parameters of each camera are optimized according to the initial rotation angle and initial position of each camera when the processor executes the computer program, including: projecting the initial rotation angle, initial position and corresponding road features of each camera onto a ground plane, and determining a single camera optimization measurement index according to the projected road features, wherein the road features are road features obtained by identifying a first image, or are obtained by acquiring a second image captured by each camera and extracting the road features in the second image; optimizing the initial rotation angle and initial position of each camera according to the single camera optimization measurement index.

[0180] In one embodiment, the processor determines the single-camera optimization metric based on the projected road features when executing a computer program, including: using the width and angle of the projected road features, the positional relationship between the road features, and whether the road features are straight lines as single-camera optimization metric indicators.

[0181] In one embodiment, the method of determining a single camera optimization measurement index based on the projected road features implemented when the processor executes a computer program also includes: determining a first displacement standard value of the road features based on the mileage of the vehicle; determining the displacement of the projected road features based on the projected road features, and calculating the difference between the first displacement standard value and the displacement of the projected road features as the single camera optimization measurement index.

[0182] In one embodiment, the processor executes a computer program to perform global optimization based on the optimized external parameters of each camera and the mileage of the vehicle to calibrate the camera online, including: splicing the first image or the second image captured by each camera; obtaining the deviation value corresponding to the same road feature after splicing as a global optimization measurement index; and optimizing the initial rotation angle and initial position of each camera according to the global optimization measurement index.

[0183] In one embodiment, the processor executes a computer program to obtain the deviation value corresponding to the same road feature after stitching as a global optimization measurement indicator, including: obtaining the same road feature in images captured by adjacent cameras; calculating the deviation value of the width and angle of the same road feature after stitching as the global optimization measurement indicator.

[0184] In one embodiment, the processor executes a computer program to obtain the deviation value corresponding to the same road feature after splicing as a global optimization measurement indicator, and also includes: determining a second displacement standard value of the road feature according to the mileage of the vehicle; determining the actual displacement corresponding to the road feature; and calculating the difference between the second displacement standard value and the actual displacement as a global optimization measurement indicator.

[0185] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: determining the installation position of each camera relative to a vehicle; collecting a first image of the environmental road condition through each camera; obtaining the mileage of the vehicle; identifying road features in the first image, and further identifying visual intersections in the road features; determining an initial rotation angle of each camera according to the visual intersections; determining an initial position of the camera relative to the vehicle according to the installation position; optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera; and performing global optimization based on the optimized extrinsic parameters of each camera and the mileage of the vehicle to adjust the rotation angle and initial position of each camera.

[0186] In one embodiment, the identification of road features in a first image implemented when a computer program is executed by a processor includes: scanning the first image to obtain a grayscale value distribution corresponding to the first image, and determining feature points in the first image whose grayscale values ​​are greater than a preset value based on the grayscale value distribution; selecting feature points that meet the requirements from the determined feature points according to preset rules; and fitting the selected feature points to obtain road features.

[0187] In one embodiment, the identification of road features in a first image implemented when a computer program is executed by a processor includes: converting the first image into a grayscale value first image, and obtaining attributes corresponding to the road features; filtering the grayscale value first image according to the attributes to preliminarily extract areas corresponding to the road features; screening the areas corresponding to the preliminarily extracted road features to obtain areas corresponding to the road features; and performing edge fitting on the screened areas corresponding to the road features to obtain road features.

[0188] In one embodiment, the recognition of road features in a first image implemented when a computer program is executed by a processor includes: inputting the first image into a pre-trained deep learning network to extract the road features through the deep learning network, wherein the deep learning network is trained based on an image containing annotated road features.

[0189] In one embodiment, before optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera respectively, the computer program implemented when executed by the processor further includes: storing the initial rotation angle and initial position of each camera in groups according to the camera.

[0190] In one embodiment, the computer program implemented when executed by the processor optimizes the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera, including: projecting the initial rotation angle, initial position and corresponding road features of each camera onto a ground plane, and determining a single camera optimization measurement index according to the projected road features, wherein the road features are road features obtained by identifying a first image, or are obtained by acquiring a second image captured by each camera and extracting the road features in the second image; optimizing the initial rotation angle and initial position of each camera according to the single camera optimization measurement index.

[0191] In one embodiment, when a computer program is executed by a processor, determining a single camera optimization metric based on the projected road features includes: using the width and angle of the projected road features, the positional relationship between the road features, and whether the road features are straight lines as single camera optimization metric indicators.

[0192] In one embodiment, the computer program implemented when executed by the processor to determine the single camera optimization measurement index based on the projected road features also includes: determining a first displacement standard value of the road features based on the vehicle's mileage; determining the displacement of the projected road features based on the projected road features, and calculating the difference between the first displacement standard value and the displacement of the projected road features as the single camera optimization measurement index.

[0193] In one embodiment, when the computer program is executed by a processor, global optimization is performed based on the optimized external parameters of each camera and the mileage of the vehicle to calibrate the camera online, including: splicing the first image or the second image captured by each camera; obtaining the deviation value corresponding to the same road feature after splicing as a global optimization measurement index; and optimizing the initial rotation angle and initial position of each camera based on the global optimization measurement index.

[0194] In one embodiment, the computer program executed by the processor obtains the deviation value corresponding to the same road feature after stitching as a global optimization measurement indicator, including: obtaining the same road feature in images captured by adjacent cameras; calculating the deviation value of the width and angle of the same road feature after stitching as the global optimization measurement indicator.

[0195] In one embodiment, the computer program implemented when executed by the processor obtains the deviation value corresponding to the same road feature after splicing as a global optimization measurement indicator, and also includes: determining a second displacement standard value of the road feature based on the vehicle's mileage; determining the actual displacement corresponding to the road feature; and calculating the difference between the second displacement standard value and the actual displacement as a global optimization measurement indicator.

[0196] For the specific definition of the multi-camera device based on road features, please refer to the definition of the multi-camera method based on road features above, which will not be repeated here. Each module in the multi-camera device based on road features can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0197] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a multi-camera method based on road features is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0198] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0199] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0200] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0201] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0202] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0203] The above-mentioned embodiments only express several implementation methods of the present application, 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 a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A multi-camera calibration method based on road features, the method comprising: Determine the installation position of each camera relative to the vehicle; Collecting a first image of the environmental road condition by each camera; Get the vehicle's mileage; identifying road features in the first image, and further identifying visual intersections in the road features; Determining an initial rotation angle of each camera according to the visual intersection point; determining an initial position of the camera relative to the vehicle according to the installation position; The camera extrinsic parameters of each camera are optimized according to the initial rotation angle and initial position of each camera; Perform global optimization based on the optimized external parameters of each camera and the vehicle's mileage to adjust the rotation angle and initial position of each camera; The global optimization is performed based on the optimized external parameters of each camera and the mileage of the vehicle to adjust the rotation angle and initial position of each camera, including: Stitching the first images captured by each camera; Obtain the deviation value corresponding to the same road feature after splicing as a global optimization measurement indicator; Optimizing the initial rotation angle and initial position of each camera according to the global optimization metric; The step of obtaining the deviation value corresponding to the same road feature after splicing as a global optimization measurement indicator includes: Determining a second displacement standard value of the road characteristic according to the mileage of the vehicle; Determine the actual displacement corresponding to the road features; The difference between the second displacement standard value and the actual displacement is calculated as a global optimization measurement indicator.

2. The method according to claim 1, characterized in that The identifying road features in the first image includes: Scanning the first image to obtain a grayscale value distribution corresponding to the first image, and determining a feature point in the first image whose grayscale value is greater than a preset value according to the grayscale value distribution; Selecting the feature points that meet the requirements from the determined feature points according to the preset rules; The road features are obtained by fitting according to the selected feature points.

3. The method according to claim 1, characterized in that: The identifying road features in the first image includes: Converting the first image into a grayscale value first image, and obtaining attributes corresponding to road features; Performing filtering processing on the grayscale value first image according to the attribute to preliminarily extract the area corresponding to the road feature; Screening the areas corresponding to the initially extracted road features to obtain areas corresponding to the road features; The area corresponding to the screened road features is subjected to edge fitting processing to obtain the road features.

4. The method according to claim 1, characterized in that: The identifying road features in the first image includes: The first image is input into a pre-trained deep learning network to extract road features through the deep learning network, wherein the deep learning network is trained based on an image containing annotated road features.

5. The method according to any one of claims 1 to 4, characterized in that: Before optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and the initial position of each camera, the method further includes: The initial rotation angle and initial position of each camera are stored in groups according to the camera.

6. The method according to any one of claims 1 to 4, characterized in that: The step of optimizing the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera comprises: Projecting the initial rotation angle, initial position and corresponding road features of each camera onto a ground plane, and determining a single camera optimization metric according to the projected road features, wherein the road features are road features obtained by recognizing the first image; According to the single camera optimization metric, the initial rotation angle and initial position of each camera are optimized.

7. The method according to claim 6, characterized in that Determining the single-camera optimization measurement index according to the projected road features includes: The width and angle of the projected road features, the positional relationship between the road features, and whether the road features are straight lines are used as single-camera optimization metrics.

8. The method according to claim 7, characterized in that The determining of the single-camera optimization measurement index according to the projected road features also includes: Determining a first displacement standard value of a road feature according to the mileage of the vehicle; The displacement of the projected road feature is determined according to the projected road feature, and the difference between the first displacement standard value and the displacement of the projected road feature is calculated as a single camera optimization measurement indicator.

9. The method according to claim 1, characterized in that: The step of obtaining the deviation value corresponding to the same road feature after splicing as a global optimization measurement indicator also includes: Acquire the same road features in images captured by adjacent cameras; The width and angle deviation values ​​of the same road feature after splicing are calculated as global optimization metrics.

10. A multi-camera device based on road features, characterized in that: The device comprises: An installation position determination module, used to determine the installation position of each camera relative to the vehicle; A first image acquisition module, used for acquiring a first image of the environmental road condition through each camera; A vehicle mileage acquisition module is used to acquire the vehicle mileage; a visual intersection determination module, used to identify road features in the first image, and further identify visual intersections in the road features; An initial rotation angle determination module, used to determine the initial rotation angle of each camera according to the visual intersection point; An initial position determination module, used to determine the initial position of the camera relative to the vehicle according to the installation position; The single camera optimization module is used to optimize the camera extrinsic parameters of each camera according to the initial rotation angle and initial position of each camera; The global optimization module is used to perform global optimization based on the optimized external parameters of each camera and the vehicle's mileage to adjust the rotation angle and initial position of each camera; The global optimization module includes: A stitching unit, used for stitching the first images captured by each camera; A global optimization measurement index acquisition unit is used to obtain the deviation value corresponding to the same road feature after splicing as a global optimization measurement index; A global optimization unit, configured to optimize the initial rotation angle and initial position of each camera according to the global optimization measurement index; The global optimization measurement index acquisition unit includes: A second displacement standard value determining unit, configured to determine a second displacement standard value of a road feature according to the mileage of the vehicle; An actual displacement determination unit, used to determine an actual displacement corresponding to a road feature; The global optimization measurement index determination unit is used to calculate the difference between the second displacement standard value and the actual displacement as the global optimization measurement index.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.