Congestion following method, system, terminal and storage medium based on surround view
Through visual perception and Kalman filtering technology based on the surround view system, the accuracy problem of distance and motion information measurement between vehicles is solved, effective judgment and driving trajectory control of blocked vehicles are achieved, driving efficiency and system accuracy are improved, and alleviation of Traffic jam situation.
Patent Information
- Application Number
- CN201910795653.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In traffic jam conditions such as highways and urban expressways, existing technology is difficult to quickly and accurately measure the distance and movement information between vehicles, resulting in low efficiency of vehicle collision warning functions and difficulty in effectively alleviating traffic jams.
Using a visual perception method based on the front, left and right three-way surround view system, through the target detection algorithm and Kalman filter technology, the position and motion information of the blocked vehicle are judged, and error correction and fitting is performed to ensure the planning of the vehicle's driving trajectory and speed. and control to avoid collisions and improve driving efficiency.
It achieves accurate judgment of distance and motion information between vehicles, reduces collision risks, improves driving efficiency, and reduces reprojection errors through error correction fitting, improving the accuracy and reliability of the system.
Smart Images

Figure CN110555402B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile electronic technology, and in particular to a method, system, terminal and storage medium for following a vehicle in a congestion situation based on surround vision. Background Art
[0002] The measurement of vehicle-to-vehicle distance provides extremely important information for inter-vehicle communication on the road or for realizing automatic / assisted driving. Almost all types of vehicle warnings require vehicle ranging as a key input parameter. For example, the lowest level of lane departure warning requires an accuracy of less than 10 cm to calculate the distance from the vehicle's wheels to the inner and outer edges of the lane line. More advanced functions such as vehicle collision warnings require real-time and rapid calculation of the distance from the vehicle to surrounding vehicles.
[0003] Therefore, we propose a congestion following method, system, terminal and storage medium based on surround view. Summary of the invention
[0004] In order to solve the above-mentioned and other potential technical problems, the present invention provides a method, system, terminal and storage medium for following vehicles in traffic jams based on surround vision. The Traffic Jam Pilot (TJP) function developed for vehicles in traffic jam conditions such as highways and urban expressways uses visual perception based on a three-way surround vision system of front, left and right to judge the position and motion information of vehicles cutting in, so as to plan and control the driving trajectory and speed of the vehicle, avoid vehicle collisions, alleviate traffic jams and improve driving efficiency.
[0005] A congestion following method based on surround view, comprising:
[0006] S01: Input the surround view image collected by the vehicle, and use the target detection algorithm to detect the target vehicle and the wheels of each target vehicle in the image;
[0007] S02: determining the subordinate relationship between the target vehicle and the wheel, and matching the target vehicle and the wheel using a detection method or other registration scheme;
[0008] S03: For the matched target vehicles and wheels, a consistent ID is given to the same target vehicle in a continuous time series;
[0009] S04: With the detection frame information of the wheel in step S01, the position of the contact point of the wheel in the image coordinate system can be obtained, and the position of the target vehicle relative to the host vehicle can be obtained.
[0010] Furthermore, the surround view image collected by the input vehicle in step S01 is collected by collecting data from at least two cameras, fusing the two camera data to form a complete surround view image, and then using the surround view image to detect the target vehicle and the wheels of each target vehicle.
[0011] Furthermore, in step S01, when collecting data from at least two cameras and fusing the two camera data to form a complete surround view image, the two camera data are marked with a unified time point with a timestamp to ensure consistency in the time point of the images captured by the two fused cameras.
[0012] Furthermore, in step S02, the subordinate relationship between the target vehicle and the wheel is determined, and the vehicle and the wheel are matched using an instance-level detection method or other registration scheme. There are three cases as follows:
[0013] 1. The target vehicle matches the front wheels successfully;
[0014] 2. The target vehicle matches the rear wheels successfully;
[0015] 3. The target vehicle is successfully matched with both the front and rear wheels;
[0016] In the case where only a single wheel is matched successfully, the position of the other wheel can be predicted using Kalman filtering.
[0017] Furthermore, the method further includes step S05: acquiring the touchdown point information of the target vehicle, projecting it into the physical coordinate system, performing error correction fitting, and then obtaining the position of the target vehicle relative to the host vehicle.
[0018] Furthermore, the error correction fitting in step S05 serves to recalibrate and reduce the reprojection error, including the error caused by the optical center offset, the barrel distortion of the fisheye image, etc.
[0019] Furthermore, the error correction fitting in step S05 includes but is not limited to two methods:
[0020] The input is the image coordinates, and the output fitting target is expressed as the difference between the physical true value projected onto the image and the input image coordinates.
[0021] bThe input is image coordinates, and the output fitting target is expressed as the difference between the physical true value and the projection of the input image coordinates to the world coordinates.
[0022] Furthermore, the error correction fitting includes but is not limited to a first fitting, a second fitting and verification; the first fitting is a rough fitting; the second fitting is a fine fitting, and the verification step is used to verify the fitting accuracy of the rough fitting and / or the fine fitting.
[0023] Furthermore, the first fitting takes the vehicle coordinate system as the origin, and the image coordinates and physical coordinates with calibration features captured by the camera as references, to find a fitting method for the coordinate relationship error between the vehicle head origin and the calibration features, and to determine the coordinate relationship error between the vehicle head origin and the calibration features, so as to correct the fitting parameters.
[0024] Furthermore, the second fitting is performed by using the first fitting method again every time the vehicle moves a preset distance from the current position.
[0025] Furthermore, the specific implementation method of the second fitting is to drive the vehicle forward, left and right by 10 cm respectively in the environment of the calibration features, collect images after the movement, and use the image coordinates and physical groups with the calibration features collected by the camera as a reference to find the fitting method of the vehicle head origin and the calibration feature error, determine the coordinate relationship error between the vehicle head origin and the calibration feature, and thereby correct the fitting parameters to obtain the fitting data within the preset range.
[0026] Furthermore, the verification step includes the verification of the correctness of the labeled data and the verification of the correctness of the projection error fitting surface.
[0027] Furthermore, the correctness verification of the annotation data includes: generating a file for fitting error and an error analysis file in the vehicle-mounted system, and when the error value in the error analysis file is greater than 1 to 4 times of a preset value, checking whether the corresponding annotation is incorrect.
[0028] Furthermore, the correctness verification of the projection error fitting surface includes:
[0029] S0501: Checkerboard data verification;
[0030] S0502: RTK true value data verification;
[0031] S0503: The detection points on the image and the manually marked grounding points are respectively passed through the fitting surface, and then the difference is calculated to see the error.
[0032] As a preferred embodiment, the image coordinates of the real points and the fitting points in the image are marked, and then projected to the world coordinates, and then the error is calculated. The point near the rear of the vehicle is the fitting point, and the point near the front of the vehicle is the real grounding point.
[0033] Furthermore, the method further comprises step S051: performing region of interest (ROI) filtering on the target vehicle touchdown point information. The ROI range is relatively large in order to give a certain reaction time to the subsequent Kalman filtering process.
[0034] Furthermore, the method further includes step S052: retaining the grounding points within the ROI range of the target vehicle, that is, obtaining the corresponding grounding point information of the retained target vehicle, and discarding the grounding points outside the ROI range of the target vehicle.
[0035] Furthermore, the method further includes step S06: performing Kalman filtering on the target vehicle according to the ReID and the contact point information of the target vehicle to obtain the speed, the heading angle and the position information of the wheel contact point of the target vehicle.
[0036] Furthermore, the heading angle is calculated based on the position of the rear wheels of the target vehicle, and then ROI filtering is performed on the above information. At this time, the ROI area is set to be approximately one-half of the ROI range in step S03.
[0037] Furthermore, the information within the ROI range is the final output result; and the targets outside the ROI range are discarded.
[0038] Furthermore, the method also includes step S07, outputting target vehicle information including but not limited to speed, heading angle and the position of the wheel contact point. The remaining information of the target vehicle can be completed according to the heading angle and the contact point positions of the front and rear wheels to obtain the position coordinates of the complete target vehicle.
[0039] As described above, the present invention has the following beneficial effects:
[0040] 1) By detecting the wheels and obtaining the contact point information of the wheels, the movement information of the neighboring vehicles can be accurately determined.
[0041] 2) The instance-level detection method is used to match the vehicle and the wheel, which can accurately determine the subordinate relationship between the vehicle and the wheel, and facilitate the implementation of the vehicle ReID function.
[0042] 3) Use projection error fitting recalibration to reduce the reprojection error, including errors caused by optical center offset, barrel distortion of fisheye image, etc.
[0043] 4) The projection error fitting is carried out through rough fitting, fine fitting and verification to ensure the accuracy of the fitting. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0045] Figure 1 Shown is a flow chart of the present invention.
[0046] Figure 2 Shown is a flow chart of another embodiment of the present invention.
[0047] Figure 3 Shown is a flow chart of the target vehicle and vehicle matching of the present invention.
[0048] Figure 4 Shown is a flow chart of the error correction fitting and region of interest filtering of the present invention.
[0049] Figure 5 Shown is a schematic diagram of the contact point between the lower edge of the target vehicle of the present invention and the ground and the contact point after error fitting.
[0050] Figure 6 It is a schematic diagram showing the contact point between the lower edge of the target vehicle and the ground before error fitting in the present invention.
[0051] Figure 7 It is a schematic diagram showing the error fitting between the contact point between the lower edge of the target vehicle and the ground according to the present invention.
[0052] Figure 8 Shown is a schematic diagram of another embodiment of the present invention before error fitting between the contact point between the lower edge of the target vehicle and the ground.
[0053] Fig. 9 It is a schematic diagram showing the error fitting between the contact point between the lower edge of the target vehicle and the ground in another embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0055] It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change of the proportion relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effects and purposes that can be achieved by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. The change or adjustment of their relative relationship should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.
[0056] See also Figures 1 to 9 ,
[0057] A congestion following method based on surround view, comprising:
[0058] S01: Input the surround view image collected by the vehicle, and use the target detection algorithm to detect the target vehicle and the wheels of each target vehicle in the image;
[0059] S02: determining the subordinate relationship between the target vehicle and the wheel, and matching the target vehicle and the wheel using a detection method or other registration scheme;
[0060] S03: For the matched target vehicles and wheels, a consistent ID is given to the same target vehicle in a continuous time series;
[0061] S04: With the detection frame information of the wheel in step S01, the position of the contact point of the wheel in the image coordinate system can be obtained, and the position of the target vehicle relative to the host vehicle can be obtained.
[0062] As a preferred embodiment, the surround view image collected by the input vehicle in step S01 collects data from at least two cameras, fuses the two camera data to form a complete surround view image, and then uses the surround view image to detect the target vehicle and the wheels of each target vehicle.
[0063] As a preferred embodiment, in step S01, at least two camera data are collected, and when the two camera data are fused to form a complete surround view image, the two camera data are marked with a unified time point with a timestamp to ensure consistency in the time point of the images captured by the fused two cameras.
[0064] As a preferred embodiment, in step S02, the subordinate relationship between the target vehicle and the wheel is determined, and the vehicle and the wheel are matched using an instance-level detection method or other registration scheme. There are three cases as follows:
[0065] 1. The target vehicle matches the front wheels successfully;
[0066] 2. The target vehicle matches the rear wheels successfully;
[0067] 3. The target vehicle is successfully matched with both the front and rear wheels;
[0068] In the case where only a single wheel is matched successfully, the position of the other wheel can be predicted using Kalman filtering.
[0069] As a preferred embodiment, the method further includes step S05: acquiring the touchdown point information of the target vehicle, projecting it into the physical coordinate system, performing error correction fitting, and then obtaining the position of the target vehicle relative to the host vehicle.
[0070] As a preferred embodiment, the role of the error correction fitting in step S05 is to recalibrate and reduce the error of reprojection, including errors caused by optical center offset, barrel distortion of fisheye image, etc.
[0071] As a preferred embodiment, the error correction fitting in step S05 includes but is not limited to two methods:
[0072] The input is the image coordinates, and the output fitting target is expressed as the difference between the physical true value projected onto the image and the input image coordinates.
[0073] bThe input is image coordinates, and the output fitting target is expressed as the difference between the physical true value and the projection of the input image coordinates to the world coordinates.
[0074] As a preferred embodiment, the error correction fitting includes but is not limited to a first fitting, a second fitting and verification; the first fitting is a rough fitting; the second fitting is a fine fitting, and the verification step is used to verify the fitting accuracy of the rough fitting and / or fine fitting.
[0075] As a preferred embodiment, the first fitting takes the vehicle coordinate system as the origin, and the image coordinates and physical coordinates with calibration features captured by the camera as reference, to find a fitting method for the coordinate relationship error between the vehicle head origin and the calibration features, and determine the coordinate relationship error between the vehicle head origin and the calibration features, so as to correct the fitting parameters.
[0076] As a preferred embodiment, the second fitting is performed by using the first fitting method again every time the vehicle moves a preset distance from the current position.
[0077] As a preferred embodiment, the specific implementation method of the second fitting is to drive the vehicle forward, left and right for 10 cm respectively in the environment of calibration features, collect images after movement, and use the image coordinates and physical groups with calibration features collected by the camera as reference to find the fitting method of the vehicle head origin and the calibration feature error, determine the coordinate relationship error between the vehicle head origin and the calibration feature, and thereby correct the fitting parameters to obtain fitting data within a preset range.
[0078] As a preferred embodiment, the verification step includes the verification of the correctness of the labeled data and the verification of the correctness of the projection error fitting surface.
[0079] As a preferred embodiment, the correctness verification of the annotation data includes: generating a file for fitting error and an error analysis file in the vehicle system, and when the error value in the error analysis file is greater than 1 to 4 times the preset value, checking whether the corresponding annotation is wrong.
[0080] As a preferred embodiment, the correctness verification of the projection error fitting surface includes:
[0081] S0501: Checkerboard data verification;
[0082] S0502: RTK true value data verification;
[0083] S0503: The detection points on the image and the manually marked grounding points are respectively passed through the fitting surface, and then the difference is calculated to see the error.
[0084] As a preferred embodiment, the image coordinates of the real points and the fitting points in the image are marked, and then projected to the world coordinates, and then the error is calculated. The point near the rear of the vehicle is the fitting point, and the point near the front of the vehicle is the real grounding point.
[0085] As a preferred embodiment, the method further includes step S051: performing region of interest (ROI) filtering on the target vehicle touchdown point information. The ROI range is relatively large in order to give a certain reaction time to the subsequent Kalman filtering process.
[0086] As a preferred embodiment, the method further includes step S052: retaining the grounding points within the ROI range of the target vehicle, that is, obtaining the corresponding grounding point information of the retained target vehicle, and discarding the grounding points outside the ROI range of the target vehicle.
[0087] As a preferred embodiment, the method further includes step S06: performing Kalman filtering on the target vehicle according to the ReID and contact point information of the target vehicle to obtain the speed, heading angle and position information of the wheel contact point of the target vehicle.
[0088] As a preferred embodiment, the heading angle is calculated based on the position of the rear wheels of the target vehicle, and then the above information is subjected to ROI filtering. At this time, the ROI area is set to be approximately one-half of the ROI range in step S03.
[0089] As a preferred embodiment, the information within the ROI range is the final output result; and the targets outside the ROI range are discarded.
[0090] As a preferred embodiment, step S07 is also included, outputting target vehicle information including but not limited to speed, heading angle and the position of the wheel contact point. The remaining information of the target vehicle can be completed according to the heading angle and the contact point positions of the front and rear wheels to obtain the position coordinates of the complete target vehicle.
[0091] As a preferred embodiment, this embodiment also provides a terminal device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack-mounted cloud, blade cloud, tower cloud or cabinet cloud (including an independent cloud, or a cloud cluster composed of multiple clouds) that can execute programs. The terminal device of this embodiment includes at least but is not limited to: a memory and a processor that can communicate with each other through a system bus. It should be pointed out that the terminal device has component memory and processor, but it should be understood that it is not required to implement all the components shown, and the congestion following system based on surround view can be replaced to implement more or fewer components.
[0092] As a preferred embodiment, the memory (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the computer device. Of course, the memory may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory is generally used to store the operating system and various application software installed on the computer device, such as the program code of the congestion following method based on surround view in the embodiment. In addition, the memory may also be used to temporarily store various types of data that have been output or are to be output.
[0093] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a cloud, an App application store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. The computer-readable storage medium of this embodiment is a program code of a method for following a vehicle in congestion based on surround vision, and when executed by a processor, a code of a method for following a vehicle in congestion based on surround vision is realized.
[0094] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for following a vehicle in congestion based on surround view, characterized in that: The following steps are involved: S01: Input the surround view image collected by the vehicle, and use the target detection algorithm to detect the target vehicle and the wheels of each target vehicle in the image; S02: Determine the subordinate relationship between the target vehicle and the wheels, and use a detection method or other registration scheme to match the target vehicle and the wheels; there are three situations: A. The target vehicle successfully matches the front wheel; B. The target vehicle successfully matches the rear wheel; C. The target vehicle successfully matches both the front and rear wheels; among them, in the case of successful matching with only a single wheel, the position of the other wheel can be predicted later using Kalman filtering; S03: For the matched target vehicles and wheels, a consistent ID is given to the same target vehicle in a continuous time series; S04: Using the wheel detection frame information in step S01, the position of the wheel's contact point in the image coordinate system can be obtained, and the position of the target vehicle relative to the host vehicle can be obtained; S05: Obtain the contact point information of the target vehicle, project it into the physical coordinate system, perform error correction fitting, and then obtain the position of the target vehicle relative to the vehicle, so as to accurately determine the motion information of the neighboring vehicle based on the contact point information of the wheels; wherein, The error correction fitting includes but is not limited to a first fitting and a second fitting; the first fitting is a rough fitting; the second fitting is a fine fitting; The first fitting method uses the vehicle coordinate system as the origin, the image coordinates and physical coordinates with calibration features collected by the camera as reference, finds a fitting method for the coordinate relationship error between the vehicle head origin and the calibration features, determines the coordinate relationship error between the vehicle head origin and the calibration features, and corrects the fitting parameters accordingly; The second fitting is performed by using the first fitting method again every time the vehicle moves a preset distance from the current position.
2. The method for following a vehicle in congestion based on surround view according to claim 1, characterized in that: The surround view image collected by the input vehicle in step S01 is collected by collecting data from at least two cameras, fusing the two camera data to form a complete surround view image, and then using the surround view image to detect the target vehicle and the wheels of each target vehicle.
3. The method for following a vehicle in congestion based on surround view according to claim 1, characterized in that: The role of error correction fitting is to recalibrate and reduce the error of reprojection, including errors caused by optical center offset, barrel distortion of fisheye image, etc.
4. The method for following a vehicle in congestion based on surround view according to claim 3, characterized in that: The error correction fitting in step S05 includes but is not limited to two methods: aThe input is the image coordinates, and the output fitting target is expressed as the difference between the physical true value projected onto the image and the input image coordinates; bThe input is image coordinates, and the output fitting target is expressed as the difference between the physical true value and the projection of the input image coordinates to the world coordinates.
5. The method for following a vehicle in a traffic jam based on surround view according to claim 4, characterized in that: The error correction fitting also includes verification; the verification step is used to verify the fitting accuracy of the rough fitting and / or the fine fitting.
6. The method for following a vehicle in congestion based on surround view according to claim 5, characterized in that: The verification step includes the verification of the correctness of the labeled data and the verification of the correctness of the projection error fitting surface.
7. The method for following a vehicle in congestion based on surround view according to claim 6, characterized in that: The correctness verification of the projection error fitting surface includes: S0501: Checkerboard data verification; S0502: RTK true value data verification; S0503: The detection points on the image and the manually marked grounding points are respectively passed through the fitting surface, and then the difference is calculated to see the error.
8. A mobile terminal, characterized in that: It can be a vehicle-mounted terminal or a mobile phone terminal, which is a vehicle-mounted terminal or a mobile phone mobile terminal that executes the congestion following method based on surround view described in claims 1 to 7 above.
Citation Information
Patent Citations
Vehicle-mounted inertial navigation error correction method, vehicle-mounted inertial navigation error correction apparatus, medium and equipment
CN107389088A
Vehicle anti-collision method based on wheel detection
CN110065494A
