Vehicle distance measurement method and device, storage medium and electronic equipment
Patent Information
- Application Number
- CN202411055969.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-02
Smart Images

Figure CN118584464B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving, and more specifically, to a vehicle ranging method and device, a storage medium, and an electronic device. Background Art
[0002] In the intelligent driving system, the perception system, as the foundation of intelligent driving, provides important vehicle body information and road environment information for the intelligent driving system to make more accurate decisions and implement more precise control.
[0003] For example, the above perception system can be used to determine whether the current road condition is normal or complex (bumpy, ramp, etc.), the vehicle driving condition, and other particularly important parts in the field of autonomous driving. Among them, obtaining the distance between the vehicle and surrounding vehicles through the above perception system is a key information in controlling the driving process of the vehicle.
[0004] In the existing technology, commonly used distance measurement methods include ultrasonic distance measurement: by measuring the time difference between transmission and reception, the distance can be calculated; monocular distance measurement: using a single camera to measure the distance between the object and the camera, etc. Among them, monocular distance measurement usually relies on image processing and machine learning algorithms to estimate the distance, and the camera filter relies on the principle of pinhole imaging to obtain information by integrating the height and width observations of the target.
[0005] However, in actual traffic scenarios, the road environment such as bumpy roads and continuous ramps is complex and changeable, which causes the pitch angles of the ego vehicle and the target vehicle to change, resulting in large visual ranging errors, thus causing the technical problem of inaccurate vehicle ranging results.
[0006] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present application provide a vehicle ranging method and device, a storage medium and an electronic device to at least solve the technical problem of inaccurate vehicle ranging results in the related art.
[0008] According to one aspect of an embodiment of the present application, a vehicle ranging method is provided, comprising: when a vehicle is in a bumpy driving state, determining a bump ranging compensation model that matches the position relationship according to the position relationship between the vehicle and a target vehicle, wherein the ranging compensation model is a geometric model determined based on the vehicle and the target vehicle; obtaining a bump-compensated vehicle distance between the vehicle and the target vehicle according to the bump ranging compensation model; when a verification result of the bump-compensated vehicle distance meets a vehicle distance verification condition, determining the bump-compensated vehicle distance as a target vehicle distance between the vehicle and the target vehicle; when a verification result of the bump-compensated vehicle distance does not meet the vehicle distance verification condition, obtaining a slope-compensated vehicle distance between the vehicle and the target vehicle according to the slope ranging compensation model; and using the slope-compensated vehicle distance as the target vehicle distance between the vehicle and the target vehicle.
[0009] According to another aspect of an embodiment of the present application, a vehicle ranging device is also provided, including: a first processing unit, used to determine a bump ranging compensation model that matches the position relationship according to the position relationship between the own vehicle and the target vehicle when the own vehicle is in a bumpy driving state, wherein the bump ranging compensation model is a geometric model determined based on the own vehicle and the target vehicle; a first acquisition unit, used to acquire the bump-compensated vehicle distance between the own vehicle and the target vehicle according to the bump ranging compensation model; a second processing unit, used to determine the bump-compensated vehicle distance as the target vehicle distance between the own vehicle and the target vehicle when the verification result of the bump-compensated vehicle distance meets the vehicle distance verification condition; and a third processing unit, used to acquire the slope-compensated vehicle distance between the own vehicle and the target vehicle according to the slope ranging compensation model when the verification result of the bump-compensated vehicle distance does not meet the vehicle distance verification condition, and use the slope-compensated vehicle distance as the target vehicle distance between the own vehicle and the target vehicle.
[0010] Optionally, the above-mentioned device also includes: a second acquisition unit, which is used to obtain a compensated vehicle distance difference between a first bump-compensated vehicle distance corresponding to a first time frame and a second bump-compensated vehicle distance corresponding to a second time frame after obtaining the bump-compensated vehicle distance between the self-vehicle and the target vehicle according to the bump-ranging compensation model, and determine the first-order derivative of the compensated vehicle distance difference as a reference target vehicle speed of the target vehicle between the first time frame and the second time frame; a fourth processing unit, which is used to determine a reference target vehicle displacement corresponding to the target vehicle between the second time frame and the third time frame according to the reference target vehicle speed, wherein the first time frame, the second time frame and the third time frame are three consecutive sampling time frames, and the sampling time frame corresponds to the sampling time of the image sensor on the self-vehicle; a fifth processing unit a third acquisition unit, for determining a third reference vehicle distance between the self-vehicle and the target vehicle corresponding to the third time frame according to the displacement of the reference target vehicle; a third acquisition unit, for acquiring a compensation error between the third bump compensation vehicle distance and the third reference vehicle distance when the third bump compensation vehicle distance corresponding to the third time frame is acquired; a sixth processing unit, for determining that a verification result of the bump compensation vehicle distance does not meet a vehicle distance verification condition when the compensation errors corresponding to N consecutive time frames are all greater than or equal to a target threshold, wherein N is an integer greater than or equal to 1; a seventh processing unit, for determining that a verification result of the bump compensation vehicle distance meets a vehicle distance verification condition when at least one of the compensation errors corresponding to N consecutive time frames is less than the target threshold.
[0011] Optionally, the first processing unit 2702 includes: a first acquisition module, used to acquire a road image currently collected by the ego vehicle, and a first reference vehicle distance between the ego vehicle and the target vehicle detected by the ego vehicle, wherein the road image includes a target image area matching the target vehicle; a first processing module, used to determine a bump ranging compensation model based on a first geometric object corresponding to the ego vehicle located on the target slope, a second geometric object corresponding to the target vehicle, a target point on the first geometric object, and a first target vertex on the second geometric object matching the vehicle tail frame area when the first reference vehicle distance is less than or equal to the target distance, wherein the first target vertex is used to indicate a lower border of the vehicle tail frame area of the target vehicle in the road image; a second acquisition module, used to acquire a taillight description parameter corresponding to the target vehicle when the first reference vehicle distance is greater than the target distance, wherein the taillight description parameter is used Indicates the enabled state of the taillights of the target vehicle; a second processing module is used to determine the bump ranging compensation model according to the first geometric object, the second geometric object, the target point on the first geometric object, and the second target vertex on the second geometric object that matches the rear area, etc., located on the target slope, when the taillight description parameters indicate that the taillights of the target vehicle are in the enabled state, wherein the second target vertex is used to indicate the lower border of the taillight area of the target vehicle in the road image; a third processing module is used to determine the bump ranging compensation model according to the first geometric object, the second geometric object, the target point on the first geometric object, and the third target vertex on the second geometric object that matches the wheel contact point, located on the target slope, when the taillight description parameters indicate that the taillights of the target vehicle are in the unenabled state, wherein the third target vertex is used to indicate the wheel contact point of the target vehicle in the road image.
[0012] Optionally, the above-mentioned first acquisition unit 2704 includes: a third acquisition module, used to acquire a first reference vehicle distance between the self-vehicle and the target vehicle detected by the self-vehicle image, and determine a reference coefficient according to the distance interval corresponding to the first reference vehicle distance, wherein the reference coefficient and the distance interval have a positive correlation; a fourth processing module, used to determine a second reference vehicle distance based on a bump ranging compensation model that matches the positional relationship; a fifth processing module, used to determine a first ratio between the first reference vehicle distance and the reference coefficient as a first weight coefficient that matches the first reference vehicle distance, and to determine a difference between 1 and the first ratio as a second weight coefficient that matches the second reference vehicle distance; a sixth processing module, used to determine a weighted sum of the first reference vehicle distance, the second reference vehicle distance, the first weight coefficient that matches the first reference vehicle distance, and the second weight coefficient that matches the second reference vehicle distance as the bump compensation vehicle distance.
[0013] Optionally, the above-mentioned device also includes: a fourth acquisition unit, which is used to acquire a road image sequence collected by the self-vehicle before determining a bump ranging compensation model matching the position relationship according to the position relationship between the self-vehicle and the target vehicle, wherein the road image sequence includes road images respectively collected by the self-vehicle in multiple continuous time frames; an eighth processing unit, which is used to determine lane line vanishing points corresponding to the multiple road images respectively according to the lane line objects respectively included in the road images when the road image includes multiple lane line objects, wherein the lane line vanishing points are determined according to the object pointing directions of the multiple lane line objects in the road image; a fifth acquisition unit, which is used to acquire image position relationship features of the multiple lane line vanishing points according to the image positions of the multiple lane line vanishing points; a ninth processing unit, which is used to determine that the self-vehicle is in a bumpy driving state when the image position relationship features meet the first image condition; a tenth processing unit, which is used to determine that the self-vehicle is in a slope driving state when the image position relationship features meet the second image condition; acquire the slope-compensated vehicle distance between the self-vehicle and the target vehicle according to the slope ranging compensation model; and use the slope-compensated vehicle distance as the target vehicle distance between the self-vehicle and the target vehicle.
[0014] Optionally, the eighth processing unit includes: a seventh processing module, used to determine the calibrated vanishing points corresponding to each of the multiple road images; a fourth acquisition module, used to sequentially acquire the image position differences between the calibrated vanishing points in the multiple road images and the corresponding lane line vanishing points; an eighth processing module, used to determine that the ego-vehicle object is currently in a bumpy state when the image position difference corresponding to each of M consecutive road images is greater than or equal to a first target threshold, wherein M is an integer greater than 1; and a ninth processing module, used to determine that the ego-vehicle is in a slope driving state when the image position difference corresponding to each of M consecutive road images is greater than or equal to a second target threshold, and the variance of the difference of the M consecutive image position differences is less than or equal to a third target threshold, wherein the first target threshold is greater than the second target threshold, and the second target threshold is greater than 0.
[0015] Optionally, the above-mentioned device also includes: a fifth acquisition unit, which is used to acquire a longitudinal acceleration sequence and a self-vehicle acceleration sequence of the self-vehicle when the road image does not include multiple lane line objects, wherein the longitudinal acceleration sequence includes longitudinal accelerations corresponding to multiple continuous time frames, the self-vehicle acceleration sequence includes self-vehicle accelerations corresponding to multiple continuous time frames, the longitudinal acceleration is the acceleration of the self-vehicle in the driving direction, and the self-vehicle acceleration is the actual acceleration of the self-vehicle; a sixth acquisition unit, which is used to acquire a target longitudinal acceleration corresponding to the target time frame from the longitudinal acceleration sequence, and acquire a target self-vehicle acceleration corresponding to the target time frame from the self-vehicle acceleration sequence; an eleventh processing unit, which is used to determine a target slope angle of the self-vehicle object according to an acceleration angle between the target longitudinal acceleration and the target self-vehicle acceleration; a twelfth processing unit, which is used to determine a slope angle sequence according to the target slope angles corresponding to multiple continuous time frames; a thirteenth processing unit, which is used to determine that the self-vehicle object is currently in a bumpy state when L consecutive target slope angles in the slope angle sequence are all greater than or equal to the target angle, wherein L is an integer greater than 1.
[0016] Optionally, the third processing unit 2708 includes: a fifth acquisition module, used to acquire a road image sequence collected by the ego vehicle; a tenth processing module, used to determine a first slope value of a first slope where the ego vehicle is currently located, and a second slope value of a second slope where the target vehicle is located, according to the road image sequence; and an eleventh processing module, used to determine a slope-compensated vehicle distance between the ego vehicle and the target vehicle, according to the first slope value, the second slope value, and the geometric position relationship between the ego vehicle and the target vehicle.
[0017] Optionally, the tenth processing module comprises: a first processing submodule, for determining a surrounding vehicle that meets the driving condition from a plurality of vehicles included in the road image when the road image in the road image sequence collected by the ego vehicle does not include a lane line object that meets the image quality condition, wherein the surrounding vehicle is a vehicle that is in an adjacent lane and travels to the first ramp before the ego vehicle; a first acquisition submodule, for acquiring P surrounding vehicle longitudinal distances respectively according to P road images in the road image sequence, wherein the P surrounding vehicle longitudinal distances correspond to the P road images one-to-one, the surrounding vehicle longitudinal distance is the vehicle distance between the surrounding vehicle and the ego vehicle along the driving direction, and P is an integer greater than 1; a second processing submodule, The method is used to estimate the speed of the surrounding vehicle in P time frames by using the P surrounding vehicle longitudinal distances, obtain P reference surrounding vehicle speeds corresponding to the P time frames, and determine the P reference surrounding vehicle longitudinal distances between the vehicle and the surrounding vehicle by using the P reference surrounding vehicle speeds; the second acquisition submodule is used to respectively obtain the first difference between the P surrounding vehicle longitudinal distances and the P reference surrounding vehicle longitudinal distances, and when the first difference between the i-th surrounding vehicle longitudinal distance and the i-th reference surrounding vehicle longitudinal distance is greater than a first threshold, determine the first slope value according to the i-th surrounding vehicle longitudinal distance, the i-th reference surrounding vehicle speed and the i-th reference surrounding vehicle longitudinal distance, wherein i is an integer greater than or equal to 1 and less than P.
[0018] Optionally, the above-mentioned tenth processing module includes: a third acquisition sub-module, used to obtain a set of feature points indicating lane line objects in a road image when the road image includes lane line objects that meet image quality conditions; a fourth acquisition sub-module, used to obtain a feature variation coefficient of a feature point set based on feature point sets that match multiple road images respectively; and a third processing sub-module, used to determine a first slope value based on the feature variation coefficient.
[0019] Optionally, the tenth processing module includes: a fifth acquisition submodule, used to acquire Q target vehicle longitudinal distances respectively according to Q road images in the road image sequence, wherein the Q target vehicle longitudinal distances correspond to the Q road images one by one, the target vehicle longitudinal distance is the vehicle distance between the target vehicle and the own vehicle along the driving direction, and Q is an integer greater than 1; a fourth processing submodule, used to estimate the speed of the target vehicle in Q time frames using the Q target vehicle longitudinal distances, obtain Q reference target vehicle speeds corresponding to the Q time frames respectively, and use the Q reference target vehicle speeds to respectively determine Q reference target vehicle longitudinal distances between the own vehicle and the target vehicle; a sixth acquisition submodule, used to respectively acquire the second difference between the Q target vehicle longitudinal distances and the Q reference target vehicle longitudinal distances, and when the second difference between the jth target vehicle longitudinal distance and the jth reference target vehicle longitudinal distance is greater than the second threshold, determine the second slope value according to the jth target vehicle longitudinal distance, the jth reference target vehicle speed and the jth reference target vehicle longitudinal distance, wherein j is an integer greater than or equal to 1 and less than Q.
[0020] Optionally, the above-mentioned eleventh processing module includes: a fifth processing submodule, used to determine the ramp turning point between the first ramp and the second ramp; a seventh acquisition submodule, used to obtain the current longitudinal distance between the own vehicle and the target vehicle based on the current road image captured in the current time frame, wherein the current longitudinal distance is the distance between the own vehicle and the target vehicle determined according to the focal length of the image acquisition device, the vehicle width length of the target vehicle and the pixel width corresponding to the target vehicle; an eighth acquisition submodule, used to obtain a first ratio between the turning point distance and the cosine value corresponding to the first slope value, and to obtain the distance difference between the current longitudinal distance and the turning point distance, wherein the turning point distance is the distance between the own vehicle in the current time frame and the ramp turning point; a sixth processing submodule, used to sum the first ratio and the second ratio to obtain the slope compensation vehicle distance, wherein the second ratio is the ratio between the distance difference and the cosine value corresponding to the second slope value.
[0021] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned vehicle ranging method when running.
[0022] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the vehicle ranging method as described above.
[0023] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the vehicle ranging method through the computer program.
[0024] Through the above embodiments provided by the present application, when it is determined that the vehicle is in a bumpy driving state, the bump compensation distance between the vehicle and the target vehicle is determined by using the positional relationship between the vehicle and the target vehicle; when the bump compensation distance verification result satisfies the distance verification condition, the bump compensation distance is determined as the target distance between the vehicle and the target vehicle, otherwise the slope compensation distance obtained by the slope distance measurement compensation model is used as the target distance between the vehicle and the target vehicle. In other words, by adaptively selecting a distance measurement scheme that matches the current road condition based on the judgment result of the road condition, the accuracy of the distance measurement result between the vehicle and the target vehicle is improved, thereby solving the technical problem of inaccurate vehicle distance measurement results in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0026] Figure 1 is a schematic diagram of an application environment of an optional vehicle ranging method according to an embodiment of the present application;
[0027] Figure 2 is a flow chart of an optional vehicle ranging method according to an embodiment of the present application;
[0028] Figure 3 is an optional flow chart of determining a target vehicle distance using a ramp vehicle distance compensation model according to an embodiment of the present application;
[0029] Figure 4 is a schematic diagram of an optional self-vehicle and a target vehicle according to an embodiment of the present application;
[0030] Figure 5 is a schematic diagram of an optional distance measurement compensation method under a bumpy working condition according to an embodiment of the present application (I);
[0031] Figure 6 is a schematic diagram (II) of an optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;
[0032] Figure 7 is a schematic diagram of an optional distance measurement compensation method under a bumpy working condition according to an embodiment of the present application (III);
[0033] Figure 8 is a schematic diagram (IV) of an optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;
[0034] Fig. 9 is a schematic diagram of an application scenario of the ranging compensation method under bumpy conditions (I);
[0035] Fig.10 is a schematic diagram of an application scenario of the ranging compensation method under bumpy conditions (II);
[0036] Fig.11 is a schematic diagram of an application scenario of the ranging compensation method under bumpy conditions (III);
[0037] Fig.12 is a schematic diagram of an optional lane vanishing point according to an embodiment of the present application;
[0038] Fig.13 is a schematic diagram of an optional calibration vanishing point according to an embodiment of the present application;
[0039] Fig.14 is a flow chart of a method for determining a bumpy working condition according to an embodiment of the present application;
[0040] Fig.15 is a schematic diagram (IV) of an optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;
[0041] Fig.16 is a schematic diagram of an optional distance measurement compensation method under a slope condition according to an embodiment of the present application (I);
[0042] Fig.17 is a schematic diagram (II) of an optional distance measurement compensation method under a slope condition according to an embodiment of the present application;
[0043] Fig.18 is a schematic diagram of an optional distance measurement compensation method under a slope condition according to an embodiment of the present application (III);
[0044] Fig.19 is a schematic diagram (IV) of an optional distance measurement compensation method under a ramp condition according to an embodiment of the present application;
[0045] Fig. 20 is a schematic diagram (V) of an optional distance measurement compensation method under a ramp condition according to an embodiment of the present application;
[0046] Fig.21 is a schematic diagram of the ego vehicle and the target vehicle under ramp conditions;
[0047] Fig. 22 is a schematic diagram of an application scenario of the ranging compensation method under a ramp condition (I);
[0048] Fig.23 is a schematic diagram of an application scenario of the ranging compensation method under a ramp condition (II);
[0049] Fig.24 is a schematic diagram of an application scenario of the ranging compensation method under a ramp condition (III);
[0050] Fig.25 is an overall flow chart of an optional vehicle ranging method according to an embodiment of the present application;
[0051] Fig.26 is an overall schematic diagram of an optional vehicle ranging method according to an embodiment of the present application;
[0052] Fig. 27 is a schematic diagram of a vehicle distance measuring device according to an embodiment of the present application;
[0053] Fig.28 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0056] According to one aspect of an embodiment of the present application, a method for determining a vehicle bumpy working condition is provided. Optionally, the method for determining a vehicle bumpy working condition can be applied to, but is not limited to, Figure 1In the hardware environment shown. Optionally, the above-mentioned method for determining the vehicle bumpy working condition provided by the present application can be applied to a vehicle terminal. Figure 1 A side view of a vehicle terminal 101 is shown, which can travel on a travel surface 113. The vehicle terminal 101 includes an onboard navigation system 103, a memory 102 storing a digitized road map 104, a space monitoring system 117, a vehicle controller 109, a GPS (Global Positioning System) sensor 110, an HMI (Human / Machine Interface) device 111, and also includes an autonomous controller 112 and a telematics controller 114.
[0057] In one embodiment, the space monitoring system 117 includes one or more space sensors and systems, which are used to monitor the visible area 105 in front of the vehicle terminal 101. The space monitoring system 117 also includes a space monitoring controller 118; the space sensors used to monitor the visible area 105 include a laser radar sensor 106, a radar sensor 107, a camera 108, etc. The space monitoring controller 118 can be used to generate data related to the visible area 105 based on the data input from the space sensor. The space monitoring controller 118 can determine the linear range, relative speed and trajectory of the vehicle terminal 101 based on the input from the space sensor, for example, determine the current speed of the vehicle and the relative speed compared to the front vehicle. The space sensor of the vehicle terminal space monitoring system 117 may include an object positioning sensing device, and the object positioning sensing device may include a range sensor, which can be used to locate the front object such as the front vehicle object.
[0058] The camera 108 is advantageously mounted and positioned on the vehicle terminal 101 in a position that allows capturing an image of the visible area 105, wherein at least a portion of the visible area 105 includes a portion of the travel surface 113 in front of the vehicle terminal 101 and including the trajectory of the vehicle terminal 101. The visible area 105 may also include the surrounding environment. Other cameras may also be used, for example, including a second camera disposed on the rear or side portion of the vehicle terminal 101 to monitor the rear of the vehicle terminal 101 and one of the right or left sides of the vehicle terminal 101.
[0059] The autonomous controller 112 is configured to implement autonomous driving or advanced driver assistance system (ADAS) vehicle terminal functionality. Such functionality may include a vehicle terminal onboard control system capable of providing a certain level of driving automation. Driving automation may include a series of dynamic driving and vehicle terminal operations. Driving automation may include a certain level of automatic control or intervention involving a single vehicle terminal function (e.g., steering, acceleration, and / or braking). For example, the above-mentioned autonomous controller can be used to generate a vehicle driving scenario of a vehicle terminal by performing the following steps:
[0060] S102, when the ego vehicle is in a bumpy driving state, determining a bump odometry compensation model that matches the position relationship according to the position relationship between the ego vehicle and the target vehicle, wherein the bump odometry compensation model is a geometric model determined based on the ego vehicle and the target vehicle;
[0061] S104, obtaining a bump-compensated vehicle distance between the ego vehicle and the target vehicle according to a bump-odometry compensation model;
[0062] S106, when the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition, determining the bump compensation vehicle distance as the target vehicle distance between the own vehicle and the target vehicle;
[0063] S108, when the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, the slope compensation vehicle distance between the own vehicle and the target vehicle is obtained according to the slope distance compensation model, and the slope compensation vehicle distance is used as the target vehicle distance between the own vehicle and the target vehicle.
[0064] The HMI device 111 provides human-machine interaction for the purpose of guiding the operation of the infotainment system, GPS (global positioning system) sensor 110, onboard navigation system 103 and the like, and includes a controller. The HMI device 111 monitors operator requests and provides the operator with status, service and maintenance information of the vehicle terminal system. The HMI device 111 communicates with multiple operator interface devices and / or controls the operation of multiple operator interface devices. The HMI device 111 can also communicate with one or more devices that monitor biometric data associated with the vehicle terminal operator. For simplicity of description, the HMI device 111 is depicted as a single device, but in the embodiments of the system described herein, it can be configured as multiple controllers and associated sensing devices.
[0065] Operator controls may be included in the passenger compartment of the vehicle terminal 101, and may include, by way of non-limiting example, a steering wheel, an accelerator pedal, a brake pedal, and an operator input device, which is an element of the HMI device 111. The operator controls enable a vehicle terminal operator to interact with the operating vehicle terminal 101 and direct the operation of the vehicle terminal 101 to provide passenger transportation.
[0066] The onboard navigation system 103 uses the digitized road map 104 for the purpose of providing navigation support and information to the vehicle terminal operator. The autonomous controller 112 uses the digitized road map 104 for the purpose of controlling the autonomous vehicle terminal operation or ADAS vehicle terminal functions.
[0067] The vehicle terminal 101 may include a telematics controller 114, which includes a wireless telematics communication system capable of communicating outside the vehicle terminal (including communicating with a communication network 115 having wireless and wired communication capabilities). The wireless telematics communication system includes an off-board server 116 capable of short-range wireless communication with a mobile terminal.
[0068] As an optional implementation, Figure 2 As shown, the vehicle distance measurement method can be executed by an electronic device, and the specific steps include:
[0069] S202, when the ego vehicle is in a bumpy driving state, determining a bump odometry compensation model that matches the position relationship according to the position relationship between the ego vehicle and the target vehicle, wherein the bump odometry compensation model is a geometric model determined based on the ego vehicle and the target vehicle;
[0070] S204, obtaining a bump-compensated vehicle distance between the ego vehicle and the target vehicle according to a bump-odometry compensation model;
[0071] S206, when the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition, determining the bump compensation vehicle distance as the target vehicle distance between the own vehicle and the target vehicle;
[0072] S208, when the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, the slope compensation vehicle distance between the own vehicle and the target vehicle is obtained according to the slope distance compensation model, and the slope compensation vehicle distance is used as the target vehicle distance between the own vehicle and the target vehicle.
[0073] Before explaining the above-mentioned vehicle ranging method, the application scenario of the technical solution in the embodiment of the present application is briefly introduced.
[0074] The embodiments of the present application are applicable to vehicle ranging scenarios under complex working conditions, wherein the complex working conditions include but are not limited to bumpy working conditions and slope working conditions. For the two different working conditions, the embodiments of the present application respectively propose corresponding ranging compensation models, and adaptively select the corresponding ranging compensation model by judging the working condition of the ego vehicle in the actual scenario, thereby ensuring the accuracy of the calculated vehicle distance between the ego vehicle and the target vehicle.
[0075] Obviously, the bumpy working condition and the ramp working condition are only examples of a complex working condition and are not intended to limit the same. For ease of understanding, the specific implementation process of the vehicle distance measurement method is described by taking the bumpy working condition and the ramp working condition as examples.
[0076] The following will describe in detail the implementation process of respectively calculating the target vehicle distance using the vehicle distance measurement models under the above two different working conditions in conjunction with specific embodiments.
[0077] Combine the following Figure 3 The overall implementation process of the vehicle distance measurement method is described.
[0078] S302, determining whether the vehicle is in a bumpy driving state;
[0079] If yes, execute step S304; otherwise, execute step S310.
[0080] S304, calculating the bump compensation distance between the ego vehicle and the target vehicle by using a bump ranging compensation model;
[0081] Among them, the bumpy driving state of the vehicle can be referred to Figure 4 As shown, the target vehicle may be, but is not limited to, a vehicle traveling in front of the vehicle, and the distance between the vehicle and the target vehicle may be, but is not limited to, Figure 4 The distance D is shown.
[0082] S306, verifying the bump compensation vehicle distance, and determining whether the verification result satisfies the vehicle distance verification condition;
[0083] If so, execute step S308; otherwise, execute step S310.
[0084] The verification results and vehicle distance verification conditions will be described in detail in the following embodiments.
[0085] S308, determining the bump compensation vehicle distance as the target vehicle distance between the ego vehicle and the target vehicle;
[0086] S310: Calculate the slope-compensated vehicle distance between the ego vehicle and the target vehicle using the slope-compensated vehicle distance, and use the slope-compensated vehicle distance as the target vehicle distance between the ego vehicle and the target vehicle.
[0087] Through the above embodiments provided by the present application, when it is determined that the vehicle is in a bumpy driving state, the bump compensation distance between the vehicle and the target vehicle is determined by using the positional relationship between the vehicle and the target vehicle; when the bump compensation distance verification result satisfies the distance verification condition, the bump compensation distance is determined as the target distance between the vehicle and the target vehicle, otherwise the slope compensation distance obtained by the slope distance measurement compensation model is used as the target distance between the vehicle and the target vehicle. In other words, by adaptively selecting a distance measurement scheme that matches the current road condition based on the judgment result of the road condition, the accuracy of the distance measurement result between the vehicle and the target vehicle is improved, thereby solving the technical problem of inaccurate vehicle distance measurement results in the prior art.
[0088] As an optional example, after obtaining the bump compensation vehicle distance between the vehicle and the target vehicle according to the bump ranging compensation model, the method further includes:
[0089] Obtaining a compensated vehicle distance difference between a first bump compensation vehicle distance corresponding to the first time frame and a second bump compensation vehicle distance corresponding to the second time frame, and determining a first-order derivative of the compensated vehicle distance difference as a reference target vehicle speed of the target vehicle between the first time frame and the second time frame;
[0090] Determine the reference target vehicle displacement corresponding to the target vehicle between the second time frame and the third time frame according to the reference target vehicle speed, wherein the first time frame, the second time frame and the third time frame are three consecutive sampling time frames, and the sampling time frame corresponds to the sampling time of the image sensor on the ego vehicle;
[0091] Determine a third reference vehicle distance between the ego vehicle and the target vehicle corresponding to the third time frame according to the reference target vehicle displacement;
[0092] When a third bump compensation vehicle distance corresponding to the third time frame is obtained, a compensation error between the third bump compensation vehicle distance and a third reference vehicle distance is obtained;
[0093] When the compensation error degrees corresponding to N consecutive time frames are all greater than or equal to the target threshold, it is determined that the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, where N is an integer greater than or equal to 1;
[0094] When at least one of the compensation errors corresponding to the N consecutive time frames is smaller than the target threshold, it is determined that the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition.
[0095] After obtaining the bump-compensated distance between the ego vehicle and the target vehicle using the bump-compensated distance under bumpy conditions, in order to further improve the accuracy of the distance measurement result, it is necessary to determine whether the target vehicle is traveling on a level road when the ego vehicle is in a bumpy driving state. In other words, the distance change of the target vehicle is used to determine whether the target vehicle is traveling on a level road.
[0096] Specifically, the distance 1 between the target vehicle and the own vehicle corresponding to the first time frame after bump compensation and the distance 2 between the target vehicle and the own vehicle corresponding to the second time frame are obtained, and the distance change difference between distance 1 and distance 2 (which can also be understood as the compensated vehicle distance difference) is used to obtain the first-order derivative of the distance change difference to obtain the current speed value v1 of the target vehicle (which can also be understood as the reference target vehicle speed).
[0097] Get the distance d1 between the target vehicle and the self-vehicle calculated by the segmented ranging compensation module in the second time frame, and use this value to predict the distance s1 traveled by the target vehicle in the next time frame (i.e., the third time frame). When the next time frame (i.e., the third time frame) arrives, the distance traveled by the self-vehicle is s0, then according to s1, the distance between the self-vehicle and the target vehicle is calculated as d1-s0+s1; the distance between the target vehicle and the self-vehicle is calculated as d2 using the segmented ranging compensation module. Compare the two.
[0098] exist In the case of , it is determined that the target vehicle is on a relatively horizontal road, that is, the target vehicle distance value given by the segmented distance measurement module is output as the final longitudinal distance. If the distance difference of 5 consecutive frames is greater than 5%, it means that the target vehicle is not on a horizontal road, and the dual-vehicle slope distance measurement compensation module is used to calculate the distance.
[0099] Through the above method, combined with whether the target vehicle is traveling on a level road, and using the change in the target vehicle distance to determine whether the bump compensation vehicle distance verification result meets the vehicle distance verification condition, the accuracy of the distance measurement result is further improved.
[0100] As an optional example, the above-mentioned determining a bump ranging compensation model matching the position relationship according to the position relationship between the ego vehicle and the target vehicle includes:
[0101] Acquire a road image currently collected by the ego vehicle and a first reference vehicle distance between the ego vehicle and the target vehicle detected by the ego vehicle, wherein the road image includes a target image area matching the target vehicle;
[0102] When the first reference vehicle distance is less than or equal to the target distance, a bump ranging compensation model is determined according to a first geometric object corresponding to the ego vehicle and located on the target slope, a second geometric object corresponding to the target vehicle, a target point on the first geometric object, and a first target vertex on the second geometric object that matches the vehicle tail frame area, wherein the first target vertex is used to indicate a lower border of the vehicle tail frame area of the target vehicle in the road image;
[0103] When the first reference vehicle distance is greater than the target distance, obtaining a taillight description parameter corresponding to the target vehicle, wherein the taillight description parameter is used to indicate an activation state of a taillight of the target vehicle;
[0104] When the taillight description parameter indicates that the taillight of the target vehicle is in an enabled state, a bump ranging compensation model is determined according to a first geometric object located on the target slope, a second geometric object, a target point on the first geometric object, and a second target vertex on the second geometric object that matches the rear area of the vehicle, wherein the second target vertex is used to indicate a lower border of the taillight area of the target vehicle in the road image;
[0105] When the taillight description parameters indicate that the taillights of the target vehicle are not enabled, a bump odometry compensation model is determined based on a first geometric object located on a target slope, a second geometric object, a target point on the first geometric object, and a third target vertex on the second geometric object that matches a wheel contact point, wherein the third target vertex is used to indicate a wheel contact point of the target vehicle in a road image.
[0106] Wherein, when the ego vehicle object is currently in a bumpy state, a road image currently collected by the ego vehicle object and a first reference vehicle distance between the ego vehicle object and the target vehicle object detected by the ego vehicle object are obtained. It can be understood that the road image includes a target image area that matches the target vehicle object, and the target image area can be a high-quality image area with clear and complete image information, and the information in the image area can be analyzed to obtain the vehicle distance.
[0107] When the first reference vehicle distance is less than or equal to the target distance, a bump ranging compensation model (referred to as the first ranging compensation model) can be determined based on, but not limited to, a first geometric object corresponding to the ego vehicle located on the target slope, a second geometric object corresponding to the target vehicle, a target point on the first geometric object, and a target vertex on the second geometric object.
[0108] Specifically, the target slope may be, but is not limited to, the slope on which the vehicle is currently traveling; the first geometric object and the second geometric object may be, but are not limited to, objects corresponding to geometric images abstracted from the vehicle object and the target vehicle object after image acquisition; the slope value information corresponding to the calculated first slope of the target slope indicates that the slope angle is in a fluctuating state, and it is determined that the vehicle object is in a bumpy state; Figure 5 As shown, the target point A on the first geometric object is used to indicate the image sensor configured on the vehicle object, such as Figure 6 As shown, the target vertex B on the second set object is used to indicate the lower border of the tail frame area of the target vehicle object.
[0109] A first ranging compensation model is determined based on a first geometric object located on a target slope corresponding to the ego-vehicle object, a second geometric object corresponding to the target vehicle object, a target point on the first geometric object, and a target vertex of the second geometric object. It should be noted that the first slope of the target slope is used to indicate the current bumpy state of the ego-vehicle object, the target point is used to indicate an image sensor configured on the ego-vehicle object, and the target vertex is used to indicate a lower border of the rear frame area of the target vehicle object.
[0110] In a specific embodiment, a specific implementation method of determining the second reference vehicle distance using the first distance measurement compensation model includes:
[0111] S11, acquiring a first image parameter set matching the target ranging area, wherein the first image parameter set includes a field of view angle of the image sensor, a focal length of the image sensor, a height of the image coordinate system, and a frame height of a lower frame of the rear frame area from the bottom of the image plane;
[0112] S12, obtaining a first ego vehicle parameter set associated with the ego vehicle object and a first target vehicle parameter associated with the target vehicle object, wherein the first ego vehicle parameter set includes a ego vehicle speed of the ego vehicle object, a bumping duration of the ego vehicle object, and an installation height of the image sensor, and the first target vehicle parameter includes a height of a lower tail frame of the target vehicle from the ground;
[0113] S13, obtaining a first ego vehicle parameter set associated with the ego vehicle object and a first target vehicle parameter associated with the target vehicle object, wherein the first ego vehicle parameter set includes the ego vehicle speed of the ego vehicle object, the bumping duration of the ego vehicle object, and the installation height of the image sensor, and the first target vehicle parameter includes the height of the lower tail frame of the target vehicle from the ground;
[0114] S14, determining a second reference vehicle distance according to the first distance measurement compensation model, the first image parameter set, the first ego vehicle parameter set and the first target vehicle parameter.
[0115] Specifically, a first image parameter set matching the target ranging area is obtained, wherein the first image parameter set includes the field of view angle of the image sensor, the focal length of the image sensor, the height of the image coordinate system, and the frame height of the lower frame of the rear frame area from the bottom of the image plane; a first self-vehicle parameter set associated with the self-vehicle object and a first target vehicle parameter associated with the target vehicle object are obtained, wherein the first self-vehicle parameter set includes the self-vehicle speed of the self-vehicle object, the bumping duration of the self-vehicle object, and the installation height of the image sensor, and the first target vehicle parameter includes the height of the lower rear frame of the target vehicle from the ground.
[0116] As an optional implementation, Figure 5 and Figure 6 As shown, taking one frame as an example, first, Figure 5 Point A is the camera (image sensor) installation point, according to the vehicle speed , and the slope angle fluctuation time of the previous few frames (the bumping duration of the vehicle object) t can be used to calculate the horizontal position L of the intersection of the slope and the ground plane from the camera, as shown in the following formula:
[0117]
[0118] Then, using the horizontal position L, slope angle , Image sensor installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:
[0119]
[0120] Further use Figure 5 Medium camera field of view , Figure 6 The height H of the lower tail frame B of the target vehicle from the ground and the image coordinate system height , the distance from the bottom edge of the detected vehicle tail frame to the bottom of the image plane and the camera focal length f, is an auxiliary point used to make an auxiliary line parallel to the slope; it can be understood that the above parameters are obtained in each frame for compensation distance measurement.
[0121] In step S14, a second reference vehicle distance is determined according to the first distance measurement compensation model, the first image parameter set, the first ego vehicle parameter set and the first target vehicle parameter.
[0122] Optionally, taking one of the frames as an example, the actual distance between the self-vehicle and the target vehicle after ranging compensation (the second vehicle distance) is obtained. , it can be understood that according to the trigonometric relationship, as follows: Figure 6 middle
[0123]
[0124]
[0125]
[0126] Right now
[0127] in , sorted out:
[0128]
[0129] By adopting the above method, the accuracy of distance measurement compensation under bumpy conditions is improved by determining the exact position of the target point and the target vertex and then performing calculations based on relevant parameters.
[0130] When the first reference vehicle distance is greater than the target distance, the bump ranging compensation model can be determined based on, but not limited to, obtaining the taillight description parameters corresponding to the target vehicle and, when the taillight description parameters indicate that the taillights of the target vehicle are enabled, a first geometric object located on the target slope, a second geometric object, a target point on the first geometric object, and a second target vertex on the second geometric object that matches the rear of the vehicle and other areas.
[0131] Specifically, a bump ranging compensation model (second ranging compensation model) is determined based on a first geometric object located on a target slope corresponding to the ego vehicle object, a second geometric object corresponding to the target vehicle object, a target point on the first geometric object, and a target vertex of the second geometric object, wherein the slope of the target slope is used to indicate the current bump state of the ego vehicle object, the target point is used to indicate the image sensor configured on the ego vehicle object, and the target vertex is used to indicate the lower border of the taillight area of the target vehicle object. For details, please refer to Figure 7 shown.
[0132] In a specific embodiment, a specific implementation method of determining the second reference vehicle distance using the second distance measurement compensation model includes:
[0133] S21, acquiring a second image parameter set matching the target ranging area, wherein the second image parameter set includes a field of view angle of the image sensor, a focal length of the image sensor, a height of the image coordinate system, and a frame height of a lower frame of the taillight area from the bottom of the image plane;
[0134] S22, obtaining a second ego vehicle parameter set associated with the ego vehicle object and a second target vehicle parameter associated with the target vehicle object, wherein the second ego vehicle parameter set includes a ego vehicle speed of the ego vehicle object, a bumping duration of the ego vehicle object, and an installation height of the image sensor, and the second target vehicle parameter includes a taillight height of a taillight of the target vehicle from the ground;
[0135] S23, determining a second reference vehicle distance according to a second distance measurement compensation model, a second image parameter set, a second ego vehicle parameter set, and a second target vehicle parameter.
[0136] First, a second image parameter set matching the target ranging area is obtained, wherein the second image parameter set includes the field of view angle of the image sensor, the focal length of the image sensor, the height of the image coordinate system, and the frame height of the lower frame of the taillight area from the bottom of the image plane; a second self-vehicle parameter set associated with the self-vehicle object and a second target vehicle parameter associated with the target vehicle object are obtained, wherein the second self-vehicle parameter set includes the self-vehicle speed of the self-vehicle object, the bumping duration of the self-vehicle object, and the installation height of the image sensor, and the second target vehicle parameter includes the taillight height of the taillight of the target vehicle from the ground.
[0137] As an optional implementation, Figure 5 , Figure 7 As shown, taking one frame as an example, the vehicle taillight is first used for compensation ranging When the vehicle is bumpy, the current speed of the vehicle is used , and the slope angle fluctuation time t of the previous few frames can be used to calculate the horizontal position L of the intersection of the slope and the ground plane from the camera, as follows:
[0138]
[0139] Using horizontal position L, slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:
[0140]
[0141] Further exploitation of the camera’s field of view , image coordinate system height , camera focal length f, height of taillight B from the ground (This solution is defined according to the type of target vehicle , if the target vehicle in front is a small car, then for Vehicle height. If the target vehicle in front is a large vehicle, then for Vehicle height), is an auxiliary point used to draw an auxiliary line parallel to the slope. It is the longitudinal distance from the detected taillight of the vehicle to the bottom of the image plane. .
[0142] It can be understood that, in step S23, the second reference vehicle distance is determined according to the second distance measurement compensation model, the second image parameter set, the second ego vehicle parameter set and the second target vehicle parameter.
[0143] Optionally, taking one of the frames as an example, the actual distance between the self-vehicle and the target vehicle after ranging compensation (i.e., the second vehicle distance mentioned above) is obtained. , it can be understood that according to the trigonometric relationship, as follows: Figure 5 middle
[0144]
[0145]
[0146]
[0147] Right now
[0148] in , sorted out:
[0149]
[0150] By adopting the above method, the accuracy of distance measurement compensation under bumpy conditions is improved by determining the exact position of the target point and the target vertex and then performing calculations based on relevant parameters.
[0151] When the first reference vehicle distance is greater than the target distance, the second reference vehicle distance can be determined, but is not limited to, by obtaining taillight description parameters corresponding to the target vehicle and, when the taillight description parameters indicate that the taillights of the target vehicle are not enabled, based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area.
[0152] Specifically, a third ranging compensation model is determined based on a first geometric object located on a target slope corresponding to the ego vehicle object, a second geometric object corresponding to the target vehicle object, a target point on the first geometric object, and a target vertex of the second geometric object, wherein the third slope of the target slope is used to indicate a current bumpy state of the ego vehicle object, the target point is used to indicate an image sensor configured on the ego vehicle object, and the target vertex is used to indicate a wheel contact point of the target vehicle object.
[0153] The target slope may be the slope on which the vehicle is currently traveling, and the first geometric object and the second geometric object may be geometric image objects abstracted from the vehicle object and the target vehicle object after image acquisition; the slope value information corresponding to the calculated third slope of the target slope indicates that the slope angle is in a fluctuating state, and it is determined that the vehicle object is in a bumpy state; Figure 5 As shown, the target point A is used to indicate the image sensor configured on the vehicle object, such as Figure 8 The target vertex B is shown to indicate the wheel contact point of the target vehicle object.
[0154] In a specific embodiment, a specific implementation method of obtaining the second reference vehicle distance using the third distance measurement compensation model includes:
[0155] S31, acquiring a third image parameter set matching the target ranging area, wherein the third image parameter set includes a field of view angle of the image sensor, a focal length of the image sensor, a height of the image coordinate system, and a grounding height of a grounding point of the wheel area from the bottom of the image plane;
[0156] S32, acquiring a third ego vehicle parameter set associated with the ego vehicle object, wherein the third ego vehicle parameter set includes a ego vehicle speed of the ego vehicle object, a bumping duration of the ego vehicle object, and an installation height of the image sensor;
[0157] S33: Determine a second reference vehicle distance according to a third distance measurement compensation model, a third image parameter set, and a third vehicle parameter set.
[0158] First, a third image parameter set matching the target ranging area is obtained, wherein the third image parameter set includes the field of view angle of the image sensor, the focal length of the image sensor, the height of the image coordinate system, and the ground height of the ground point of the wheel area from the bottom of the image plane; a third self-vehicle parameter set associated with the self-vehicle object is obtained, wherein the third self-vehicle parameter set includes the self-vehicle speed of the self-vehicle object, the bumping duration of the self-vehicle object, and the installation height of the image sensor.
[0159] As an optional implementation, Figure 5 and Figure 8 As shown, taking one frame as an example, the wheel contact point is first used for compensation distance measurement. When the vehicle is bumpy, the current speed of the vehicle is used , and the slope angle fluctuation time t of the previous few frames can be used to calculate the horizontal position L of the intersection of the slope and the ground plane from the camera, as follows:
[0160]
[0161] Using horizontal position L, slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:
[0162]
[0163] Further exploitation of the camera’s field of view , image coordinate system height , camera focal length f, Auxiliary point, used to draw auxiliary lines parallel to the slope, the distance from the detected wheel contact point of the vehicle to the bottom of the image plane ; It can be understood that the above parameters are obtained for each frame to compensate for ranging;
[0164] It can be understood that, in step S33, the compensated vehicle distance between the ego vehicle and the target vehicle is determined according to the third distance measurement compensation model, the third image parameter set, and the third ego vehicle parameter set.
[0165] Taking one of the frames as an example, the actual distance between the self-vehicle and the target vehicle after ranging compensation (the second vehicle distance) is obtained. , according to triangular geometry, combined Figure 8 As shown in the following formula:
[0166]
[0167]
[0168]
[0169] Right now
[0170] in , sorted out:
[0171]
[0172] By adopting the above method, the accuracy of distance measurement compensation under bumpy conditions is improved by determining the exact position of the target point and the target vertex and then performing calculations based on relevant parameters.
[0173] As an optional example, the above-mentioned obtaining the bump-compensated vehicle distance between the self-vehicle and the target vehicle according to the bump-ranging compensation model includes:
[0174] Obtaining a first reference vehicle distance between the ego vehicle and the target vehicle detected by the ego vehicle image, and determining a reference coefficient according to a distance interval corresponding to the first reference vehicle distance, wherein the reference coefficient and the distance interval have a positive correlation;
[0175] Determining a second reference vehicle distance based on a bump ranging compensation model that matches the positional relationship;
[0176] Determine a first ratio between the first reference vehicle distance and the reference coefficient as a first weight coefficient matching the first reference vehicle distance, and determine a difference between 1 and the first ratio as a second weight coefficient matching the second reference vehicle distance;
[0177] The bump compensation vehicle distance is determined as a weighted sum of the first reference vehicle distance, the second reference vehicle distance, a first weight coefficient matching the first reference vehicle distance, and a second weight coefficient matching the second reference vehicle distance.
[0178] After the first reference vehicle distance and the second reference vehicle distance are acquired, the bump compensation vehicle distance between the own vehicle and the target vehicle is determined based on the first reference vehicle distance and the second reference vehicle distance.
[0179] It should be noted that the reference coefficient is determined according to the distance interval corresponding to the first reference vehicle distance, and there is a positive correlation between the reference coefficient and the distance interval.
[0180] As an optional implementation, when the distance interval corresponding to the first reference vehicle distance is 0-100m, the reference coefficient is determined to be 100 (taking the farthest detection distance in the distance segment as 100m); when the distance interval corresponding to the first reference vehicle distance is greater than 100m, the reference coefficient is determined to be 250 (assuming that the farthest detection distance of monocular vision is 250m);
[0181] A first ratio between the first reference vehicle distance and the reference coefficient is determined as a first weight coefficient matching the first reference vehicle distance, and a difference between 1 and the first ratio is determined as a second weight coefficient matching the second reference vehicle distance.
[0182] As an optional implementation, for example, the reference coefficient is set to 100, the first reference vehicle distance is D, and the first ratio of the first reference vehicle distance to the reference coefficient is , which is the first weight coefficient; the difference between 1 and the first ratio is , which is the second weight coefficient.
[0183] It can be understood that the target vehicle distance is determined based on the weighted sum of the first reference vehicle distance, the second reference vehicle distance, a first weight coefficient matching the first reference vehicle distance, and a second weight coefficient matching the second reference vehicle distance.
[0184] As an optional implementation, the target vehicle longitudinal distance D output by the perception algorithm is close or far, that is, it will fluctuate around the true value for n frames depending on the distance of the target. The target vehicle longitudinal distance output by the perception algorithm can be averaged to obtain ,Right now
[0185] in (Rounded off, in order to better adjust the threshold n, the approximate middle value 30 of the longest detection distance of 100m in the distance segment is taken as a constant value as an example). The longitudinal distance of the target vehicle output by the perception algorithm corresponding to each frame in the nearby n frames without compensation; the distance is then compensated using the vehicle tail frame Weighted distance mean Get the precise distance to the target ahead (target vehicle distance) , as follows:
[0186]
[0187] Based on the above steps, the weight coefficients corresponding to the first reference vehicle distance and the second reference vehicle distance are optimized, thereby improving the accuracy of distance measurement compensation under bumpy conditions.
[0188] In an optional implementation, based on the weighted sum of the first reference vehicle distance, the second reference vehicle distance, the first weight coefficient matching the first reference vehicle distance, and the second weight coefficient matching the second reference vehicle distance, before determining the bump compensation vehicle distance, the compensation vehicle distance may be obtained by using the longitudinal distance value of the target vehicle given by the adjacent multi-frame intra-sensing algorithm. Specifically, it includes:
[0189] S41, when the first reference vehicle distance corresponds to the first distance interval, obtaining reference vehicle distances corresponding to N time frames adjacent to the first time frame corresponding to the first reference vehicle distance; and updating the first reference vehicle distance according to a weighted summation result of the N reference vehicle distances;
[0190] S42, when the first reference vehicle distance corresponds to the second distance interval, obtaining reference vehicle distances corresponding to M time frames adjacent to the first time frame corresponding to the first reference vehicle distance; and updating the first reference vehicle distance according to a weighted summation result of the N reference vehicle distances;
[0191] S43, wherein the first distance values in the first distance interval are all smaller than the first distance values in the second distance interval, N is an integer determined based on the ratio between the first distance before updating and the first reference value, M is an integer determined based on the ratio between the first distance before updating and the second reference value, and the first reference value is smaller than the second reference value.
[0192] It can be understood that when the first reference vehicle distance corresponds to the first distance interval, the reference vehicle distances corresponding to the N time frames adjacent to the first time frame corresponding to the first reference vehicle distance are obtained; the first reference vehicle distance is updated according to the weighted sum of the N reference vehicle distances; the above-mentioned first time frame can be the current time frame.
[0193] As an optional implementation, for example, when the first reference vehicle distance is 90m, corresponding to a first distance interval (such as a 0-100m interval), the reference vehicle distances corresponding to the N time frames adjacent to the first time frame corresponding to the first reference vehicle distance are obtained. It should be noted that, (Rounded off. In order to better adjust the threshold N, the approximate middle value 30 of the farthest detection distance of 100m in the distance segment is set as a constant value, that is, in this case N=90 / 30=3. The reference vehicle distance corresponding to the three frames adjacent to the first time frame is selected. The adjacent three frames can be the three frames before the current frame or the three frames after the current frame. There is no specific restriction here. Then, according to the weighted sum of the N reference vehicle distances, the first reference vehicle distance is updated.
[0194] When the first reference vehicle distance corresponds to the second distance interval, obtain the reference vehicle distances corresponding to the M time frames adjacent to the first time frame corresponding to the first reference vehicle distance; and update the first reference vehicle distance according to the weighted sum of the N reference vehicle distances.
[0195] As an optional implementation, for example, when the first reference vehicle distance is 150m, corresponding to the second distance interval (such as 100-200m interval), the reference vehicle distances corresponding to the M time frames adjacent to the first time frame corresponding to the first reference vehicle distance are obtained. It should be noted that, (Rounded off, in order to better adjust the threshold M, the approximate middle value 50 of the nearest detection distance of 100m in the distance segment is set as a constant value, that is, in this case M=150 / 50=3, that is, the reference vehicle distances corresponding to the three time frames adjacent to the first time frame are selected, and the adjacent three frames can be the three frames before the current frame or the three frames after the current frame, and no specific restrictions are made here, and then the first reference vehicle distance is updated according to the weighted summation result of the M reference vehicle distances.
[0196] It should be noted that the first distance values in the first distance interval are all smaller than the first distance values in the second distance interval, N is an integer determined according to the ratio between the first distance before the update and the first reference value, M is an integer determined according to the ratio between the first distance before the update and the second reference value, and the first reference value is smaller than the second reference value; the above-mentioned first reference value can be an approximate middle value of the maximum value of the first distance interval, such as when the maximum distance is 100m, the first reference value is 30, and the second reference value can be an approximate middle value of the minimum value of the second distance interval, such as when the minimum distance is 100m, the first reference value is 50, and no specific limitation is made here.
[0197] Through the above-mentioned implementation mode of the present application, by obtaining the vehicle distance corresponding to the high-value segment time frame, further weighted calculation is performed to improve the accuracy of distance measurement compensation under bumpy conditions.
[0198] In the above embodiments, the specific implementation methods of using the bump ranging compensation model to determine the bump compensation distance between the ego vehicle and the target vehicle under bumpy conditions are described in detail. The following describes the scenarios to which the compensation ranging method under bumpy road conditions is applicable.
[0199] 1. Compensated ranging on bumpy roads with lane lines (target distance ≤ 100 meters)
[0200] like Fig. 9 As shown in the figure, the vehicle is driving on a road with lane lines. The lane line model is constructed based on the lane line feature points on both sides extracted by the monocular vision perception algorithm. The lane line vanishing point of each frame is calculated using the lane line model, and the pixel difference threshold between the lane line vanishing point of each frame and the calibrated vanishing point is obtained (the threshold is set by yourself).
[0201] When the pixel difference of 5 consecutive frames is greater than the threshold and fluctuates up and down, the perception system outputs that the vehicle is in a bumpy state and calculates the bump angle of the vehicle at the current moment. Obtain the uncompensated longitudinal value of the target vehicle output by the monocular vision perception algorithm. When the value is ≤100 meters, use the obtained ego vehicle bump angle The target vehicle distance measurement is compensated with the vehicle tail frame position given by the visual perception algorithm; at the same time, the target vehicle longitudinal distance output by the perception algorithm without compensation in the neighboring frame is obtained. The two are weighted to obtain the accurate longitudinal distance of the front vehicle under bumpy road conditions.
[0202] (II) Compensated ranging on bumpy roads with no lane markings (target distance > 100 meters and during daytime)
[0203] like Fig.10 As shown in the figure, the vehicle is driving on a road without lane lines. The wheel speed sensor on the vehicle body is used to collect the longitudinal acceleration of the vehicle and the wheel speed of the non-driving wheel, and the current driving slope of the vehicle is derived. .
[0204] If the actual slope value obtained fluctuates up and down, it is judged that the vehicle is in a bumpy state. Obtain the uncompensated longitudinal value of the target vehicle output by the monocular vision perception algorithm. When the value is greater than 100 meters, use the obtained bump angle of the vehicle The target vehicle distance measurement is compensated with the wheel contact point given by the visual perception algorithm; at the same time, the target vehicle longitudinal distance output by the perception algorithm without compensation in the neighboring frame is obtained. The two are weighted to obtain the accurate longitudinal distance of the front vehicle under bumpy road conditions.
[0205] (III) Compensated ranging on bumpy roads with no lane markings (target distance > 100 meters and at night)
[0206] like Fig.11 As shown, the vehicle is traveling on a road without lane lines and is equipped with an air suspension. The height information output by the height sensor of the suspension is used to obtain the current height change of the vehicle. If the height change fluctuates up and down, it is determined that the vehicle is in a bumpy state.
[0207] Obtain the uncompensated longitudinal value of the target vehicle output by the monocular vision perception algorithm. When the value is greater than 100 meters, use the vehicle bump angle obtained by the wheel speed sensor The target vehicle distance measurement is compensated with the taillights given by the visual perception algorithm; at the same time, the longitudinal distance of the target vehicle output by the perception algorithm without compensation in the neighboring frame is obtained. The two are weighted to obtain the accurate longitudinal distance of the front vehicle under bumpy road conditions.
[0208] In order to determine the bump-compensated distance between the ego vehicle and the target vehicle using the bump-odometry compensation model, it is usually necessary to determine the current driving state of the ego vehicle, that is, to determine whether the ego vehicle is in a bumpy driving state.
[0209] As an optional implementation method, the specific process of determining whether the vehicle is in a bumpy driving state is as follows:
[0210] Acquire a road image sequence collected by the vehicle, wherein the road image sequence includes road images collected by the vehicle in multiple consecutive time frames;
[0211] In the case where a plurality of lane line objects are included in the road image, lane line vanishing points corresponding to the plurality of road images are determined respectively according to the lane line objects respectively included in the road image, wherein the lane line vanishing points are determined according to the object pointing directions of the plurality of lane line objects in the road image;
[0212] Acquire image position relationship features of the multiple lane line vanishing points according to the respective image positions of the multiple lane line vanishing points;
[0213] When the image position relationship feature satisfies the first image condition, it is determined that the vehicle is in a bumpy driving state;
[0214] When the image position relationship feature satisfies the second image condition, it is determined that the ego vehicle is in a ramp driving state; the slope compensation vehicle distance between the ego vehicle and the target vehicle is obtained according to the ramp distance compensation model; and the slope compensation vehicle distance is used as the target vehicle distance between the ego vehicle and the target vehicle.
[0215] The road image sequence currently captured by the vehicle object is obtained, wherein the road image sequence includes road images captured in a plurality of consecutive time frames. This is only an example and does not specifically limit the way of capturing the road images.
[0216] Furthermore, in the case where a plurality of lane line objects are included in a road image, lane line vanishing points corresponding to the plurality of road images are respectively determined according to the lane line objects respectively included in the road images.
[0217] As an optional implementation, the lane line vanishing point is determined according to the object pointing directions of multiple lane line objects in the road image. It can be, but is not limited to, two parallel lane lines that visually gradually approach each other as the distance increases, and finally intersect at a point at infinity, and the point is determined as the lane line vanishing point. Fig.12 As shown in point A.
[0218] It should be noted that the lane line vanishing point can be calculated by, but is not limited to, establishing a mathematical model using the road geometry captured by the camera; using a cubic polynomial to fit the lane line, and by fitting the lane line and calculating its derivative, the curvature and vanishing point of the lane line can be obtained; through methods such as threshold segmentation and edge detection, lane line features can be extracted, and then the vanishing point can be determined, thereby obtaining an accurate lane line vanishing point.
[0219] The image position relationship features of the above-mentioned multiple lane line vanishing points may be one or more feature values for characterizing the relative position relationship between the lane line vanishing points, and the image position relationship features of the multiple lane line vanishing points are obtained according to their respective image positions.
[0220] In an optional embodiment, the above-mentioned feature value can be determined directly through the image position of each lane line vanishing point. Optionally, the variance value of the image position of each lane line vanishing point can be determined as the above-mentioned image position relationship feature; the variance value of the image position difference value of each two adjacent lane line vanishing points can also be determined as the above-mentioned image position relationship feature.
[0221] In another optional implementation, the feature value may be determined based on the image position of each lane line vanishing point and the positional relationship between reference calibration objects. The reference calibration object may be a calibration point (such as a coordinate point in a road image), a calibration line (such as an arrow on a road), a calibration circle (such as a parking area), etc. Optionally, a correlation coefficient determined based on each lane line vanishing point and a reference point on the road (such as a red light, a sign, etc.) may be used as the image position relationship feature. The coordinate positions of all lane line vanishing points may be processed as center points, for example, the coordinates may be averaged, and the obtained correlation coefficient between the center point and a reference point on the road may be used as the image position relationship feature. The positions of multiple lane line vanishing points in the image may also be obtained to determine whether the lane line vanishing points converge to a straight line, and the direction distribution characteristics of the lane line vanishing points may be obtained as the image position relationship feature.
[0222] Correspondingly, the above-mentioned method of judging whether the vehicle object is in a bumpy state can be matched with the above-mentioned method of acquiring the image position relationship features. When the image position relationship features satisfy the first image condition, it is determined that the vehicle object is currently in a bumpy state. It can be understood that the above-mentioned first image condition can be but is not limited to fitting multiple lane line vanishing points to a straight line or a point, and the lane line vanishing points in each frame of the image match the coordinate positions of the preset calibration points.
[0223] On the contrary, if the image position relationship feature satisfies the second image condition, it is determined that the vehicle is in a slope driving state, wherein the second image condition may be, but is not limited to, multiple lane line vanishing points not fitting into a straight line or a point, the lane line vanishing points in each frame image not matching the coordinate positions of the preset calibration points, etc.
[0224] The following further illustrates a method for determining the bumpy state of the vehicle. When the above-mentioned image position relationship features are characterized by multiple feature values, for example, when the image position relationship features corresponding to five consecutive frames all satisfy the bumpy position relationship conditions, it is determined that the vehicle object is in a bumpy state. When the above-mentioned image position relationship features are characterized by a single feature value, for example, the difference in feature value corresponding to each of the first three frames of the image position feature corresponding to the five frames of the collected image is greater than a preset threshold, and the difference in feature value between the fourth frame and the fifth frame is within a reasonable range, the image position relationship feature corresponding to the fifth frame is selected to determine whether the bumpy position relationship conditions are met.
[0225] Through the above-mentioned implementation mode of the present application, it is possible to determine whether the vehicle is currently in a bumpy state based on whether the image position relationship characteristics meet the corresponding image conditions, thereby solving the technical problem of inaccurate judgment of vehicle bumpy conditions in related technologies.
[0226] As an optional example, after respectively determining lane line vanishing points corresponding to the plurality of road images according to the lane line objects respectively included in the road images, the method further includes:
[0227] determining a calibrated vanishing point corresponding to each of the plurality of road images;
[0228] Sequentially obtaining image position differences between calibrated vanishing points and corresponding lane line vanishing points in a plurality of road images;
[0229] When the image position difference corresponding to each of the M consecutive road images is greater than or equal to the first target threshold, it is determined that the vehicle object is currently in a bumpy state, where M is an integer greater than 1;
[0230] When the image position difference corresponding to each of M consecutive road images is greater than or equal to the second target threshold, and the difference variance of the M consecutive image position differences is less than or equal to the third target threshold, it is determined that the vehicle is in a slope driving state, wherein the first target threshold is greater than the second target threshold, and the second target threshold is greater than 0.
[0231] It is understandable that there will be certain errors in the installation angle of the camera after the vehicle rolls off the factory or the camera is replaced after sale. Therefore, the calibration points corresponding to the multiple road images are determined. Specifically, but not limited to, the three directional angles of the camera are determined: pitch angle, roll angle and roll angle. When the vehicle is traveling horizontally (under ideal driving conditions), the lane line vanishing point and the camera's roll angle (pitch angle) can be obtained based on the lane line and the camera's collected information during the horizontal driving period.
[0232] That is to say, there is a certain geometric relationship between the vanishing point of the lane line and the pitch angle of the camera, which can be obtained through, but not limited to, a three-dimensional geometric model, and then the calibration point is obtained according to the geometric relationship between the vanishing point of the lane line and the roll angle of the camera and filtering calculation. For example, when the lane line is a straight line and the camera is parallel to the road, the y coordinate of the vanishing point of the lane line and the pitch angle of the camera have a linear correlation, and then the coordinate of the vanishing point of the lane line can be predicted during driving according to the linear correlation. This is only an example, and no specific limitation is imposed on the method of obtaining the calibration point.
[0233] Furthermore, the image position differences between the calibration points in the plurality of road images and the corresponding lane line vanishing points are obtained in sequence; specifically, the image plane coordinates of the lane line vanishing point at the current moment can be obtained by solving the equations and coordinate system conversion using the slope and intercept of the lane line model, but not limited to , the image plane coordinates of the calibrated vanishing point of the ego vehicle , and then determine the image position difference between the calibration point and the corresponding lane line vanishing point according to the position coordinates of the lane line vanishing point and the calibration vanishing point position coordinates of the vehicle. The image position difference between the calibration point and the corresponding lane line vanishing point can also be determined by the discrete degree of the positions between the lane line vanishing points, the distance between the lane line vanishing point and the horizontal reference calibration line, the distribution density of multiple lane line vanishing points, etc., thereby improving the accuracy of judging the vehicle driving condition.
[0234] The image position differences corresponding to the multiple road images are determined as the image position relationship features of the multiple lane line vanishing points; specifically, but not limited to, the image plane coordinate distance threshold between the two can be set to , when 5 consecutive frames When the image position features of the vanishing points of multiple lane lines are determined to be bumpy features. It can be understood that the difference S in the distance between the coordinate points in each two consecutive frames within 10 frames is obtained, and the discrete degree of S is determined. When the discrete degree of S is greater than the preset threshold, it is determined that the vehicle is in a bumpy driving state, which improves the accuracy of the judgment result.
[0235] Through the above-mentioned implementation mode of the present application, the image position relationship characteristics of the lane line vanishing point are determined by utilizing the image position difference between the calibration point having a certain geometric relationship with the lane line vanishing point in each frame of the road image and the actually acquired lane line vanishing point, and the vehicle's bumpy state is determined based on the positional relationship characteristics between the coordinate points, thereby improving the accuracy of judging the vehicle's bumpy working condition.
[0236] In an optional implementation, when the image position relationship feature satisfies the first image condition, it can be determined that the vehicle is currently in a bumpy driving state by, but not limited to, the following methods:
[0237] (1) When the image position difference corresponding to each of the M consecutive road images is greater than or equal to the first target threshold, it is determined that the vehicle is currently in a bumpy driving state;
[0238] (2) When the image position difference corresponding to each of the M consecutive road images is greater than or equal to the second target threshold, and the variance of the difference between the M consecutive image position differences is greater than the third target threshold, it is determined that the vehicle is currently in a bumpy driving state.
[0239] In addition, if the image position difference corresponding to each of the M consecutive road images is greater than or equal to the second target threshold, and the difference variance of the M consecutive image position differences is less than or equal to the third target threshold, it is determined that the vehicle is in a slope driving state.
[0240] Combine the following Fig.13 The positional relationship between the lane line vanishing point and the calibrated vanishing point is described.
[0241] The image plane coordinates of the lane line vanishing point are: , in the world coordinate system The image plane coordinates of the calibrated vanishing point of the ego vehicle are , in the world coordinate system ,Will The image position difference can also be determined based on the position relationship of the coordinate points in the world coordinate system, such as Fig.13 As shown in the figure, the spatial relationship between the lane line vanishing point and the calibrated vanishing point of the vehicle in the world coordinate system is shown in the figure. The image position difference can be the square root of the sum of the squares of the differences between the x-axis, y-axis, and z-axis coordinates. By determining the bumpy working condition of the vehicle based on the distance relationship between the coordinate positions, the accuracy of the judgment result is improved.
[0242] In the embodiment of the present application, the current driving state of the vehicle can be determined by different determination methods according to whether the monocular camera detects a lane line on the road on which the vehicle is driving.
[0243] Example 1
[0244] When the presence of a lane line is detected, the current driving state of the vehicle can be determined by, but is not limited to, the following methods.
[0245] S51, obtaining the coordinates of the lane line vanishing point;
[0246] S52, obtaining fixed calibrated vanishing point coordinates;
[0247] Specifically, the lane line features of the road surface are extracted through a monocular vision perception algorithm, and the position information of the lane line is converted into a mathematical model through post-processing. The slope and intercept of the lane line model are used to solve the equation group and coordinate system conversion to obtain the image plane coordinates of the vanishing point of the lane line at the current moment. , world coordinates ; and obtain the image plane coordinates of the calibrated vanishing point of the vehicle , world coordinates ,like Fig.13 As shown; the image plane coordinate distance threshold of the two is set to :
[0248]
[0249] It should be noted that is the initial uncompensated target distance value given by the monocular vision algorithm, The larger the value, the larger the spatial distance corresponding to a pixel point, and the smaller the image plane coordinate distance threshold needs to be set (assuming that the maximum range of the monocular camera to detect the vehicle in front is 250m). Therefore, in order to better adjust the threshold , taking the approximate middle value of the farthest detection distance as 100 and setting it as a constant value, is only an example here and is not specifically limited.
[0250] S53, determining whether the coordinate distance between the lane line vanishing point and the calibrated vanishing point is greater than a threshold value w;
[0251] If the coordinate distance between the lane line vanishing point and the calibrated vanishing point is greater than the threshold , it is determined to be in a bumpy condition; specifically, when 5 consecutive frames , it means that the coordinate difference between the lane line vanishing point and the calibrated vanishing point is large, that is, the vehicle is in a bumpy condition.
[0252] If the coordinate distance between the lane line vanishing point and the calibrated vanishing point is not greater than the threshold w, it is determined to be in a stable condition; specifically, when 5 consecutive frames , it means that the coordinate difference between the lane line vanishing point and the calibrated vanishing point is small, that is, the vehicle is driving stably and is not in a bumpy condition.
[0253] In an alternative example, in 5 consecutive frames , and the difference is stable, it is determined that the vehicle is not in a bumpy condition and is driving on a stable slope; it should be noted that when the difference in the image plane coordinates of the lane line vanishing point and the calibrated vanishing point is stable but not 0 within 5 consecutive frames, that is, the vehicle is driving stably uphill / downhill and is not in a bumpy condition; this is only an example and does not specifically limit the above judgment process.
[0254] In another optional embodiment, when the variance of the image position differences corresponding to each of M consecutive road images is greater than or equal to the second target threshold, and the variance of the difference of M consecutive image position differences is greater than the third target threshold, it is determined that the vehicle object is currently in a bumpy state, wherein M is an integer greater than 1; specifically, it can be but not limited to determining the variance of the image position differences by means of weighted variance, overall variance, etc., that is, determining the degree of discreteness between coordinate positions, and when the degree of discreteness is greater than the second target threshold, it is determined that the vehicle is in a bumpy state. This is only an example, and no specific limitation is placed on the method of determining the bumpy condition based on the variance of the image position differences.
[0255] Through the above-mentioned implementation mode of the present application, when the image position difference is greater than or equal to the first target threshold, it is determined that the vehicle object is currently in a bumpy state, or when the difference variance of the image position difference corresponding to each of M consecutive road images is greater than or equal to the second target threshold, it is determined that the vehicle object is currently in a bumpy state, thereby improving the accuracy of determining the vehicle's bumpy condition.
[0256] When the monocular camera fails to detect lane lines on the road on which the vehicle is traveling, the wheel speed sensor built into the vehicle body can be used, but is not limited to, to determine whether the vehicle is in a bumpy driving state and to calculate the slope angle. The details are as follows:
[0257] When the road image does not include multiple lane line objects, a longitudinal acceleration sequence of the ego vehicle and an ego vehicle acceleration sequence are obtained, wherein the longitudinal acceleration sequence includes longitudinal accelerations corresponding to multiple continuous time frames, the ego vehicle acceleration sequence includes ego vehicle accelerations corresponding to multiple continuous time frames, the longitudinal acceleration is the acceleration of the ego vehicle in the driving direction, and the ego vehicle acceleration is the actual acceleration of the ego vehicle;
[0258] Obtaining a target longitudinal acceleration corresponding to a target time frame from the longitudinal acceleration sequence, and obtaining a target ego-vehicle acceleration corresponding to a target time frame from the ego-vehicle acceleration sequence;
[0259] Determine the target slope angle of the ego vehicle object according to the acceleration angle between the target longitudinal acceleration and the target ego vehicle acceleration;
[0260] Determine a slope angle sequence according to target slope angles corresponding to a plurality of consecutive time frames;
[0261] When L consecutive target slope angles in the slope angle sequence are all greater than or equal to the target angle, it is determined that the vehicle object is currently in a bumpy state, where L is an integer greater than 1.
[0262] Example 2
[0263] When no lane line is detected, it is possible but not limited to using the wheel speed sensor on the vehicle body to determine whether the vehicle is in a bumpy state.
[0264] Among them, the target longitudinal acceleration corresponding to the target time frame is obtained from the longitudinal acceleration sequence, and the target ego-vehicle acceleration corresponding to the target time frame is obtained from the ego-vehicle acceleration sequence; the target slope angle of the ego-vehicle object is determined according to the acceleration angle between the target longitudinal acceleration and the target ego-vehicle acceleration; the slope angle sequence is determined according to the target slope angles corresponding to multiple consecutive time frames; when L consecutive target slope angles in the slope angle sequence are greater than or equal to the target angle, it is determined that the ego-vehicle object is currently in a bumpy state, wherein L is an integer greater than 1.
[0265] Specifically, when no lane line is detected, the longitudinal acceleration of the vehicle can be obtained by using, but not limited to, the longitudinal acceleration sensor of the vehicle body. , use the wheel speed sensor to obtain the wheel speed of the non-driving wheel of the vehicle, convert the wheel speed of the non-driving wheel to get the vehicle speed, and then take the derivative of the obtained vehicle speed to get the actual acceleration , and then the slope angle of the road the vehicle is traveling on is , as follows:
[0266]
[0267] If the calculated road slope angle of continuous frames is not equal to the target angle given in the collected data (such as the maximum slope angle value actually collected), specifically, if it can be continuously greater than or equal to the target angle, it is determined that the vehicle is in a bumpy driving state. It can be understood that if the calculated road slope angle exceeds the preset fluctuation range, that is, when the slope angle fluctuates violently, it can also be determined that the vehicle is in a fluctuating driving state.
[0268] The following combination Fig.14 The specific process of judging the bumpy working condition based on the acceleration parameters is explained as follows:
[0269] S1402, detecting that a lane line does not exist; specifically, the monocular camera does not detect the existence of a lane line on the road on which the vehicle is traveling;
[0270] S1404, obtaining the longitudinal acceleration of the vehicle and the actual acceleration; specifically, using the longitudinal acceleration sensor of the vehicle body to obtain the longitudinal acceleration of the vehicle , use the wheel speed sensor to obtain the wheel speed of the non-driving wheel of the vehicle, convert the wheel speed of the non-driving wheel to get the vehicle speed, and then take the derivative of the obtained vehicle speed to get the actual acceleration , that is, the longitudinal acceleration of the vehicle is equal to the sum of the longitudinal vehicle speed change rate and the gravity acceleration along the road surface component. This is only an example and does not impose specific restrictions on the method of determining the vehicle speed and actual acceleration.
[0271] It is understandable that in order to avoid wheel speed errors caused by high-throttle starting and slipping on slippery roads, the wheel speed of the non-drive wheel can be obtained by, but is not limited to, collecting the wheel speed sensor of the non-drive wheel, or by the change of the electrical signal generated by the vehicle passing through the coil, or by laser, radar, video detection technology, etc. to determine the acceleration and speed of the vehicle. This is only an example, and there is no specific limitation on the method of obtaining vehicle information.
[0272] S1406, calculating the slope angle; specifically, as Fig.15 As shown, based on g (gravitational acceleration), the slope angle of the road the vehicle is traveling on is obtained by reverse calculation: , as follows:
[0273]
[0274] S1408, determining whether the slope angle fluctuation condition satisfies the bumping condition;
[0275] If the slope angle fluctuation condition meets the bumping condition, S1410 is executed to determine that the vehicle is in a bumping condition;
[0276] If the slope angle fluctuation condition does not meet the bumpy condition, execute S1412 to determine that the vehicle is not in a bumpy condition; specifically, if the calculated slope angle fluctuates up and down within 6 frames and exceeds a certain threshold (the threshold is set by itself), it is determined that the vehicle is in a bumpy state. This is only an example and no specific restriction is made on the fluctuation threshold.
[0277] Based on the above steps, the road slope angle of the target road on which the vehicle is traveling is calculated according to the longitudinal acceleration and the actual acceleration of the vehicle, and the vehicle bumping condition is determined according to the fluctuation of the slope angle of the road in continuous frames, thereby improving the accuracy and efficiency of judging the vehicle bumping condition.
[0278] When no lane line is detected, if the vehicle is equipped with air suspension, the height of the vehicle body from the ground can be measured using the height sensor of the air suspension to determine the current driving condition of the vehicle.
[0279] Example 3
[0280] When the road image does not include multiple lane line objects, the chassis height sequence of the vehicle object is obtained (which can also be understood as the height sequence of the air suspension). It should be noted that the chassis height sequence includes chassis corresponding to multiple continuous time frames. When the chassis height sequence meets the target height condition, it is determined that the vehicle object is currently in a bumpy state. It can be understood that in this embodiment, it is not limited to determining the bumpy condition of the vehicle by judging the height change of the chassis, and the bumpy condition of the vehicle can also be determined according to the height of the suspension on the vehicle, the height change of the vehicle frame, etc. This is only an example and is not specifically limited.
[0281] The height sensor of the suspension is used to measure the height H of the vehicle body from the ground. If the height value obtained fluctuates up and down within 5 consecutive frames and exceeds a certain threshold (the threshold is set by yourself), it is judged that the vehicle is in a bumpy state. At the same time, the wheel speed sensor built into the vehicle body is used to obtain the slope angle, and the calculation method is the same as above.
[0282] When the vehicle is equipped with air suspension, the bumpy state verification can be performed: the bumpy state of the vehicle judged by the air suspension is compared with the slope angle calculated by the wheel speed sensor for verification. If the air suspension gives that the vehicle is in a bumpy state and the slope angle given by the wheel speed sensor is also an unstable value, it means that the output bumpy state is reasonable; if the air suspension gives that the vehicle is in a bumpy state, and the slope angle given by the wheel speed sensor is a stable value, it means that one or both of the output information is wrong. The judgment frame number is extended to 10 frames, and the judgment is re-made based on the comparison results within 10 frames. If the output information of the two is still inconsistent, no distance measurement compensation is performed.
[0283] It can be understood that, in the presence of lane lines, the first judgment result of the vehicle's bumpy state is obtained through the lane line vanishing point and the vehicle's own calibration point, and the vehicle's driving slope change information can be obtained again based on the vehicle's acceleration information. The second judgment result is further obtained based on the change in the slope angle. The first judgment result is matched with the second judgment result. Under the condition of successful matching, it is determined whether the vehicle is in a bumpy driving condition, thereby improving the accuracy of judging the vehicle's bumpy condition.
[0284] The following is an explanation of the method of judging the bumpy driving condition of the vehicle by combining the above-mentioned embodiment 2 with embodiment 3.
[0285] S61, measuring vehicle height;
[0286] Specifically, the vehicle is equipped with an air suspension, and the height H of the vehicle body from the ground is measured using a height sensor of the suspension.
[0287] S62, determining a bumping state according to a change in vehicle height of consecutive frames;
[0288] Specifically, if the obtained height value fluctuates up and down within 5 consecutive frames and exceeds a certain threshold (the threshold is set by yourself), it is determined that the vehicle is in a bumpy state. This is only an example and does not impose specific restrictions on how to determine the bumpy state.
[0289] Determine S63 whether the bumping state determined according to the height change matches the bumping state determined according to the slope angle;
[0290] If they match, S64 is executed and the bumping state is correct;
[0291] Specifically, the bump state of the vehicle determined by the air suspension is compared with the slope angle calculated by the wheel speed sensor for verification. If the air suspension indicates that the vehicle is in a bump state and the slope angle given by the wheel speed sensor is also an unstable value, it means that the output bump state is reasonable. This is only an example and does not impose specific restrictions on how to obtain the slope angle and predict the bump state.
[0292] If they do not match, then S65 is executed, indicating that the bumping state is abnormal; and S66 is executed to extend the number of frames for determination, and then the process returns to S62 to determine the bumping state based on the change in the vehicle height of the consecutive frames;
[0293] Specifically, if the air suspension indicates that the vehicle is in a bumpy state, while the wheel speed sensor indicates a stable slope angle, it means that one or both of the output information is wrong. The judgment frame number is extended to 10 frames, and the judgment is re-made based on the comparison results within 10 frames. This is only an example and does not specifically limit the above process.
[0294] It should be noted that a first confidence level of the first judgment result for determining the vehicle's bumpy state obtained according to Example 2 and a second confidence level of the second judgment result for determining the vehicle's bumpy state obtained according to Example 2 can also be obtained. The first judgment result and the second judgment result are weightedly summed according to the first confidence level and the second confidence level, respectively, to obtain the final vehicle's bumpy state, thereby improving the accuracy of determining the vehicle's bumpy state.
[0295] Through the above-mentioned implementation mode of the present application, when the longitudinal acceleration sequence and the self-vehicle acceleration sequence meet the target speed conditions, it is determined that the self-vehicle object is currently in a bumpy state. When the chassis height sequence meets the target height condition, it can also be determined that the self-vehicle object is currently in a bumpy state. The vehicle bumpy working condition is determined by multiple judgment methods, which enriches the application scenarios of the method for judging the vehicle bumpy working condition and improves the accuracy of the judgment.
[0296] In combination with the description in the above embodiment, it can be known that when it is determined that the current ego vehicle is in a bumpy condition but the target vehicle is driving on a slope, the bump angle calculated using the above bump ranging compensation model is used as the slope angle of the ego vehicle, and the compensated distance calculated using the bump ranging compensation model is used as the longitudinal distance between the ego vehicle and the target vehicle, that is, the target distance of the ego vehicle after compensation for the slope.
[0297] When the vehicle is not in a bumpy condition and is traveling on a level road, no compensation is required.
[0298] When it is determined that the current ego vehicle is not in a bumpy condition and there is a stable slope value, it means that the ego vehicle is slowly going uphill or downhill, but it is uncertain whether the target vehicle is on a slope. The function of this module is to estimate the slope of the ego vehicle and the target vehicle, and perform distance compensation based on the estimated slope to obtain an accurate target longitudinal distance. The slope value of the slope where the ego vehicle is located must be estimated first. The following will describe in detail how to estimate the slope value of the slope where the ego vehicle is located in conjunction with a specific embodiment.
[0299] After estimating the slope value of the ego vehicle's ramp and the slope value of the target vehicle's ramp, the slope compensation vehicle distance between the ego vehicle and the target vehicle may be obtained according to, but not limited to, the ramp distance compensation model, specifically including:
[0300] Obtain a road image sequence collected by the vehicle;
[0301] Determine a first slope value of a first slope where the ego vehicle is currently located and a second slope value of a second slope where the target vehicle is currently located according to the road image sequence;
[0302] The slope compensation vehicle distance between the own vehicle and the target vehicle is determined according to the first slope value, the second slope value and the geometric position relationship between the own vehicle and the target vehicle.
[0303] It should be noted that during the driving process of the vehicle, the camera sensor can be used to collect road information and collect the road information into a road image. As a visual method, the road image can include a large amount of traffic environment information, such as traffic signal signs, road lane line markings, and obstacles ahead.
[0304] In an optional embodiment, a monocular camera may be used to capture images of the road on which the vehicle is traveling. When the vehicle is traveling, the scene within the collection range may be photographed at a certain collection frequency, and a road image may be generated based on the camera's internal and external parameters. A road image sequence may be a plurality of road images collected by the vehicle in a series of continuous time frames, or may be a road image collected by the vehicle under specific conditions. For example, a road image sequence collected by the vehicle on a ramp may be obtained, and the road images collected in multiple time frames when the vehicle is traveling on the ramp may be used as a road image sequence.
[0305] It is easy to understand that the vehicle can travel on structured roads and unstructured roads. There are pre-set lane lines on structured roads, and the lane lines can be used to obtain complete road surface information of the current road. However, when the lane lines on unstructured roads or structured roads do not meet the image quality requirements, the lane lines cannot be used to obtain information about the road the vehicle is currently traveling on.
[0306] In an optional embodiment, the quality of the lane line can be defined by the lane line confidence, and the image quality condition can be greater than a preset confidence threshold. For lane lines that are partially damaged or whose features cannot be identified, the confidence is correspondingly low. The confidence of the lane line can be calculated using different algorithms for calculating the confidence. For example, after acquiring a road image sequence, the lane lines in multiple road images can be extracted to obtain multiple feature point sets of the lane lines, and then the multiple feature point sets can be calculated using a preset confidence algorithm to obtain the confidence. The confidence algorithm can be a deep learning network, Bayesian formula, etc.
[0307] In an optional embodiment, when the road image does not include lane line objects that meet the image quality conditions, surrounding vehicles that meet the driving conditions can be determined from the road image. The driving condition may be a constraint condition on vehicles outside the own vehicle. The driving condition may be located in an adjacent lane to the own vehicle and driving to the first ramp before the own vehicle. The driving condition may also be that the distance from the own vehicle in the lateral direction is less than a preset distance. For example, vehicles within 20 meters on the left and right roads of the own vehicle may be determined as surrounding vehicles. The driving condition may also be vehicles that go from far to near and then become far again, which may be surrounding vehicles in an overtaking scenario. By limiting the lateral distance between the own vehicle and the surrounding vehicles, the accuracy of the first slope value estimated by the surrounding vehicles can be improved. By limiting the overtaking scenario, the surrounding vehicles can be selected as vehicles that are close to the own vehicle and have similar driving conditions.
[0308] It should be noted that the surrounding vehicle drives onto the ramp before the self-vehicle. When the surrounding vehicle and the self-vehicle are driving on a horizontal road at the same time, the distance between the two will change with the speed of the vehicles, and when the surrounding vehicle drives onto the ramp, the distance between the two vehicles will suddenly change. By detecting the change in the positional relationship between the self-vehicle and the surrounding vehicle, the time frame in which the distance between the surrounding vehicle and the self-vehicle suddenly changes can be detected, thereby determining the time frame in which the surrounding vehicle drives onto the ramp. Furthermore, the first slope value is determined by the change in the distance between the surrounding vehicle and the self-vehicle. The following will be described in detail in conjunction with a specific embodiment to determine the first ramp value using the change in the first positional relationship, which will not be repeated here.
[0309] When measuring the distance of the target vehicle, the second slope value can be determined by using the first slope value determined above and the change in the position relationship between the vehicle and the target vehicle. The target vehicle may go uphill or downhill. Similar to the change in the distance between the vehicle and the surrounding vehicles, when the distance between the vehicle and the target vehicle suddenly changes, it can be considered that the target vehicle has driven onto the slope. The second slope value can be determined by the change in the position of the vehicle and the target vehicle. The specific process of calculating the second slope value will be described in conjunction with the specific embodiment below, and will not be repeated here.
[0310] In an optional implementation, when the vehicle uses a camera to collect road information to obtain a road image sequence, the distance between the vehicle and the target vehicle can be estimated using the information of the target vehicle in the road image sequence. As mentioned above, when driving on a slope, the camera may have an angle change, resulting in inaccurate distance measurement. Therefore, the first slope value and the second slope value obtained above can be used to compensate the distance between the vehicles collected by the vehicle using the camera to obtain the target distance.
[0311] In an embodiment of the present application, a road image sequence collected by the vehicle is obtained, wherein the road image sequence includes road images collected by multiple time frames respectively; when the road image does not include a lane line object that meets the image quality condition, a surrounding vehicle that meets the driving condition is determined from multiple vehicles included in the road image, wherein the surrounding vehicle is a vehicle in an adjacent lane and travels to the first ramp before the vehicle; the first slope value of the first ramp is determined according to the change of the first position relationship between the vehicle and the surrounding vehicle; when the vehicle travels to the first ramp and a target vehicle traveling on the second ramp is detected from the road image sequence, the second slope value of the second ramp is determined according to the first slope value and the change of the second position relationship between the vehicle and the target vehicle; the target vehicle distance between the vehicle and the target vehicle is determined according to the first slope value, the second slope value and the geometric position relationship between the vehicle and the target vehicle. Thus, the accuracy of vehicle distance measurement under ramp conditions is improved.
[0312] The above method solves the technical problem of long resource loading time caused by large amount of resources in a single game. Especially when the quality of lane line does not meet the preset quality, the slope value of the slope where the ego vehicle is located can be estimated based on the surrounding vehicles, which increases the application scenarios of the method. The slope position relationship between the ego vehicle and the target vehicle is used to compensate for the distance measurement of the two vehicles, thereby improving the accuracy of slope distance measurement.
[0313] As an optional implementation manner, the above-mentioned determining the first slope value of the first slope where the vehicle is currently located according to the road image sequence includes:
[0314] When the road image in the road image sequence collected by the ego vehicle does not include a lane line object that meets the image quality condition, a surrounding vehicle that meets the driving condition is determined from multiple vehicles included in the road image, wherein the surrounding vehicle is a vehicle that is in an adjacent lane and travels to the first ramp before the ego vehicle;
[0315] According to the P road images in the road image sequence, P surrounding vehicle longitudinal distances are respectively obtained, wherein the P surrounding vehicle longitudinal distances correspond to the P road images one by one, the surrounding vehicle longitudinal distance is the distance between the surrounding vehicle and the own vehicle along the driving direction, and P is an integer greater than 1;
[0316] The speed of the surrounding vehicle in P time frames is estimated using the P surrounding vehicle longitudinal distances, and P reference surrounding vehicle speeds corresponding to the P time frames are obtained. The P reference surrounding vehicle longitudinal distances between the self-vehicle and the surrounding vehicle are determined using the P reference surrounding vehicle speeds.
[0317] First differences between P surrounding vehicle longitudinal distances and P reference surrounding vehicle longitudinal distances are respectively obtained, and when the first difference between the i-th surrounding vehicle longitudinal distance and the i-th reference surrounding vehicle longitudinal distance is greater than a first threshold, a first slope value is determined according to the i-th surrounding vehicle longitudinal distance, the i-th reference surrounding vehicle speed and the i-th reference surrounding vehicle longitudinal distance, wherein i is an integer greater than or equal to 1 and less than P.
[0318] Combined with the description in the above embodiments, it can be known that during the driving process of the vehicle, a camera sensor such as a monocular camera can be used to obtain the surrounding road information of multiple time frames to generate a road image sequence, and the points in the real world are converted one by one from the world coordinate system, the camera coordinate system, the image plane coordinate system, and the pixel coordinate system. There is a one-to-one correspondence between the pixel coordinate points in the road image and the points in the world coordinate system. Therefore, the road and obstacle information around the vehicle can be obtained using the road image.
[0319] When calculating the ramp where the ego vehicle is located, a road image sequence corresponding to the ego vehicle on the horizontal road can be obtained, including road images when the ego vehicle is driving on the horizontal road, when the ego vehicle is about to drive from the horizontal road to the first ramp, and when the surrounding vehicle drives to the first ramp. The horizontal road can be a road connected to the first ramp. Afterwards, the three-dimensional road information is obtained using the two-dimensional plane information in the acquired road image, and the three-dimensional road information can include the distance between the ego vehicle and the surrounding vehicle.
[0320] When calculating the longitudinal distance between the vehicle and the surrounding vehicles using the road image, the geometric relationship model of the corresponding points in the three-dimensional scene and the road image can be used. The geometric relationship model can be determined based on the parameters of the camera sensor (equivalent to the image acquisition device). For example, the origin of the image plane coordinate system of the camera, the lateral focal length, the longitudinal focal length, etc. The parameters of the camera sensor can be pre-calibrated or automatically calibrated during driving. This application does not limit the method of obtaining the sensor parameters.
[0321] In an optional embodiment, the surrounding vehicle may be a vehicle traveling within a preset range on the road to the left and right of the vehicle, and the surrounding vehicle may be farther and farther away from the vehicle. Compared with the vehicle that is always in front of the vehicle, the vehicle in the overtaking scenario is selected as the surrounding vehicle, that is, the surrounding vehicle can travel to the first ramp before the vehicle, and the road conditions in front of the vehicle can be foreseen. When the vehicle in front of the vehicle is selected as the surrounding vehicle, the road conditions between the vehicle and the surrounding vehicle cannot be foreseen. Therefore, the vehicle in the overtaking scenario can be selected as the surrounding vehicle to be selected. The vehicle closest to the vehicle among the vehicles that meet the above conditions is determined as the surrounding vehicle.
[0322] As described in the above embodiment, the vehicle can obtain surrounding road information through the on-board image acquisition device and generate a road image, use the pixel information of the surrounding vehicle in the road image to match it with the three-dimensional information points in the world coordinate system, and use the two-dimensional information in the road image to obtain the desired three-dimensional information.
[0323] In an optional implementation, the P road images in the road image sequence may be used to determine the reference surrounding vehicle, and obtain the vehicle type of the surrounding vehicle, so as to determine the vehicle size information such as the vehicle width and length of the surrounding vehicle according to the type of the surrounding vehicle. To determine the size information of the surrounding vehicle according to the type of the surrounding vehicle, a pre-stored vehicle type table may be used to determine the corresponding size information according to the vehicle type in the vehicle type table.
[0324] like Fig.16 As shown, when the ego vehicle 1602 determines the surrounding vehicle 1604 through the road image, the vehicle width 1610 of the surrounding vehicle 1604 can be determined according to the type of the surrounding vehicle 1604. And the pixel width 1612 corresponding to the surrounding vehicle can be determined according to the road image. Then, the longitudinal distance 1606 between the ego vehicle and the surrounding vehicle can be determined using the focal length 1608 of the image acquisition device, the vehicle width 1610 and the pixel width 1612.
[0325] As before, after determining the focal length, vehicle width, and pixel width of the image acquisition device, the longitudinal distance between the vehicle and the surrounding vehicle can be determined using the following formula:
[0326]
[0327] in, represents the longitudinal distance between the vehicle and the surrounding vehicle, W represents the fixed vehicle width of the surrounding vehicle, and w represents the pixel width matching the surrounding vehicle in the road image. Indicates the focal length of the image acquisition device.
[0328] Through the above implementation of the present application, a suitable surrounding vehicle can be selected according to the road image acquired by the self-vehicle, and the road image acquired by the self-vehicle on the horizontal road can be used to determine the vehicle width of the surrounding vehicle, the pixel width of the surrounding vehicle in the road image, and the focal length of the image acquisition device to determine the longitudinal distance between the self-vehicle and the surrounding vehicle. This facilitates the subsequent determination of the first slope value of the first ramp using the longitudinal distance, thereby increasing the accuracy of the subsequent determination of the first slope value.
[0329] In an optional implementation, the longitudinal distance between the vehicle and surrounding vehicles corresponding to a time frame can be determined from a road image corresponding to the time frame, and multiple longitudinal distances corresponding to multiple consecutive time frames can be determined from a sequence of road images corresponding to multiple consecutive time frames.
[0330] In another optional embodiment, after obtaining P longitudinal distances, the P longitudinal distances can be used to estimate the speed of the surrounding vehicle in P time frames to obtain P reference speeds corresponding to the P time frames. The longitudinal distances corresponding to the continuous preset number of frames in the P time frames can be obtained, and the continuous preset number of frames can be set as needed. For example, in the case of taking into account both calculation time and accuracy, 5 consecutive time frames can be selected. The longitudinal distance corresponding to each time frame is derived to obtain the corresponding surrounding vehicle speed, and the surrounding vehicle speed obtained by derivation of the longitudinal distances of multiple consecutive time frames (for example, the pth frame to the p+5th frame, p is an integer greater than or equal to 1 and less than or equal to P) is used to predict the speed of the next continuous time frame (for example, the p+6th frame) to obtain the reference speed of the next continuous time frame. Then, the reference speed obtained by prediction can be used to predict the reference longitudinal distance of the next continuous time frame (the p+6th frame).
[0331] In an optional implementation, the reference speed and reference longitudinal distance of the next continuous time frame are estimated by using the peripheral vehicle speed obtained by derivation of the longitudinal distance of multiple consecutive time frames, which may be an optimal estimation algorithm, such as the least squares method, Kalman filtering, etc. The present application does not limit the specific estimation algorithm, and the estimated value of the next time frame can be predicted based on the known value.
[0332] Furthermore, when there are no lane lines that meet the image quality conditions in the road image, the reference slope value can be calculated using the wheel speed sensor carried by the vehicle. The wheel speed sensor carried by the vehicle can be used to obtain the longitudinal acceleration of the vehicle and the wheel speed of the non-driving wheel of the vehicle, and the wheel speed of the non-driving wheel can be converted to obtain the vehicle speed of the vehicle, and the obtained vehicle speed can be derived to obtain the vehicle acceleration, and the longitudinal acceleration of the vehicle is equal to the sum of the longitudinal vehicle speed change rate and the gravity acceleration along the road surface component. Therefore, the reference slope value is calculated based on the vehicle acceleration and the longitudinal acceleration using the following formula:
[0333]
[0334] in, represents the vehicle acceleration, It represents the longitudinal acceleration of the vehicle.
[0335] In an optional implementation, the gyroscope of the inertial measurement unit may be used to obtain the azimuth angular velocity of the vehicle, and the angular velocity of the pitch angle contained therein may be integrated to obtain the pitch angle of the vehicle, and the pitch angle may be used as a reference slope value.
[0336] As before, when the difference between the first slope value and the reference slope value is greater than a preset threshold, the first slope value can be updated using the reference slope value, which is specifically achieved by the following formula:
[0337]
[0338] in, represents the reference slope value calculated by the inertial measurement unit, Indicates the first slope value calculated using the lane line object or the surrounding vehicle. Indicates the reference slope value calculated using the lane line vanishing point or vehicle acceleration information.
[0339] In an optional implementation, when it is found through road image sequence detection that there are no surrounding vehicles that meet the conditions and lane line objects that meet the image quality conditions around the vehicle, the first slope value can be calculated using the reference slope value. For example, the reference slope values obtained using different methods can be weighted and summed. When using different reference slope values for weighted summation, because the slope value measured by the inertial measurement unit becomes less accurate as the vehicle travels longer, the weights before the different reference slope values can be determined by the vehicle's travel time.
[0340] As shown in the following formula:
[0341]
[0342] in, It can represent the driving time of the vehicle.
[0343] Through the above implementation of the present application, a reference slope value can be obtained in a variety of ways to compare with the first slope value to verify the accuracy of the first slope value. In the case where the error between the first slope value and the reference slope value is large, the first slope value can be updated using the reference slope value to obtain a more accurate first slope value. And in the case where there are no conditions for calculating the first slope value, the first slope value is obtained using the reference slope value. The application scenario of calculating the first slope value is improved, and the accuracy of the first slope value is improved, thereby improving the accuracy of the subsequent calculation of the distance between the vehicle and the target vehicle.
[0344] The specific implementation process of determining the first slope value according to the i-th longitudinal distance, the i-th reference speed and the i-th reference longitudinal distance is described below in conjunction with specific embodiments.
[0345] Assuming the first threshold is 2%, the reference speed corresponding to the i-th time frame is , then the first distance traveled by the peripheral vehicle from the i-1th time frame to the i-th time frame is It can be determined by the following formula:
[0346]
[0347] in, represents the i-th time frame, Represents the i-1th time frame.
[0348] In the i-1th time frame to the i-th time frame, the vehicle can Then, the second distance s traveled by the vehicle from the i-1th time frame to the i-th time frame can be determined using the following formula:
[0349]
[0350] like Fig.19As shown, the position corresponding to the surrounding vehicle 1906 in the i-1th time frame and the position corresponding to the surrounding vehicle 1908 in the i-th time frame can be obtained by using the i-1th reference speed corresponding to the i-1th time frame and the time frame interval between the time frames, and the first distance 1914 traveled by the surrounding vehicle in the interval between the two time frames is determined based on the positions of the two time frames; the position corresponding to the self-vehicle 1902 in the i-1th time frame and the position corresponding to the self-vehicle 1904 in the i-th time frame are obtained based on the self-vehicle speed corresponding to the i-1th time frame and the time frame interval, and the second distance 1910 traveled in the interval between the two time frames is determined based on the positions of the two time frames. Then, a first difference between the i-th longitudinal distance 1918 and the surrounding vehicle length 1912 is obtained, and a second difference between the i-1-th longitudinal distance 1916 and the second distance 1910 is obtained; a third difference between the first difference and the second difference is obtained, and a first slope value 1920 is determined according to a ratio between the third difference and the fourth difference, wherein the fourth difference is the difference between the first distance and the surrounding vehicle length and can be determined by the following formula:
[0351]
[0352] In another optional embodiment, Fig. 20 FIG. 1 is a schematic diagram of a distance measurement method under a ramp condition corresponding to another optional downhill scenario according to an embodiment of the present application. Fig. 20 It can be seen that the angle corresponding to the first slope value 2020 is equal to the slope angle of the first ramp. The position corresponding to the surrounding vehicle 2006 in the i-1 time frame and the position corresponding to the surrounding vehicle 2008 in the i-1 time frame can be obtained by using the i-1 reference speed corresponding to the i-1 time frame and the time frame interval between the time frames, and the first distance 2014 traveled by the surrounding vehicle in the interval between the two time frames is determined based on the positions of the two time frames; the position corresponding to the self-vehicle 2002 in the i-1 time frame and the position corresponding to the self-vehicle 2004 in the i-1 time frame are obtained based on the self-vehicle speed corresponding to the i-1 time frame and the time frame interval, and the second distance 2010 traveled in the interval between the two time frames is determined based on the positions of the two time frames. Then obtain the first difference between the i-th longitudinal distance 2018 and the surrounding vehicle length 2012, and obtain the second difference between the i-1-th longitudinal distance 2016 and the second distance 2010; obtain the third difference between the first difference and the second difference, and determine the first slope value 2020 based on the ratio between the third difference and the fourth difference, wherein the fourth difference is the difference between the first distance and the surrounding vehicle length.
[0353] By sampling the above method, when there is no lane line object that meets the image quality condition in the road image, the surrounding vehicles that meet the condition can be determined using the road image, and the first slope value of the first ramp can be determined using the information of the surrounding vehicles that enter the first ramp before the own vehicle. The vehicle speed and the first slope value of the surrounding vehicles can be calculated using information such as the vehicle width of the surrounding vehicles and the positional relationship between the own vehicle and the surrounding vehicles, and the slope value of the first ramp is obtained by combining the information of the surrounding vehicles.
[0354] As an optional implementation manner, the above-mentioned determining the first slope value of the first slope where the vehicle is currently located according to the road image sequence includes:
[0355] In a case where the road image includes a lane line object that satisfies the image quality condition, obtaining a set of feature points for indicating the lane line object in the road image;
[0356] Obtaining a characteristic variation coefficient of the characteristic point set according to characteristic point sets respectively matched with the plurality of road images;
[0357] A first slope value is determined according to the characteristic variation coefficient.
[0358] It should be noted that, as described in the above embodiment, the image quality condition may be greater than a preset confidence threshold. When a road image contains a lane line object that meets the image quality condition, a feature point set of the lane line object may be obtained. Different algorithms may be set as needed for detecting lane line objects.
[0359] In an optional implementation, the lane line object may be detected using an edge detection method, and the edge of the lane may be identified using the color difference between the road and the lane line, thereby detecting the lane line object.
[0360] In an optional implementation, feature extraction may be performed on the road image to obtain an edge image of the lane line object. The image may be scanned from top to bottom and from left to right to find the lane line boundary points in the image. After all the edges are found, the obtained boundary points are identified based on the continuity and other features of the lane line. For example, the aspect ratio of the circumscribed rectangle of the outline composed of the boundary points is calculated. If it is not a long and narrow rectangle, it is not a lane line object.
[0361] In an optional implementation, after obtaining the feature point set of the lane line object, the feature point set in the road image can be used to determine the position coordinate value of each feature point in the world coordinate system. Then, two feature points can be selected from the feature point set corresponding to a road image, and the feature variation coefficient between the feature points can be obtained by using the difference ratio between the longitudinal coordinate value and the vertical coordinate value corresponding to the feature point. As shown in the following formula:
[0362]
[0363] That is, the characteristic variation coefficient is obtained by dividing the difference between the vertical coordinate values by the difference between the longitudinal coordinate values.
[0364] In an optional implementation, two consecutive feature points in a feature point set of a lane line object corresponding to a road image may be arbitrarily selected to calculate a feature variation coefficient, and the obtained feature variation coefficient may be used as the first slope value.
[0365] In an optional embodiment, the above process can be performed on the feature point set of lane line objects corresponding to multiple road images to obtain the feature variation coefficient corresponding to each road image, and then the multiple feature variation coefficients obtained are weighted averaged to obtain the result as the first slope value.
[0366] In the above manner, when there is a lane line object that meets the road quality condition in the road image, the lane line object can be used to obtain the first slope value of the slope where the vehicle is located. When there is no lane line object that meets the road quality condition, the surrounding vehicle can be used to calculate the first slope value of the slope where the vehicle is located, and the application scenarios are more comprehensive.
[0367] As an optional example, the above-mentioned obtaining the second slope value of the second slope where the target vehicle is located includes:
[0368] According to the Q road images in the road image sequence, Q target vehicle longitudinal distances are respectively obtained, wherein the Q target vehicle longitudinal distances correspond to the Q road images one by one, the target vehicle longitudinal distance is the distance between the target vehicle and the self-vehicle along the driving direction, and Q is an integer greater than 1;
[0369] The speed of the target vehicle in Q time frames is estimated using the Q target vehicle longitudinal distances, and Q reference target vehicle speeds corresponding to the Q time frames are obtained. The Q reference target vehicle longitudinal distances between the self-vehicle and the target vehicle are determined using the Q reference target vehicle speeds.
[0370] The second differences between the Q target vehicle longitudinal distances and the Q reference target vehicle longitudinal distances are respectively obtained. When the second difference between the j-th target vehicle longitudinal distance and the j-th reference target vehicle longitudinal distance is greater than a second threshold, a second slope value is determined according to the j-th target vehicle longitudinal distance, the j-th reference target vehicle speed and the j-th reference target vehicle longitudinal distance, wherein j is an integer greater than or equal to 1 and less than Q.
[0371] As described in the above embodiments, the vehicle can determine the distance between itself and surrounding vehicles by using the width of surrounding vehicles, the width of its image acquisition device, and the pixel width of surrounding vehicles on the road image.
[0372] like Fig.17 As shown, when the self-vehicle 1702 determines the target vehicle 1704 through the road image, the vehicle width 1710 of the target vehicle 1704 can be determined according to the type of the target vehicle 1704. And the pixel width 1712 corresponding to the target vehicle can be determined according to the road image. Afterwards, the target longitudinal distance 1706 between the self-vehicle and the target vehicle can be determined using the focal length 1708 of the image acquisition device, the vehicle width 1710 and the pixel width 1712. It can be determined using the following formula:
[0373]
[0374] Among them, W c represents the fixed width of the target vehicle, w c Represents the pixel width in the road image that matches the target vehicle.
[0375] In an optional embodiment, after obtaining Q target longitudinal distances, the speed of the target vehicle in Q time frames can be estimated using the Q target longitudinal distances to obtain Q reference target vehicle speeds corresponding to the Q time frames. The target longitudinal distances corresponding to the continuous preset number of frames in the Q time frames can be obtained, and the continuous preset number of frames can be set as needed. For example, in the case of taking into account both calculation time and accuracy, 5 consecutive time frames can be selected. The target longitudinal distance corresponding to each time frame is derived to obtain the corresponding target vehicle speed, and the target vehicle speed obtained by derivation of the target longitudinal distances of multiple consecutive time frames (for example, the qth frame to the q+5th frame, q is an integer greater than or equal to 1 and less than or equal to q) is used to predict the speed of the next continuous time frame (for example, the q+6th frame) to obtain the reference target vehicle speed of the next continuous time frame. Then, the predicted reference target vehicle speed can be used to predict the reference target vehicle longitudinal distance of the next continuous time frame (the q+6th frame).
[0376] As an optional implementation method, the above-mentioned determining the second slope value based on the j-th target vehicle longitudinal distance, the j-th reference target vehicle speed and the j-th reference target vehicle longitudinal distance includes: obtaining a third distance traveled by the target vehicle from the j-1th time frame to the j-th time frame based on the j-1th reference target vehicle speed corresponding to the j-1th time frame, and the time frame interval duration between the time frames; obtaining a fourth distance traveled by the vehicle from the j-1th time frame to the j-th time frame based on the vehicle speed corresponding to the j-1th time frame, and the time frame interval duration; obtaining a first product between the fourth distance and the cosine value corresponding to the first slope value, and obtaining a fifth difference between the j-1th target longitudinal distance and the first product; determining the second slope value based on the ratio between the sixth difference and the third distance, wherein the sixth difference is the difference between the j-th target longitudinal distance and the fifth difference.
[0377] In an optional embodiment, after obtaining the reference target vehicle speed corresponding to each time frame, the reference target vehicle longitudinal distance corresponding to each time frame can be determined according to the reference target vehicle speed. When the second difference between the target longitudinal distance obtained by using the vehicle width and the reference target vehicle longitudinal distance is greater than a third threshold, it is determined that the corresponding time frame target vehicle has entered the second ramp. The second slope value can be determined using the target longitudinal distance corresponding to the time frame, the reference target vehicle longitudinal distance and the reference target vehicle speed.
[0378] Optionally, assuming that the first threshold is 2%, the reference target vehicle speed corresponding to the jth time frame is , then the third distance traveled by the target vehicle from the j-1th time frame to the jth time frame is It can be determined using the following formula:
[0379]
[0380] in, represents the jth time frame, represents the j-1th time frame.
[0381] In the j-1th time frame to the jth time frame, the vehicle can Then, the fourth distance s4 traveled by the vehicle from the j-1th time frame to the jth time frame can be determined by the following formula:
[0382]
[0383] like Fig.18As shown, the third distance 1820 traveled by the target vehicle from the j-1st time frame to the j-th time frame can be obtained according to the j-1th reference target vehicle speed corresponding to the j-1th time frame and the time frame interval duration between the time frames. The third distance 1820 can be the distance between the position of the target vehicle corresponding to the j-1st time frame (such as the target vehicle 1806 in the figure) and the position corresponding to the j-th time frame (such as the target vehicle 1808 in the figure). According to the vehicle speed corresponding to the j-1st time frame and the time frame interval duration, the fourth distance 1822 traveled by the vehicle from the j-1st time frame to the j-th time frame is obtained. The third distance 1820 can be the distance between the position of the vehicle corresponding to the j-1st time frame (such as the vehicle 1802 in the figure) and the position corresponding to the j-th time frame (such as the vehicle 1804 in the figure). Obtain the first product between the fourth distance 1822 and the cosine value corresponding to the first slope value 1810, and obtain the fifth difference between the j-1th target longitudinal distance 1816 and the first product; determine the second slope value 1812 according to the ratio between the sixth difference and the third distance 1820, wherein the sixth difference is the difference between the jth target longitudinal distance 1818 and the fifth difference. The ramp turning point 1814 in the figure is the road turning point between the first ramp and the second ramp. As shown in the following formula:
[0384]
[0385] in, Indicates the second slope value.
[0386] Through the above implementation of the present application, the second slope value of the second slope where the target vehicle is located can be determined using the first slope value of the first slope where the vehicle is located, the speed of the vehicle, and the information of the target vehicle. Using the above-obtained first slope value to calculate the second slope value can obtain a more accurate second slope value, thereby improving the accuracy of the subsequent calculation of the distance between the vehicle and the target vehicle.
[0387] As an optional implementation, the above-mentioned determining the slope compensation vehicle distance between the self-vehicle and the target vehicle according to the first slope value, the second slope value and the geometric position relationship between the self-vehicle and the target vehicle includes:
[0388] determining a ramp turning point between the first ramp and the second ramp;
[0389] According to the current road image acquired in the current time frame, the current longitudinal distance between the self-vehicle and the target vehicle is obtained, wherein the current longitudinal distance is the distance between the self-vehicle and the target vehicle determined according to the focal length of the image acquisition device, the vehicle width length of the target vehicle, and the pixel width corresponding to the target vehicle;
[0390] Obtaining a first ratio between the turning point distance and the cosine value corresponding to the first slope value, and obtaining a distance difference between the current longitudinal distance and the turning point distance, wherein the turning point distance is the distance between the vehicle and the turning point of the ramp in the current time frame;
[0391] The first ratio and the second ratio are summed to obtain the slope-compensated vehicle distance, wherein the second ratio is the ratio between the distance difference and the cosine value corresponding to the second slope value.
[0392] It is easy to understand that after determining the first slope value and the second slope value using the method in the above embodiment, the ramp turning point between the first ramp and the second ramp can be determined, and the road image corresponding to the current time frame is used to obtain the vehicle type of the target vehicle, thereby determining the vehicle width of the target vehicle; the pixel width corresponding to the target vehicle is determined according to the road image, and then the target longitudinal distance between the vehicle and the target vehicle is determined as the current longitudinal distance according to the pixel width, the vehicle width of the target vehicle and the focal length of the image acquisition device. The specific calculation method can use the formula in the above embodiment.
[0393] In an optional embodiment, when determining the turning point of the ramp, the turning point distance between the source vehicle and the ramp turning point and the distance between the target vehicle and the ramp turning point (the seventh difference between the current longitudinal distance and the turning point distance) can be determined. The sum of the first ratio between the turning point distance and the cosine value corresponding to the first slope value and the ratio between the seventh difference and the cosine value corresponding to the second slope value can be used as the target vehicle distance.
[0394] like Fig.18 As shown, the ratio between the difference between the current position of the self-vehicle 1804 and the ramp turning point 1814 and the cosine value of the first slope value 1810 can be used as the compensation distance of the self-vehicle on the first slope. The ratio between the difference between the current position of the target vehicle 1808 and the ramp turning point 1814 and the cosine value of the second slope value 1812 is used as the compensation distance of the target vehicle on the second slope. The target vehicle distance can be obtained by adding the two compensation distances. For details, please refer to the following formula:
[0395]
[0396] Where Y represents the longitudinal coordinate of the ramp turning point.
[0397] As an optional example, the specific process of calculating the longitudinal distance Y between the ramp turning point and the vehicle includes:
[0398] 1) When lane lines exist, the visual perception algorithm is used to extract the lane line feature points of the two sections of the road, build a lane line model, and calculate the coordinates of the lane line slope turning point on the imaging plane. , transform the point into three-dimensional space and obtain the ordinate distance Y from the vehicle;
[0399] 2) When there is no lane line but there are vehicles traveling in the same direction faster than the vehicle, obtain the real-time distance change of the vehicle. If the distance changes suddenly, record the longitudinal coordinate Y of the position and regard it as the turning point of the ramp;
[0400] 3) When the lane line and surrounding vehicles traveling in the same direction with a faster speed than the vehicle do not exist, the present invention cannot obtain the slope turning point.
[0401] Through the above implementation of the present application, the target vehicle distance between the self-vehicle and the target vehicle can be obtained by using the first slope value of the first slope, the second slope value of the second slope, and the distance between the two vehicles and the turning point of the slope, so as to obtain a more accurate target vehicle distance, so as to facilitate the subsequent decision-making and control of the self-vehicle.
[0402] In an optional embodiment, when the road image does not include a lane line object that meets the image quality condition, before determining a surrounding vehicle that meets the driving condition from a plurality of vehicles included in the road image, the method further includes one of the following:
[0403] 1) When it is detected that the ego vehicle is in a bumpy state and the bump angles corresponding to the ego vehicle for N consecutive frames meet the first condition, it is determined that the ego vehicle is traveling on the first slope;
[0404] 2) When it is detected that the ego vehicle is in a bumpy state and the error value of the compensation result of the distance compensation performed in the bumpy state satisfies the second condition, it is determined that the target vehicle is traveling on the second slope.
[0405] In another optional embodiment, the vanishing point of the lane line and the calibrated vanishing point of the lane line can be obtained, and the state of the vehicle can be determined based on the two points. The image plane coordinate distance threshold between the lane line vanishing point and the calibrated vanishing point can be set as the ratio of the distance parameter to the currently measured longitudinal distance between the vehicle and the target vehicle, and the distance parameter can be set to 100. The distance parameter can be set as needed, and the middle value of the farthest range detected by the image acquisition device can be selected.
[0406] It should be noted that the above method for determining the slope compensation distance between the ego vehicle and the target vehicle using the slope ranging compensation model is applicable to at least one of the following scenarios:
[0407] 1) Distance compensation for lane lines in ramp scenarios
[0408] Among them, the schematic diagram of the self-vehicle and the target vehicle in front when driving on a slope is as follows: Fig.21 As shown in Fig. 22When driving on a road with a stable slope value and lane lines, the slope of the vehicle is calculated based on the change value of the feature points of the lane lines on both sides of the road; the vehicle body width is obtained according to the category of the target vehicle in front given by the monocular vision perception algorithm, and the angle of the slope on which the target vehicle is driving is inferred from the width value. After calculating the slope turning point, the distance measurement compensation is performed to obtain the true longitudinal distance between the self-vehicle and the target vehicle.
[0409] 2) Distance measurement compensation in a ramp scenario where there is a surrounding vehicle but no lane line
[0410] like Fig.23 As shown in the figure, when the vehicle is driving on a road with a stable slope value but no lane line, the angle of the slope on which the vehicle is driving is inferred by using the width and length of the surrounding vehicle that is faster than the vehicle (driving to the ramp ahead); the vehicle body width is obtained according to the category of the target vehicle ahead given by the monocular vision perception algorithm, and the angle of the slope on which the target vehicle is driving is inferred by using the width value. After calculating the slope turning point, the distance measurement compensation is performed to obtain the true longitudinal distance between the self-vehicle and the target vehicle.
[0411] 3) Distance measurement compensation in ramp scenarios with no surrounding vehicles and no lane lines
[0412] like Fig.24 As shown in the figure, when the ego vehicle has a stable slope value but no lane line or surrounding vehicle, the slope value obtained under the corresponding working condition in the segmented distance compensation module and the slope information given by the IMU are weighted to obtain the angle of the slope on which the ego vehicle is traveling; due to the absence of lane lines and surrounding vehicles, the present invention cannot obtain the slope turning point, so this patent cannot obtain accurate D in this scenario. However, the distance given by the visual perception algorithm can be judged to be close or far according to the slope of the ego vehicle, and this judgment can reduce the false triggering of AEB or FCW.
[0413] In order to understand the above vehicle ranging method more clearly, the following Fig.25 The overall flow chart shown further describes it.
[0414] S2502, collecting and preprocessing image information of the road surface;
[0415] The image information of the road surface includes but is not limited to road images collected from multiple consecutive time frames.
[0416] S2504, determining whether the target vehicle is traveling on a slope;
[0417] If yes, execute step S2534; otherwise, execute step S2506.
[0418] Among them, the method of judging whether the target vehicle is traveling on a slope includes but is not limited to judging based on the change in the distance of the target vehicle. Specifically, the bump ranging compensation model in the above embodiment is used to obtain the difference in the target vehicle distance change between the first time frame and the second time frame after compensation, and the target vehicle distance change difference is used as the current speed value of the target vehicle, and then the current speed value is used to predict the distance traveled by the target vehicle in the next time frame.
[0419] When the next time frame comes, the bump ranging compensation model is used to determine the distance traveled by the target vehicle in the frame. The two distances are compared. When the distance difference is less than 5%, it means that the target vehicle is on a relatively level road. If the distance difference is greater than 5% for 5 consecutive frames, it means that the target vehicle is not on a level road, but is traveling on a slope.
[0420] S2506, determining whether a lane line of the vehicle itself exists;
[0421] If it exists, execute step S2508; otherwise, execute step S2518.
[0422] S2508, obtaining the real-time vanishing point of the lane line;
[0423] For specific examples of vanishing points, reference may be made to the description in the above embodiments, which will not be described in detail here.
[0424] S2510, determining whether there is fluctuation using the vanishing point pixel difference;
[0425] If there is fluctuation, execute step S2512; otherwise, execute step S2530.
[0426] Among them, the method for judging whether the vanishing point pixel difference fluctuates is: setting a threshold value of the image physical coordinate difference between the distant lane line vanishing point and the calibrated vanishing point, and judging whether the vehicle is in a bumpy driving state based on whether the difference fluctuates around the preset threshold.
[0427] S2512, if the vanishing point pixel difference fluctuates around a preset threshold, it is determined that the vehicle is in a bumpy driving state;
[0428] S2514, determining whether the longitudinal distance between the ego vehicle and the target vehicle is less than or equal to 100 meters;
[0429] If it is less than or equal to 100 meters, execute step S2516; otherwise, execute step S2522.
[0430] Among them, when it is determined that the vehicle is in a bumpy driving state, the visual perception algorithm is used to determine the uncompensated distance of the target vehicle, and the distance is used to determine whether the target vehicle in front is within 100 meters in front of the vehicle.
[0431] S2516, determining the bump compensation distance between the ego vehicle and the target vehicle by using the average longitudinal distance of the target vehicle in the adjacent frames weighted by the vehicle tail frame position;
[0432] When the longitudinal distance value of the target vehicle is less than or equal to 100, the target vehicle in front is closer to the vehicle, and the vehicle tail frame position of the target vehicle output by the perception algorithm is relatively accurate. Therefore, the distance measurement result can be compensated by using the average longitudinal distance value of the target vehicle in the weighted adjacent frames of the vehicle tail frame position. For details, please refer to the description in the above embodiment, which will not be repeated here.
[0433] S2518, using the own vehicle wheel speed sensor / own vehicle air suspension, determining that the own vehicle is in a bumpy driving state;
[0434] S2520, determining whether the acquired slope value of the vehicle is fluctuating;
[0435] If so, it is determined that the vehicle is in a bumpy driving state and step S2512 is executed; otherwise, step S2528 is executed.
[0436] Specifically, when no lane line is detected on the road on which the vehicle is driving, the longitudinal acceleration of the vehicle and the wheel speed of the non-driving wheel are collected using the wheel speed sensor on the vehicle body, and the acceleration applied by the vehicle is obtained by derivation, and the current driving slope of the vehicle is calculated based on the acceleration formula. If the actual slope value obtained fluctuates up and down, it is determined that the vehicle is in a bumpy driving state.
[0437] Similarly, when the vehicle is equipped with air suspension, the height information output by the suspension height sensor is used to obtain the current height change of the vehicle. If the height change fluctuates up and down, it is determined that the vehicle is in a bumpy driving state.
[0438] S2522, when the vehicle is in a bumpy driving state and the longitudinal distance to the target vehicle is greater than 100 meters, further determining whether it is daytime;
[0439] If it is daytime, execute step S2524; otherwise, execute step S2526.
[0440] S2524, compensating the distance between the ego vehicle and the target vehicle according to the average longitudinal distance of the target vehicle in the weighted adjacent frames of the wheel contact point;
[0441] Since the longitudinal distance of the target vehicle is greater than 100 meters, the target vehicle is far away from the vehicle, and the vehicle tail frame output by the visual perception algorithm is prone to misdetection, while the wheel contact point is more accurate, and the vehicle is in a bumpy driving state, the uncompensated longitudinal distance value of the target vehicle output by the visual perception algorithm also fluctuates around the true value. Therefore, the distance measurement result can be compensated by using the mean longitudinal distance of the target vehicle in the adjacent frames weighted by the wheel contact point. The specific calculation process can refer to the description in the above embodiment, which will not be repeated here.
[0442] S2526, compensating the distance measurement result by using the mean longitudinal distance of the target vehicle of the longitudinal unknown weighted adjacent frames of the vehicle light;
[0443] When the longitudinal distance of the target vehicle given by the monocular visual perception algorithm is greater than 100 meters and the current time is night, the wheel contact point detection cannot be accurate, but the longitudinal position of the headlight is relatively clear, which can provide a reference for distance compensation, and when the vehicle is in a bumpy driving state, the uncompensated longitudinal distance value of the target vehicle given by the visual perception algorithm also fluctuates around the true value, so the distance measurement result can be compensated by using the longitudinal position of the headlight to weight the average longitudinal distance value of the target vehicle in the adjacent frames. The specific calculation process can refer to the description in the above embodiment, which will not be repeated here.
[0444] S2528, determining whether the obtained slope value of the vehicle fluctuates within a very small range around 0;
[0445] If yes, execute step S2530; otherwise, execute step S2532.
[0446] S2530, determining that the vehicle is traveling on a horizontal road;
[0447] At this time, the vehicle is not in a bumpy driving state and is traveling on a level road, so no distance compensation is required.
[0448] S2532, determining that the vehicle is in a state of driving on a slope;
[0449] S2534, using the vehicle width to infer the angle of the lane in which the target vehicle is traveling;
[0450] Specifically, after estimating the slope value of the ramp on which the vehicle is located, the vehicle type of the target vehicle output by the visual perception algorithm is obtained, and the fixed vehicle management is obtained by looking up the table according to the vehicle type of the target vehicle, the pixel width of the target vehicle on the imaging plane is obtained, and the slope value of the lane in which the target vehicle is traveling is calculated using the formula in the above embodiment.
[0451] S2536, determining whether a lane line of the own vehicle exists;
[0452] If it exists, execute step S2538; otherwise, execute step S2540.
[0453] S2538, calculating the slope value of the slope where the vehicle is located according to the characteristic value change value of the lane lines on both sides of the road nearby;
[0454] For details, please refer to the description in the above embodiment, which will not be repeated here.
[0455] S2540, determining whether there is a vehicle within 20 meters around the vehicle;
[0456] If so, execute step S2546; otherwise, execute step S2548.
[0457] S2542, calculate the turning point of the ramp;
[0458] 1) When lane lines exist, the visual perception algorithm is used to extract the lane line feature points of the two sections of the road, build a lane line model, and calculate the coordinates of the lane line slope turning point on the imaging plane. , transform the point into three-dimensional space and obtain the ordinate distance Y from the vehicle;
[0459] 2) When there is no lane line but there are vehicles traveling in the same direction faster than the vehicle, obtain the real-time distance change of the vehicle. If the distance changes suddenly, record the longitudinal coordinate Y of the position and regard it as the turning point of the ramp;
[0460] 3) When the lane line and surrounding vehicles traveling in the same direction with a faster speed than the vehicle do not exist, the present invention cannot obtain the slope turning point.
[0461] S2544, calculating the target vehicle distance;
[0462] The distance measurement compensation is performed according to the slope angle of the own vehicle, the slope angle of the target vehicle and the longitudinal distance of the slope turning point. For details, reference may be made to the description in the above embodiment.
[0463] S2546, using the width of the surrounding vehicle to infer the slope angle of the ramp on which the vehicle is traveling;
[0464] When the vehicle is traveling on a road with a stable slope value and there are vehicles within 20 meters around it but no high-quality lane lines, that is, there are vehicles traveling within 20 meters on the left and right roads of the vehicle, and the vehicle is moving from far to near and then far away, that is, the vehicle is faster than the vehicle and drives to the front ramp first (the vehicle closest to the vehicle that meets this condition is set as the surrounding vehicle), the road slope angle is deduced based on the detected width and length of the vehicle. Specifically, the type of vehicle traveling within 20 meters on the left and right roads of the vehicle is obtained by the visual perception algorithm, and the fixed vehicle width W and vehicle length L are obtained from the table according to the vehicle type to obtain the pixel width of the surrounding vehicle on the imaging plane , determine the longitudinal distance between the vehicle and the vehicle .
[0465] By vertical distance The speed of the surrounding vehicle can be obtained by taking the derivative. According to the speed of 5 consecutive frames and the bumpiness within 5 frames output by the segmented distance compensation module, it can be concluded that the vehicle is currently on a straight road or a stable slope and the speed and distance of the surrounding vehicle at the next moment can be predicted. If the error between the distance of the surrounding vehicle obtained by the speed and the distance calculated based on the vehicle width is greater than 2%, it means that the vehicle has been traveling uphill or downhill. The time when the distance error is found is recorded as , then the previous moment is , the predicted weekly vehicle speed is , determine the distance traveled by the vehicle ; At the same time, determine the vehicle and According to the vehicle speed Determine the distance traveled .
[0466] The slope angle of the slope on which the vehicle is traveling is calculated using the road slope calculation formula in the above embodiment.
[0467] S2548, weighting the slope value of the ego vehicle calculated under the bumpy working condition and the slope value output by the IMU unit to obtain the slope value of the slope on which the ego vehicle is traveling;
[0468] When there is no car and lane line within 20m, the slope value obtained under the corresponding working condition in the segmented distance compensation module is used. Slope information from IMU Specifically, the longer the vehicle is driven on the slope, the greater the cumulative error of the IMU, and the less accurate the measured road slope angle. is the weighted coefficient, and the driving slope value of the vehicle is obtained by .
[0469] S2550, determining the target vehicle distance.
[0470] When the lane line and surrounding vehicles traveling in the same direction faster than the ego vehicle do not exist, the slope turning point cannot be obtained, and the accurate D cannot be obtained. However, the d given by the visual perception algorithm can be judged to be too close or too far according to the slope of the ego vehicle, and this judgment can reduce the false triggering of AEB or FCW.
[0471] In addition, from Fig.26 It can also be seen from the overall schematic diagram that the embodiment of the present application is mainly aimed at improving the problem of inaccurate distance measurement under bumpy driving conditions. To this end, an adaptive segmented distance measurement compensation method is proposed (corresponding to the method of using the bumpy distance measurement compensation model in the above embodiment to compensate for the distance between the own vehicle and the target vehicle), which can improve the accuracy of the distance measurement result.
[0472] Specifically, the technical solution of the present application can determine the current driving condition of the vehicle or road conditions based on the lane line vanishing point and the calibrated vanishing point, and when it is determined that the vehicle is in a bumpy driving state, the distance measurement compensation is performed in the following manner:
[0473] When a lane line is detected on the road on which the ego vehicle is traveling, the wheel speed sensor on the ego vehicle body is used to collect the longitudinal acceleration of the ego vehicle and the wheel speed of the non-driving wheel, and the actual acceleration of the ego vehicle is derived. The estimated slope of the ego vehicle's current driving is calculated based on the acceleration formula, and segmented ranging compensation is performed using the average of the neighboring frame distances and the grounding point or taillight weighting based on 100 meters and day or night conditions.
[0474] And according to the change of the target vehicle distance, it is judged whether the target vehicle is on a horizontal road. If the target vehicle is driving on a horizontal road, the bump ranging compensation model can be used to solve the problem of large ranging error under bumpy driving conditions.
[0475] At the same time, in order to solve the problem of inaccurate distance measurement under slope driving conditions, the embodiment of the present application also proposes dual-vehicle slope distance measurement compensation (corresponding to the above-mentioned slope distance measurement compensation model to compensate for the distance between the own vehicle and the target vehicle), which can better deal with the distance measurement error caused by the change of the pitch angle of the vehicle going uphill and downhill.
[0476] Specifically, the slope value of the road on which the ego vehicle is currently traveling is adaptively estimated based on the surrounding vehicles or road conditions, and the type of the target vehicle in front is determined using a visual perception algorithm, thereby obtaining the body width of the target vehicle. The slope of the target vehicle is then inferred using the body width, and the slope position relationship between the current ego vehicle and the target vehicle is determined. Finally, the compensated vehicle distance between the ego vehicle and the target vehicle in the ramp scenario is calculated.
[0477] It can be seen that the technical solution in the embodiment of the present application can adapt to the ranging compensation under various complex working conditions, improve the accuracy of the vehicle ranging results, and enhance the robustness of the perception algorithm.
[0478] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0479] According to another aspect of the embodiments of the present application, a vehicle distance measurement device for implementing the above vehicle distance measurement method is also provided. Fig. 27 As shown, the device comprises:
[0480] The first processing unit 2702 is used to determine a bump odometry compensation model that matches the position relationship according to the position relationship between the ego vehicle and the target vehicle when the ego vehicle is in a bumpy driving state, wherein the bump odometry compensation model is a geometric model determined based on the ego vehicle and the target vehicle;
[0481] The first acquisition unit 2704 is used to acquire the bump compensation vehicle distance between the ego vehicle and the target vehicle according to the bump ranging compensation model;
[0482] The second processing unit 2706 is used to determine the bump compensation vehicle distance as the target vehicle distance between the self-vehicle and the target vehicle when the verification result of the bump compensation vehicle distance meets the vehicle distance verification condition;
[0483] The third processing unit 2708 is used to obtain the slope-compensated vehicle distance between the own vehicle and the target vehicle according to the slope distance compensation model when the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, and use the slope compensation vehicle distance as the target vehicle distance between the own vehicle and the target vehicle.
[0484] Optionally, the above device further includes:
[0485] a second acquisition unit, for acquiring a compensation vehicle distance difference between a first bump compensation vehicle distance corresponding to the first time frame and a second bump compensation vehicle distance corresponding to the second time frame after acquiring the bump compensation vehicle distance between the self-vehicle and the target vehicle according to the bump ranging compensation model, and determining a first-order derivative of the compensation vehicle distance difference as a reference target vehicle speed of the target vehicle between the first time frame and the second time frame;
[0486] a fourth processing unit, configured to determine a reference target vehicle displacement corresponding to a second time frame and a third time frame according to a reference target vehicle speed, wherein the first time frame, the second time frame and the third time frame are three consecutive sampling time frames, and the sampling time frame corresponds to a sampling time of an image sensor on the ego vehicle;
[0487] A fifth processing unit, configured to determine a third reference vehicle distance between the ego vehicle and the target vehicle corresponding to the third time frame according to the displacement of the reference target vehicle;
[0488] a third acquiring unit, configured to acquire a compensation error between the third bump compensation vehicle distance and a third reference vehicle distance when a third bump compensation vehicle distance corresponding to a third time frame is acquired;
[0489] a sixth processing unit, configured to determine that the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition when the compensation error degrees corresponding to each of N consecutive time frames are greater than or equal to the target threshold, wherein N is an integer greater than or equal to 1;
[0490] The seventh processing unit is used to determine that the verification result of the bump compensation vehicle distance meets the vehicle distance verification condition when at least one of the compensation error degrees corresponding to N consecutive time frames is smaller than the target threshold.
[0491] Optionally, the first processing unit 2702 includes:
[0492] A first acquisition module is used to acquire a road image currently collected by the ego vehicle and a first reference vehicle distance between the ego vehicle and a target vehicle detected by the ego vehicle, wherein the road image includes a target image area matching the target vehicle;
[0493] A first processing module is used to determine a bump ranging compensation model according to a first geometric object corresponding to the ego vehicle and located on a target slope, a second geometric object corresponding to the target vehicle, a target point on the first geometric object, and a first target vertex on the second geometric object that matches the vehicle tail frame area, when the first reference vehicle distance is less than or equal to the target distance, wherein the first target vertex is used to indicate a lower border of the vehicle tail frame area of the target vehicle in the road image;
[0494] A second acquisition module is used to acquire a taillight description parameter corresponding to the target vehicle when the first reference vehicle distance is greater than the target distance, wherein the taillight description parameter is used to indicate an enabled state of the taillight of the target vehicle;
[0495] A second processing module is used to determine a bump ranging compensation model according to a first geometric object located on a target slope, a second geometric object, a target point on the first geometric object, and a second target vertex on the second geometric object that matches a rear area, when the taillight description parameter indicates that the taillight of the target vehicle is in an enabled state, wherein the second target vertex is used to indicate a lower border of a taillight area of the target vehicle in the road image;
[0496] The third processing module is used to determine a bump odometry compensation model based on a first geometric object located on a target slope, a second geometric object, a target point on the first geometric object, and a third target vertex on the second geometric object that matches a wheel contact point when the taillight description parameter indicates that the taillight of the target vehicle is not enabled, wherein the third target vertex is used to indicate a wheel contact point of the target vehicle in a road image.
[0497] Optionally, the first obtaining unit 2704 includes:
[0498] A third acquisition module is used to acquire a first reference vehicle distance between the ego vehicle and the target vehicle detected by the ego vehicle image, and determine a reference coefficient according to a distance interval corresponding to the first reference vehicle distance, wherein the reference coefficient and the distance interval have a positive correlation;
[0499] a fourth processing module, configured to determine a second reference vehicle distance based on a bump ranging compensation model that matches the position relationship;
[0500] a fifth processing module, configured to determine a first ratio between the first reference vehicle distance and the reference coefficient as a first weight coefficient matching the first reference vehicle distance, and to determine a difference between 1 and the first ratio as a second weight coefficient matching the second reference vehicle distance;
[0501] The sixth processing module is used to determine the bump compensation vehicle distance by weighted summing up the first reference vehicle distance, the second reference vehicle distance, the first weight coefficient matching the first reference vehicle distance, and the second weight coefficient matching the second reference vehicle distance.
[0502] Optionally, the above device further includes:
[0503] a fourth acquisition unit, configured to acquire a road image sequence acquired by the ego vehicle before determining a bump odometry compensation model matching the positional relationship between the ego vehicle and the target vehicle according to the positional relationship between the ego vehicle and the target vehicle, wherein the road image sequence includes road images acquired by the ego vehicle in a plurality of consecutive time frames;
[0504] an eighth processing unit, configured to determine, when a road image includes a plurality of lane line objects, lane line vanishing points corresponding to the plurality of road images respectively according to the lane line objects respectively included in the road image, wherein the lane line vanishing points are determined according to object pointing directions of the plurality of lane line objects in the road image;
[0505] A fifth acquisition unit, configured to acquire image position relationship features of the plurality of lane line vanishing points according to respective image positions of the plurality of lane line vanishing points;
[0506] A ninth processing unit, configured to determine that the vehicle is in a bumpy driving state when the image position relationship feature satisfies the first image condition;
[0507] The tenth processing unit is used to determine that the ego vehicle is in a ramp driving state when the image position relationship feature meets the second image condition; obtain the slope compensation vehicle distance between the ego vehicle and the target vehicle according to the ramp distance compensation model; and use the slope compensation vehicle distance as the target vehicle distance between the ego vehicle and the target vehicle.
[0508] Optionally, the eighth processing unit includes:
[0509] a seventh processing module, for determining a calibrated vanishing point corresponding to each of the plurality of road images;
[0510] A fourth acquisition module, used to sequentially acquire image position differences between calibrated vanishing points and corresponding lane line vanishing points in a plurality of road images;
[0511] an eighth processing module, configured to determine that the vehicle object is currently in a bumpy state when the image position difference corresponding to each of M consecutive road images is greater than or equal to a first target threshold, wherein M is an integer greater than 1;
[0512] The ninth processing module is used to determine that the vehicle is in a slope driving state when the image position difference corresponding to each of M consecutive road images is greater than or equal to the second target threshold, and the difference variance of the M consecutive image position differences is less than or equal to the third target threshold, wherein the first target threshold is greater than the second target threshold, and the second target threshold is greater than 0.
[0513] Optionally, the above device further includes:
[0514] a fifth acquisition unit, configured to acquire a longitudinal acceleration sequence of the ego vehicle and an ego vehicle acceleration sequence when the road image does not include a plurality of lane line objects, wherein the longitudinal acceleration sequence includes longitudinal accelerations corresponding to a plurality of consecutive time frames, the ego vehicle acceleration sequence includes ego vehicle accelerations corresponding to a plurality of consecutive time frames, the longitudinal acceleration is the acceleration of the ego vehicle in the driving direction, and the ego vehicle acceleration is the actual acceleration of the ego vehicle;
[0515] a sixth acquisition unit, configured to acquire a target longitudinal acceleration corresponding to a target time frame from the longitudinal acceleration sequence, and to acquire a target ego vehicle acceleration corresponding to a target time frame from the ego vehicle acceleration sequence;
[0516] an eleventh processing unit, for determining a target slope angle of the ego vehicle object according to an acceleration angle between the target longitudinal acceleration and the target ego vehicle acceleration;
[0517] a twelfth processing unit, configured to determine a slope angle sequence according to target slope angles respectively corresponding to a plurality of continuous time frames;
[0518] The thirteenth processing unit is used to determine that the vehicle object is currently in a bumpy state when L consecutive target slope angles in the slope angle sequence are greater than or equal to the target angle, where L is an integer greater than 1.
[0519] Optionally, the third processing unit 2708 includes:
[0520] A fifth acquisition module, used to acquire a road image sequence collected by the vehicle;
[0521] a tenth processing module, configured to determine, according to the road image sequence, a first slope value of a first slope where the ego vehicle is currently located, and a second slope value of a second slope where the target vehicle is located;
[0522] The eleventh processing module is used to determine the slope compensation vehicle distance between the self-vehicle and the target vehicle according to the first slope value, the second slope value and the geometric position relationship between the self-vehicle and the target vehicle.
[0523] Optionally, the tenth processing module includes:
[0524] A first processing submodule is used to determine a surrounding vehicle that meets the driving condition from a plurality of vehicles included in the road image when the road image in the road image sequence collected by the ego vehicle does not include a lane line object that meets the image quality condition, wherein the surrounding vehicle is a vehicle that is in an adjacent lane and has traveled to the first ramp before the ego vehicle;
[0525] The first acquisition submodule is used to respectively acquire P surrounding vehicle longitudinal distances according to the P road images in the road image sequence, wherein the P surrounding vehicle longitudinal distances correspond to the P road images one by one, the surrounding vehicle longitudinal distance is the distance between the surrounding vehicle and the own vehicle along the driving direction, and P is an integer greater than 1;
[0526] The second processing submodule is used to estimate the speed of the surrounding vehicle in P time frames using the P surrounding vehicle longitudinal distances, obtain P reference surrounding vehicle speeds corresponding to the P time frames, and use the P reference surrounding vehicle speeds to respectively determine P reference surrounding vehicle longitudinal distances between the self-vehicle and the surrounding vehicle;
[0527] The second acquisition submodule is used to respectively acquire first differences between P surrounding vehicle longitudinal distances and P reference surrounding vehicle longitudinal distances, and when the first difference between the i-th surrounding vehicle longitudinal distance and the i-th reference surrounding vehicle longitudinal distance is greater than a first threshold, determine a first slope value according to the i-th surrounding vehicle longitudinal distance, the i-th reference surrounding vehicle speed and the i-th reference surrounding vehicle longitudinal distance, wherein i is an integer greater than or equal to 1 and less than P.
[0528] Optionally, the tenth processing module includes:
[0529] A third acquisition submodule is used to acquire a set of feature points indicating the lane line object in the road image when the road image includes the lane line object that meets the image quality condition;
[0530] A fourth acquisition submodule, configured to acquire a feature variation coefficient of a feature point set according to feature point sets respectively matched with a plurality of road images;
[0531] The third processing submodule is used to determine the first slope value according to the characteristic variation coefficient.
[0532] Optionally, the tenth processing module includes:
[0533] a fifth acquisition submodule, for respectively acquiring Q target vehicle longitudinal distances according to the Q road images in the road image sequence, wherein the Q target vehicle longitudinal distances correspond to the Q road images one by one, the target vehicle longitudinal distance is the vehicle distance between the target vehicle and the self-vehicle along the driving direction, and Q is an integer greater than 1;
[0534] A fourth processing submodule is used to estimate the speed of the target vehicle in Q time frames using the Q target vehicle longitudinal distances, obtain Q reference target vehicle speeds corresponding to the Q time frames, and use the Q reference target vehicle speeds to respectively determine Q reference target vehicle longitudinal distances between the self-vehicle and the target vehicle;
[0535] The sixth acquisition submodule is used to respectively obtain the second difference between the Q target vehicle longitudinal distances and the Q reference target vehicle longitudinal distances. When the second difference between the j-th target vehicle longitudinal distance and the j-th reference target vehicle longitudinal distance is greater than a second threshold, the second slope value is determined according to the j-th target vehicle longitudinal distance, the j-th reference target vehicle speed and the j-th reference target vehicle longitudinal distance, wherein j is an integer greater than or equal to 1 and less than Q.
[0536] Optionally, the eleventh processing module includes:
[0537] a fifth processing submodule, for determining a ramp turning point between the first ramp and the second ramp;
[0538] A seventh acquisition submodule is used to acquire the current longitudinal distance between the vehicle and the target vehicle according to the current road image acquired in the current time frame, wherein the current longitudinal distance is the distance between the vehicle and the target vehicle determined according to the focal length of the image acquisition device, the vehicle width length of the target vehicle, and the pixel width corresponding to the target vehicle;
[0539] an eighth acquisition submodule, for acquiring a first ratio between the turning point distance and the cosine value corresponding to the first slope value, and acquiring a distance difference between the current longitudinal distance and the turning point distance, wherein the turning point distance is the distance between the vehicle and the turning point of the ramp in the current time frame;
[0540] The sixth processing submodule is used to sum the first ratio and the second ratio to obtain the slope-compensated vehicle distance, wherein the second ratio is the ratio between the distance difference and the cosine value corresponding to the second slope value.
[0541] By applying the above device to the case where the vehicle is judged to be in a bumpy driving state, the positional relationship between the vehicle and the target vehicle is used to determine the bump compensation distance between the vehicle and the target vehicle; if the bump compensation distance verification result satisfies the distance verification condition, the bump compensation distance is determined to be the target distance between the vehicle and the target vehicle, otherwise the slope compensation distance obtained by the slope distance compensation model is used as the target distance between the vehicle and the target vehicle. In other words, by adaptively selecting a distance measurement scheme that matches the current road condition based on the judgment result of the road condition, the accuracy of the distance measurement result between the vehicle and the target vehicle is improved, thereby solving the technical problem of inaccurate vehicle distance measurement results in the prior art.
[0542] For the specific implementation, reference may be made to the example shown in the above vehicle ranging method, which will not be described in detail in this example.
[0543] Among them, the memory 2802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the vehicle distance measurement method and device in the embodiment of the present invention. The processor 2804 executes various functional applications and data processing by running the software programs and modules stored in the memory 2802, that is, to implement the above-mentioned vehicle distance measurement method. The memory 2802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 2802 may further include a memory remotely arranged relative to the processor 2804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 2802 can be specifically, but not limited to, used to store target vehicle distances, slope compensation vehicle distances, etc. As an example, such as Fig.28 As shown, the memory 2802 may include, but is not limited to, the first processing unit 2702, the first acquisition unit 2704, the second processing unit 2706, and the third processing unit 2708 in the vehicle distance measuring device. In addition, other module units in the vehicle distance measuring device may also be included but are not limited to, which will not be repeated in this example.
[0544] Optionally, the transmission device 2806 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 2806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 2806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0545] In addition, the electronic device further includes: a display 2808, and a connection bus 2810, which is used to connect various module components in the electronic device.
[0546] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0547] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0548] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0549] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.
[0550] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0551] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0552] S1, when the ego vehicle is in a bumpy driving state, according to the positional relationship between the ego vehicle and the target vehicle, determining a bump odometry compensation model that matches the positional relationship, wherein the bump odometry compensation model is a geometric model determined based on the ego vehicle and the target vehicle;
[0553] S2, obtaining the bump compensation distance between the ego vehicle and the target vehicle according to the bump ranging compensation model;
[0554] S3, when the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition, determining the bump compensation vehicle distance as the target vehicle distance between the self-vehicle and the target vehicle;
[0555] S4, when the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, the slope compensation vehicle distance between the ego vehicle and the target vehicle is obtained according to the slope distance compensation model, and the slope compensation vehicle distance is used as the target vehicle distance between the ego vehicle and the target vehicle.
[0556] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the electronic device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0557] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0558] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0559] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0560] In the several embodiments provided in the present application, it should be understood that the disclosed user equipment can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0561] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0562] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0563] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A vehicle ranging method, characterized in that: include: When the ego vehicle is in a bumpy driving state, a bump odometry compensation model matching the positional relationship between the ego vehicle and the target vehicle is determined according to the positional relationship between the ego vehicle and the target vehicle, wherein the bump odometry compensation model is a geometric model determined based on the ego vehicle and the target vehicle; According to the bump ranging compensation model, obtaining the bump compensated vehicle distance between the self-vehicle and the target vehicle; When the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition, determining the bump compensation vehicle distance as the target vehicle distance between the own vehicle and the target vehicle; When the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, obtaining the slope compensation vehicle distance between the ego vehicle and the target vehicle according to the slope ranging compensation model, and using the slope compensation vehicle distance as the target vehicle distance between the ego vehicle and the target vehicle; The method further includes: obtaining a compensated vehicle distance difference between a first bump compensation vehicle distance corresponding to a first time frame and a second bump compensation vehicle distance corresponding to a second time frame, and determining a first-order derivative of the compensated vehicle distance difference as a reference target vehicle speed of the target vehicle between the first time frame and the second time frame; Determining a reference target vehicle displacement corresponding to the target vehicle between the second time frame and the third time frame according to the reference target vehicle speed, wherein the first time frame, the second time frame and the third time frame are three consecutive sampling time frames, and the sampling time frames correspond to the sampling time of the image sensor on the ego vehicle; Determine a third reference vehicle distance between the ego vehicle and the target vehicle corresponding to the third time frame according to the reference target vehicle displacement; When a third bump compensation vehicle distance corresponding to the third time frame is obtained, obtaining a compensation error between the third bump compensation vehicle distance and the third reference vehicle distance; When the compensation error degrees corresponding to N consecutive time frames are all greater than or equal to the target threshold, determining that the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, wherein N is an integer greater than or equal to 1; When at least one of the compensation error degrees corresponding to N consecutive time frames is smaller than the target threshold, it is determined that the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition.
2. The method according to claim 1, characterized in that The step of determining a bump ranging compensation model matching the positional relationship between the ego vehicle and the target vehicle includes: Acquire a road image currently captured by the ego vehicle and a first reference vehicle distance between the ego vehicle and the target vehicle detected by the ego vehicle, wherein the road image includes a target image area matching the target vehicle; In the case where the first reference vehicle distance is less than or equal to the target distance, the bump ranging compensation model is determined according to a first geometric object corresponding to the ego vehicle and located on the target slope, a second geometric object corresponding to the target vehicle, a target point on the first geometric object, and a first target vertex on the second geometric object that matches the vehicle tail frame area, wherein the first target vertex is used to indicate a lower border of the vehicle tail frame area of the target vehicle in the road image; When the first reference vehicle distance is greater than the target distance, obtaining a taillight description parameter corresponding to the target vehicle, wherein the taillight description parameter is used to indicate an enabled state of the taillight of the target vehicle; In a case where the taillight description parameter indicates that the taillight of the target vehicle is in an enabled state, determining the bump ranging compensation model according to the first geometric object located on the target slope, the second geometric object, the target point on the first geometric object, and a second target vertex on the second geometric object that matches the rear end and other areas, wherein the second target vertex is used to indicate a lower border of the taillight area of the target vehicle in the road image; When the taillight description parameters indicate that the taillights of the target vehicle are not enabled, the bump odometry compensation model is determined based on the first geometric object located on the target slope, the second geometric object, the target point on the first geometric object, and a third target vertex on the second geometric object that matches the wheel contact point, wherein the third target vertex is used to indicate the wheel contact point of the target vehicle in the road image.
3. The method according to claim 1, characterized in that The step of obtaining the bump-compensated vehicle distance between the vehicle and the target vehicle according to the bump-ranging compensation model includes: Acquire a first reference vehicle distance between the ego vehicle and the target vehicle detected by the ego vehicle, and determine a reference coefficient according to a distance interval corresponding to the first reference vehicle distance, wherein the reference coefficient has a positive correlation with the distance interval; Determining a second reference vehicle distance based on the bump ranging compensation model that matches the positional relationship; Determine a first ratio between the first reference vehicle distance and the reference coefficient as a first weight coefficient matching the first reference vehicle distance, and determine a difference between 1 and the first ratio as a second weight coefficient matching the second reference vehicle distance; The bump compensation vehicle distance is determined as a weighted sum of the first reference vehicle distance, the second reference vehicle distance, the first weight coefficient matching the first reference vehicle distance, and the second weight coefficient matching the second reference vehicle distance.
4. The method according to claim 1, characterized in that: Before determining the bump odometry compensation model matching the positional relationship between the ego vehicle and the target vehicle, the method further includes: Acquire a road image sequence collected by the vehicle, wherein the road image sequence includes road images collected by the vehicle in a plurality of consecutive time frames; In the case where the road image includes a plurality of lane line objects, respectively determining lane line vanishing points corresponding to the plurality of road images according to the lane line objects respectively included in the road images, wherein the lane line vanishing points are determined according to object pointing directions of the plurality of lane line objects in the road image; Acquire image position relationship features of the plurality of lane line vanishing points according to respective image positions of the plurality of lane line vanishing points; When the image position relationship feature satisfies the first image condition, determining that the vehicle is in the bumpy driving state; When the image position relationship feature satisfies the second image condition, it is determined that the ego vehicle is in a ramp driving state; the slope-compensated vehicle distance between the ego vehicle and the target vehicle is obtained according to the ramp ranging compensation model; and the slope-compensated vehicle distance is used as the target vehicle distance between the ego vehicle and the target vehicle.
5. The method according to claim 4, characterized in that After determining lane line vanishing points corresponding to the plurality of road images respectively according to the lane line objects respectively included in the road images, the method further includes: Determining a calibrated vanishing point corresponding to each of the plurality of road images; Sequentially acquiring image position differences between the calibrated vanishing points and the corresponding lane line vanishing points in a plurality of the road images; When the image position difference corresponding to each of the M consecutive road images is greater than or equal to a first target threshold, determining that the vehicle object is currently in a bumpy state, wherein M is an integer greater than 1; When the image position difference corresponding to each of M consecutive road images is greater than or equal to the second target threshold, and the difference variance of M consecutive image position differences is less than or equal to the third target threshold, it is determined that the vehicle is in a slope driving state, wherein the first target threshold is greater than the second target threshold, and the second target threshold is greater than 0.
6. The method according to claim 4, characterized in that After determining lane line vanishing points corresponding to the plurality of road images respectively according to the lane line objects respectively included in the road images, the method further includes: In the case that the road image does not include the plurality of lane line objects, a longitudinal acceleration sequence of the ego vehicle and an ego vehicle acceleration sequence are obtained, wherein the longitudinal acceleration sequence includes longitudinal accelerations corresponding to the plurality of continuous time frames, the ego vehicle acceleration sequence includes ego vehicle accelerations corresponding to the plurality of continuous time frames, the longitudinal acceleration is the acceleration of the ego vehicle in the driving direction, and the ego vehicle acceleration is the actual acceleration of the ego vehicle; Acquire a target longitudinal acceleration corresponding to a target time frame from the longitudinal acceleration sequence, and acquire a target ego-vehicle acceleration corresponding to the target time frame from the ego-vehicle acceleration sequence; Determining a target slope angle of the ego vehicle object according to an acceleration angle between the target longitudinal acceleration and the target ego vehicle acceleration; Determine a slope angle sequence according to the target slope angles respectively corresponding to the plurality of continuous time frames; When L consecutive target slope angles in the slope angle sequence are all greater than or equal to the target angle, it is determined that the vehicle object is currently in a bumpy state, where L is an integer greater than 1.
7. The method according to any one of claims 1 or 4, characterized in that: The step of obtaining the slope-compensated vehicle distance between the ego vehicle and the target vehicle according to the slope ranging compensation model includes: Acquire a road image sequence collected by the vehicle; Determine, according to the road image sequence, a first slope value of a first slope where the ego vehicle is currently located, and a second slope value of a second slope where the target vehicle is located; The slope compensation vehicle distance between the ego vehicle and the target vehicle is determined according to the first slope value, the second slope value, and a geometric position relationship between the ego vehicle and the target vehicle.
8. The method according to claim 7, characterized in that The determining, according to the road image sequence, a first slope value of a first slope on which the vehicle is currently located, comprises: In a case where the road image in the road image sequence collected by the ego vehicle does not include a lane line object that meets the image quality condition, determining a surrounding vehicle that meets the driving condition from a plurality of vehicles included in the road image, wherein the surrounding vehicle is a vehicle that is in an adjacent lane and has traveled to the first ramp before the ego vehicle; According to the P road images in the road image sequence, P surrounding vehicle longitudinal distances are respectively obtained, wherein the P surrounding vehicle longitudinal distances correspond to the P road images one by one, the surrounding vehicle longitudinal distance is the distance between the surrounding vehicle and the own vehicle along the driving direction, and P is an integer greater than 1; Using the P surrounding vehicle longitudinal distances, the speed of the surrounding vehicle in P time frames is estimated to obtain P reference surrounding vehicle speeds corresponding to the P time frames, and using the P reference surrounding vehicle speeds to respectively determine P reference surrounding vehicle longitudinal distances between the self-vehicle and the surrounding vehicle; First differences between the P surrounding vehicle longitudinal distances and the P reference surrounding vehicle longitudinal distances are respectively obtained, and when the first difference between the i-th surrounding vehicle longitudinal distance and the i-th reference surrounding vehicle longitudinal distance is greater than a first threshold, the first slope value is determined according to the i-th surrounding vehicle longitudinal distance, the i-th reference surrounding vehicle speed and the i-th reference surrounding vehicle longitudinal distance, wherein i is an integer greater than or equal to 1 and less than P.
9. The method according to claim 7, characterized in that: The determining, according to the road image sequence, a first slope value of a first slope on which the vehicle is currently located, comprises: In a case where the road image includes a lane line object that satisfies an image quality condition, acquiring a set of feature points indicating the lane line object in the road image; Acquire a characteristic variation coefficient of the characteristic point set according to the characteristic point set respectively matched with the plurality of road images; The first slope value is determined according to the characteristic variation coefficient.
10. The method according to claim 7, characterized in that The obtaining the second slope value of the second slope on which the target vehicle is located includes: According to the Q road images in the road image sequence, Q target vehicle longitudinal distances are respectively obtained, wherein the Q target vehicle longitudinal distances correspond to the Q road images one by one, the target vehicle longitudinal distance is the distance between the target vehicle and the self-vehicle along the driving direction, and Q is an integer greater than 1; Using the Q target vehicle longitudinal distances to estimate the speed of the target vehicle in Q time frames, obtaining Q reference target vehicle speeds corresponding to the Q time frames, and using the Q reference target vehicle speeds to respectively determine Q reference target vehicle longitudinal distances between the self-vehicle and the target vehicle; The second differences between the Q target vehicle longitudinal distances and the Q reference target vehicle longitudinal distances are respectively obtained. When the second difference between the j-th target vehicle longitudinal distance and the j-th reference target vehicle longitudinal distance is greater than a second threshold, the second slope value is determined according to the j-th target vehicle longitudinal distance, the j-th reference target vehicle speed and the j-th reference target vehicle longitudinal distance, wherein j is an integer greater than or equal to 1 and less than Q.
11. The method according to claim 7, characterized in that The step of determining the slope-compensated vehicle distance between the ego vehicle and the target vehicle according to the first slope value, the second slope value, and the geometric position relationship between the ego vehicle and the target vehicle comprises: determining a ramp turning point between the first ramp and the second ramp; According to the current road image acquired in the current time frame, the current longitudinal distance between the self-vehicle and the target vehicle is acquired, wherein the current longitudinal distance is the distance between the self-vehicle and the target vehicle determined according to the focal length of the image acquisition device, the vehicle width length of the target vehicle, and the pixel width corresponding to the target vehicle; Obtaining a first ratio between a turning point distance and a cosine value corresponding to the first slope value, and obtaining a distance difference between the current longitudinal distance and the turning point distance, wherein the turning point distance is a distance between the vehicle in the current time frame and the ramp turning point; The slope-compensated vehicle distance is obtained by summing the first ratio and the second ratio, wherein the second ratio is the ratio between the distance difference and the cosine value corresponding to the second slope value.
12. A vehicle distance measuring device, characterized in that: include: A first processing unit is used to determine a bump odometry compensation model matching the position relationship according to the position relationship between the ego vehicle and the target vehicle when the ego vehicle is in a bumpy driving state, wherein the bump odometry compensation model is a geometric model determined based on the ego vehicle and the target vehicle; A first acquisition unit, configured to acquire a bump-compensated vehicle distance between the ego vehicle and the target vehicle according to the bump-odometry compensation model; a second processing unit, configured to determine the bump compensation vehicle distance as a target vehicle distance between the self vehicle and the target vehicle if the verification result of the bump compensation vehicle distance satisfies a vehicle distance verification condition; a third processing unit, configured to obtain, when the verification result of the bump compensation vehicle distance does not satisfy the vehicle distance verification condition, a slope compensation vehicle distance between the ego vehicle and the target vehicle according to a slope ranging compensation model, and use the slope compensation vehicle distance as a target vehicle distance between the ego vehicle and the target vehicle; The device is also used to obtain a compensated vehicle distance difference between a first bump compensation vehicle distance corresponding to a first time frame and a second bump compensation vehicle distance corresponding to a second time frame, and determine a first-order derivative of the compensated vehicle distance difference as a reference target vehicle speed of the target vehicle between the first time frame and the second time frame; Determining a reference target vehicle displacement corresponding to the target vehicle between the second time frame and the third time frame according to the reference target vehicle speed, wherein the first time frame, the second time frame and the third time frame are three consecutive sampling time frames, and the sampling time frames correspond to the sampling time of the image sensor on the ego vehicle; Determine a third reference vehicle distance between the ego vehicle and the target vehicle corresponding to the third time frame according to the reference target vehicle displacement; When a third bump compensation vehicle distance corresponding to the third time frame is obtained, obtaining a compensation error between the third bump compensation vehicle distance and the third reference vehicle distance; When the compensation error degrees corresponding to N consecutive time frames are all greater than or equal to the target threshold, determining that the verification result of the bump compensation vehicle distance does not meet the vehicle distance verification condition, wherein N is an integer greater than or equal to 1; When at least one of the compensation error degrees corresponding to N consecutive time frames is smaller than the target threshold, it is determined that the verification result of the bump compensation vehicle distance satisfies the vehicle distance verification condition.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 11 when executed.
14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.
15. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 11 through the computer program.
Citation Information
Patent Citations
Method for correcting environmental influences at slope deformation monitoring on the basis of corner reflector
CN105182339A
Method and device for measuring distances among vehicles on basis of distance measurement compensation
CN106289159A
