Distance measurement compensation method, device, storage medium and electronic device under bumpy working conditions

By using road images to detect specific areas and parameters of the vehicle under bumpy conditions, and combining multi-frame data for weighted calculations, the problem of inaccurate ranging in the existing technology is solved and higher ranging accuracy and stability are achieved.

CN118565526BActive Publication Date: 2024-10-22FOSS (HANGZHOU) INTELLIGENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411055987.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-22
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

The existing technology has inaccurate ranging compensation under bumpy working conditions, resulting in inaccurate vehicle distance detection.

Method used

By acquiring road images, the rear frame, taillights and wheel areas of the target vehicle are detected, and a more accurate distance between vehicles is calculated by combining image parameters and ranging compensation models. Multi-frame data are used for weighted averaging and correction to improve ranging accuracy.

Benefits of technology

It improves the accuracy and reliability of distance measurement under bumpy working conditions, reduces outliers and errors, and enhances the stability of distance detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118565526B_ABST
    Figure CN118565526B_ABST
Patent Text Reader

Abstract

The present application discloses a distance measurement compensation method, device, storage medium and electronic device under bumpy working conditions. The method includes: when the self-vehicle object is currently in a bumpy state, obtaining the road image currently collected by the self-vehicle object and the first vehicle distance between the self-vehicle object and the target vehicle object detected by the self-vehicle object; determining the target distance measurement area from the target image area according to the distance interval corresponding to the first vehicle distance; determining the second vehicle distance based on the image parameters matching the target distance measurement area and the distance measurement compensation model matching the target distance measurement area; determining the target vehicle distance between the self-vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance. The present application solves the technical problem of inaccurate distance measurement compensation in related bumpy working conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving, and more specifically, to a distance measurement compensation method, device, storage medium and electronic device under bumpy conditions. Background Art

[0002] Commonly used distance measurement methods include ultrasonic distance measurement: by measuring the time difference between emission and reception, the distance can be calculated; laser distance measurement: using a timer to measure the time from the emission to the reception of the laser beam, and then calculating the distance based on the speed of light. Laser rangefinders usually use pulse method and phase method to measure distance; monocular distance measurement: using a single camera to measure the distance between the object and the camera. It usually relies on image processing and machine learning algorithms to estimate the distance. The camera filter relies on the principle of pinhole imaging to obtain information by integrating the target's height and width observations. Under complex driving conditions, the front of the vehicle will lower or rise, that is, the pitch angle will change. When the front of the vehicle is lowered, the closer the observed target is to the vanishing point, the farther the target is, that is, the distance measurement is remote. Distance measurement compensation is required for this phenomenon.

[0003] The existing technology is prone to false or missed lane line detection for damaged lane lines, old lane line traces, etc., so using only lane lines for compensation requires high lane line accuracy, otherwise it will lead to inaccurate target distance measurement; that is, inaccurate touchdown point detection under complex working conditions; the inertial measurement unit has cumulative errors and cannot cope with long road section distance measurement well; that is to say, the existing technology has a technical problem of inaccurate distance compensation under bumpy conditions. Summary of the invention

[0004] The embodiments of the present application provide a distance measurement compensation method, device, storage medium and electronic device under bumpy working conditions, so as to at least solve the technical problem of inaccurate distance measurement compensation under bumpy working conditions in the related art.

[0005] According to one aspect of an embodiment of the present application, a distance measurement compensation method under a bumpy working condition is provided, comprising: when an ego-vehicle object is currently in a bumpy state, obtaining a road image currently collected by the ego-vehicle object and a first vehicle distance between the ego-vehicle object and a target vehicle object detected by the ego-vehicle object, wherein the road image includes a target image area matching the target vehicle object; determining a target distance measurement area from the target image area according to a distance interval corresponding to the first vehicle distance, wherein a plurality of the distance intervals respectively correspond to at least one reference distance measurement area in the target image area; determining a second vehicle distance based on an image parameter matching the target distance measurement area and a distance measurement compensation model matching the target distance measurement area, wherein the distance measurement compensation model is a geometric model determined based on the ego-vehicle object, the target vehicle object, and a target component indicated by the target distance measurement area, and the target component is a component object on the target vehicle object; determining a target vehicle distance between the ego-vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance.

[0006] According to another aspect of an embodiment of the present application, a distance measurement compensation device under a bumpy working condition is further provided, comprising: an acquisition unit, when the self-vehicle object is currently in a bumpy state, acquiring a road image currently collected by the self-vehicle object, and a first vehicle distance between the self-vehicle object and a target vehicle object detected by the self-vehicle object, wherein the road image includes a target image area matching the target vehicle object; a first determination unit, according to a distance interval corresponding to the first vehicle distance, determining a target distance measurement area from the target image area, wherein a plurality of the distance intervals respectively correspond to at least one reference distance measurement area in the target image area; a second determination unit, based on an image parameter matching the target distance measurement area and a distance measurement compensation model matching the target distance measurement area, determining a second vehicle distance, wherein the distance measurement compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and a target component indicated by the target distance measurement area, and the target component is a component object on the target vehicle object; a third determination unit, based on the first vehicle distance and the second vehicle distance, determining a target vehicle distance between the self-vehicle object and the target vehicle object.

[0007] As an optional solution, the distance measurement compensation device under the bumpy working condition further includes: a judgment unit, which is used to determine the rear frame area in the target image area as the target distance measurement area when the first vehicle distance is less than or equal to the target distance; when the first vehicle distance is greater than the target distance, obtain the taillight description parameters corresponding to the target vehicle object, wherein the taillight description parameters are used to indicate the enabled state of the taillights of the target vehicle object; when the taillight description parameters indicate that the taillights of the target vehicle object are in an enabled state, determine the taillight area in the target image area as the target distance measurement area; when the taillight description parameters indicate that the taillights of the target vehicle object are in an unenabled state, determine the wheel area in the target image area as the target distance measurement area.

[0008] As an optional solution, the judgment unit includes: a first determination module, used to determine a first ranging compensation model according to 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 first 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 lower frame of the rear frame area of ​​the target vehicle object; and obtaining a first image parameter set matching the target ranging area, wherein the first image parameter set includes an upper The method comprises the following steps: obtaining 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; obtaining a first self-vehicle parameter set associated with the self-vehicle object and a first target vehicle parameter associated with the target vehicle object, 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, 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; determining the second vehicle distance according to the first ranging compensation model, the first image parameter set, the first self-vehicle parameter set and the first target vehicle parameter.

[0009] As an optional solution, the judgment unit includes: a second determination module, used to determine a second ranging compensation model according to a third geometric object located on a target slope corresponding to the ego vehicle object, a fourth geometric object corresponding to the target vehicle object, a target point on the third geometric object, and a target vertex of the fourth geometric object, wherein the second 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 lower border of a taillight region of the target vehicle object; and obtaining a second image parameter set matching the target ranging region, wherein the second image parameter set includes an upper The method comprises the following steps: obtaining 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 height of the lower frame of the taillight area from the bottom of the image plane; obtaining a second self-vehicle parameter set associated with the self-vehicle object, and a second target vehicle parameter associated with the target vehicle object, 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, the installation height of the image sensor, and the second target vehicle parameter includes the height of the taillight of the target vehicle from the ground; determining the second vehicle distance according to the second ranging compensation model, the second image parameter set, the second self-vehicle parameter set and the second target vehicle parameter.

[0010] As an optional solution, the judgment unit includes: a third determination module, used to determine a third ranging compensation model according to a fifth geometric object located on a target slope corresponding to the self-vehicle object, a sixth geometric object corresponding to the target vehicle object, a target point on the fifth geometric object, and a target vertex of the sixth geometric object, wherein the third slope of the target slope is used to indicate a current bumping state of the self-vehicle object, the target point is used to indicate an image sensor configured on the self-vehicle object, and the target vertex is used to indicate a wheel contact point of the target vehicle object; obtaining 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, an image coordinate system height, and a grounding height of a grounding point of the wheel area from the bottom of an image plane; obtaining a third self-vehicle parameter set associated with the self-vehicle object, wherein the third self-vehicle parameter set includes a self-vehicle speed of the self-vehicle object, a bumping duration of the self-vehicle object, and an installation height of the image sensor; and determining the second vehicle distance according to the third ranging compensation model and the third image parameter set.

[0011] As an optional scheme, the above-mentioned third determination unit also includes a fourth determination module, which is used to: determine a reference coefficient according to the distance interval corresponding to the above-mentioned first vehicle distance, wherein the above-mentioned reference coefficient has a positive correlation with the above-mentioned distance interval; determine a first ratio between the above-mentioned first vehicle distance and the above-mentioned reference coefficient as a first weight coefficient matching the above-mentioned first vehicle distance, and determine the difference between 1 and the above-mentioned first ratio as a second weight coefficient matching the above-mentioned second vehicle distance; determine the above-mentioned target vehicle distance according to the weighted sum of the above-mentioned first vehicle distance, the above-mentioned second vehicle distance, the above-mentioned first weight coefficient matching the above-mentioned first vehicle distance, and the above-mentioned second weight coefficient matching the above-mentioned second vehicle distance.

[0012] As an optional solution, the fourth determination module includes: a first acquisition unit, for acquiring, when the first vehicle distance corresponds to the first distance interval, reference vehicle distances corresponding to each of N time frames adjacent to the first time frame corresponding to the first vehicle distance; updating the first vehicle distance according to a weighted sum of the N reference vehicle distances; when the first vehicle distance corresponds to the second distance interval, acquiring reference vehicle distances corresponding to each of M time frames adjacent to the first time frame corresponding to the first vehicle distance; updating the first vehicle distance according to a weighted sum of the N reference vehicle distances; wherein, the first distance values ​​in the first distance interval are all smaller than the first distance values ​​in the second distance interval, the N is an integer determined according to the ratio between the first distance before updating and the first reference value, the M is an integer determined according to 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.

[0013] As an optional scheme, the above-mentioned third determination unit is also used to: determine the speed prediction value of the above-mentioned target vehicle object according to the vehicle distance difference between the first target vehicle distance corresponding to the first time frame and the second target vehicle distance corresponding to the second time frame; determine the displacement prediction value corresponding to the above-mentioned target vehicle object between the above-mentioned second time frame and the third time frame according to the above-mentioned speed prediction value; determine the third predicted vehicle distance corresponding to the above-mentioned third time frame according to the above-mentioned displacement prediction value; when the third target vehicle distance corresponding to the above-mentioned third time frame is obtained, obtain the prediction error between the above-mentioned third predicted vehicle distance and the above-mentioned target vehicle distance; when the above-mentioned prediction errors corresponding to L consecutive frames are all greater than or equal to the target threshold, correct the target vehicle distances corresponding to L consecutive frames respectively through a target correction algorithm; when there is at least one frame in the consecutive L frames whose corresponding prediction error is less than the target threshold, output the above-mentioned target vehicle distances corresponding to L consecutive frames respectively.

[0014] As an optional scheme, the above-mentioned acquisition unit is also used to: acquire a road image sequence currently collected by the above-mentioned self-vehicle object, wherein the above-mentioned road image sequence includes road images collected respectively in multiple continuous time frames; in the case where the above-mentioned road image includes multiple lane line objects, determine the lane line vanishing points corresponding to the multiple road images respectively according to the above-mentioned lane line objects respectively included in the above-mentioned road images, wherein the above-mentioned lane line vanishing points are determined according to the object pointing directions of the multiple lane line objects in the above-mentioned road images; acquire image position relationship features of the multiple lane line vanishing points according to their respective image positions; and in the case where the above-mentioned image position relationship features meet the target image conditions, determine that the above-mentioned self-vehicle object is currently in a bumpy state.

[0015] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being 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 performs the distance measurement compensation method under the above bumpy working condition.

[0016] According to another aspect of an embodiment of the present application, there is also provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the distance measurement compensation method under the bumpy working condition through the computer program.

[0017] In the above-mentioned embodiment of the present application, when the ego-vehicle object is currently in a bumpy state, a road image currently captured by the ego-vehicle object and a first vehicle distance between the ego-vehicle object and the target vehicle object detected by the ego-vehicle object are obtained, wherein the road image includes a target image area matching the target vehicle object; a target ranging area is determined from the target image area according to the distance interval corresponding to the first vehicle distance, wherein the multiple distance intervals respectively correspond to at least one reference ranging area in the target image area; a second vehicle distance is determined based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area, wherein the ranging compensation model is a geometric model determined based on the ego-vehicle object, the target vehicle object, and a target component indicated by the target ranging area, and the target component is a component object on the target vehicle object; a target vehicle distance between the ego-vehicle object and the target vehicle object is determined based on the first vehicle distance and the second vehicle distance.

[0018] Through the above-mentioned embodiments of the present application, when the ego-vehicle object is currently in a bumpy state, a road image currently collected by the ego-vehicle object and a first vehicle distance between the ego-vehicle object and the target vehicle object detected by the ego-vehicle object are obtained, wherein the road image includes a target image area matching the target vehicle object; a target ranging area is determined from the target image area according to a distance interval corresponding to the first vehicle distance, wherein a plurality of distance intervals respectively correspond to at least one reference ranging area in the target image area; a second vehicle distance is determined based on an image parameter matching the target ranging area and a ranging compensation model matching the target ranging area, wherein the ranging compensation model is a geometric model determined based on the ego-vehicle object, the target vehicle object, and a target component indicated by the target ranging area, and the target component is a component object on the target vehicle object; a target vehicle distance between the ego-vehicle object and the target vehicle object is determined based on the first vehicle distance and the second vehicle distance, thereby solving the technical problem of inaccurate ranging compensation under bumpy working conditions in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] 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:

[0020] Figure 1 is a schematic diagram of an application environment of an optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0021] Figure 2 is a flow chart of an optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of an optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0026] Figure 7 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0027] Figure 8is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0028] Fig. 9 is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0029] Fig.10 is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0030] Fig.11 is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0031] Fig.12 is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0032] Fig.13 is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0033] Fig.14 is a flow chart of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0034] Fig.15 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0035] Fig.16 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0036] Fig.17 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0037] Fig.18 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0038] Fig.19 is a schematic diagram of another optional ranging compensation method under a bumpy working condition according to an embodiment of the present application;

[0039] Fig. 20 is a schematic diagram of a distance measurement compensation device under a bumpy working condition according to an embodiment of the present application;

[0040] Fig.21 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] 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.

[0042] 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.

[0043] 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 1 In 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.

[0044] 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.

[0045] 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.

[0046] 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:

[0047] S102, when the ego vehicle object is currently in a bumpy state, obtaining a road image currently collected by the ego vehicle object and a first vehicle distance between the ego vehicle object and a target vehicle object detected by the ego vehicle object, wherein the road image includes a target image area matching the target vehicle object;

[0048] S104, determining a target ranging area from the target image area according to the distance interval corresponding to the first vehicle distance, wherein the plurality of distance intervals respectively correspond to at least one reference ranging area in the target image area;

[0049] S106, determining a second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area, wherein the ranging compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and a target component indicated by the target ranging area, and the target component is a component object on the target vehicle object;

[0050] S108: Determine a target vehicle distance between the own vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance.

[0051] 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.

[0052] 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.

[0053] 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.

[0054] 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.

[0055] As an optional implementation, Figure 2 As shown, the distance measurement compensation method under the bumpy working condition can be executed by an electronic device, and the specific steps include:

[0056] S202, when the ego vehicle object is currently in a bumpy state, obtaining a road image currently captured by the ego vehicle object and a first vehicle distance between the ego vehicle object and a target vehicle object detected by the ego vehicle object, wherein the road image includes a target image area matching the target vehicle object;

[0057] S204, determining a target ranging area from the target image area according to the distance interval corresponding to the first vehicle distance, wherein the plurality of distance intervals respectively correspond to at least one reference ranging area in the target image area;

[0058] S206, determining a second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area, wherein the ranging compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and a target component indicated by the target ranging area, and the target component is a component object on the target vehicle object;

[0059] S208: Determine a target vehicle distance between the own vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance.

[0060] In S202 of the above embodiment, when the ego vehicle object is currently in a bumpy state, a road image currently captured by the ego vehicle object and a first 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. 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.

[0061] It should be noted that methods for determining that a vehicle is in a bumpy state include but are not limited to: using an acceleration sensor on the vehicle to detect changes in the acceleration of the vehicle in the vertical direction. If the acceleration changes exceed the normal range, it may indicate that the vehicle is experiencing bumps; using a gyroscope to detect changes in the tilt angle of the vehicle. Bumps usually cause a large change in the tilt angle of the vehicle; pressure sensors installed on tires or suspension systems can detect changes in the pressure of the road on the tires, thereby determining bumps, etc.

[0062] As an optional implementation, there are several ways to determine whether the vehicle is in a bumpy condition: when the monocular camera detects the existence of a lane line on the road on which the vehicle is traveling, a threshold value of the difference in image physical coordinates between the vanishing point of the distant lane line and the calibrated vanishing point is set, and whether the vehicle is in a bumpy state is determined based on whether the difference fluctuates around the set threshold value; when the monocular camera does not detect the existence of a lane line on the road on which the vehicle is traveling, 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 actual acceleration of the vehicle is derived, 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 state; when the vehicle 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, and if the height change fluctuates up and down, it is determined that the vehicle is in a bumpy state, etc.;

[0063] As an optional implementation, the first vehicle distance between the self-vehicle object and the target vehicle object may be obtained by a monocular vision perception algorithm, specifically in the following manner:

[0064] S1, image acquisition, filtering the image to remove noise, including grayscale, histogram equalization and other steps to enhance image features;

[0065] S2, feature extraction, uses edge detection algorithms (such as the Canny edge detector) to identify edges in the image, including detecting lane lines, vehicle contours and other features;

[0066] S3, depth estimation and distance calculation, specifically, the vanishing point and the vehicle size can be used to estimate the depth of the vehicle through geometric relationships. For example, based on the principle of similar triangles, the size of the vehicle in the image is compared with the actual size to estimate the depth of the vehicle; based on the depth estimation result and the position of the vehicle in the image, the actual distance between the vehicles is calculated using the triangulation principle, for example, according to the formula: distance = (actual size of the vehicle / height of the vehicle in the image) * camera focal length.

[0067] Further, in the above step S204, a target ranging area is determined from the target image area according to the distance interval corresponding to the first vehicle distance. It should be noted that the multiple distance intervals correspond to at least one reference ranging area in the target image area. For example, the distance interval of the first vehicle distance is 0-100m, and the reference ranging area includes: the distance between the vehicle and the front vehicle is 0-100m, 100m-200m, etc.;

[0068] Specifically, when the longitudinal distance value (distance interval) of the target vehicle given by the monocular vision perception algorithm is ≤100 meters, the target vehicle is close to the self-vehicle, and the position of the vehicle tail frame output by the perception algorithm is relatively accurate, so the area corresponding to the vehicle tail frame is determined to be the above-mentioned target ranging area; when the longitudinal distance value (distance interval) of the target vehicle given by the monocular vision perception algorithm is greater than 100 meters and the current time is daytime, the target vehicle is far away from the self-vehicle, the vehicle tail frame output by the perception algorithm is prone to misdetection with the background, and the wheel contact point is relatively accurate, so the area corresponding to the wheel contact point is determined to be the above-mentioned target ranging area; when the longitudinal distance value (distance interval) of the target vehicle given by the monocular vision perception algorithm is greater than 100 meters and the current time is night, the wheel contact point detection is inaccurate, and the longitudinal position of the headlights is relatively clear, so it can be determined that the area corresponding to the headlights is the above-mentioned target ranging area; this is only an example, and no specific limitation is imposed on the method of determining the above-mentioned target ranging area;

[0069] In the above step S206, based on the image parameters matching the target ranging area and the ranging compensation model matching the target ranging area, the second vehicle distance is determined. It should be noted that the ranging compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and the target component indicated by the target ranging area, and the target component is a component object on the target vehicle object;

[0070] Specifically, based on the image parameters matching the target ranging area and the ranging compensation model matching the target ranging area, determining the second vehicle distance may be, when the target vehicle longitudinal distance value (distance interval) given by the monocular vision perception algorithm is ≤100 meters, determining the area corresponding to the rear frame of the preceding vehicle as the target ranging area, such as Figure 3 As shown in the figure, point A is the camera installation point. First, according to the vehicle speed , and the slope angle fluctuation time of the previous frames The horizontal position of the intersection of the slope and the ground plane from the camera can be calculated , as follows:

[0071]

[0072] Then, using the horizontal position , slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0073]

[0074] Further, if Figure 3 , Figure 4 As shown, using Figure 3 Medium camera field of view , Figure 4 The height from the bottom of the wheel of the front vehicle (target vehicle) to the bottom of the vehicle B (rear frame) , 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 (correspond Distance to point A), is an auxiliary point (approximately located at Height), used as an auxiliary line parallel to the slope, to obtain the true distance between the self-vehicle and the target vehicle after distance measurement compensation (i.e. the second vehicle distance mentioned above) , as follows:

[0075] It can be understood that according to trigonometric relations, Figure 4 middle:

[0076] d2= ;

[0077] d1= ;

[0078]

[0079] Right now

[0080] in , sorted out:

[0081]

[0082] In the above step S208, a target vehicle distance between the self-vehicle object and the target vehicle object is determined based on the first vehicle distance and the second vehicle distance;

[0083] As an optional implementation, for example, if the confidence of the first vehicle distance is 0.4 and the confidence of the second vehicle distance is 0.7, the first vehicle distance result of the first vehicle distance and the second vehicle distance result of the second vehicle distance are respectively multiplied by the corresponding confidences, and then added to obtain the final target vehicle distance, that is, the target vehicle distance = 0.4 * the first vehicle distance result + 0.7 * the second vehicle distance result;

[0084] It can be understood that, by obtaining a first vehicle distance set of target vehicle longitudinal distance values ​​given by the above perception algorithm for multiple frames, the first vehicle distance in the first vehicle distance set can be optimized, including missing value processing, smoothing processing, average value processing, etc. to obtain the first vehicle distance value, and then the first vehicle distance value and the second vehicle distance value obtained according to the second vehicle distance can be weighted averaged to obtain a more accurate target vehicle distance between the self-vehicle object and the target vehicle object; this is only an example and is not specifically limited.

[0085] Through the above implementation of the present application, when the self-vehicle object is currently in a bumpy state, the road image currently collected by the self-vehicle object and the first vehicle distance between the self-vehicle object and the target vehicle object detected by the self-vehicle object are obtained; according to the distance interval corresponding to the first vehicle distance, the target ranging area is determined from the target image area; based on the image parameters matching the target ranging area and the ranging compensation model matching the target ranging area, the second vehicle distance is determined; based on the first vehicle distance and the second vehicle distance, the target vehicle distance between the self-vehicle object and the target vehicle object is determined, so as to better utilize the advantages of various measurement methods and make up for the shortcomings of various methods, so as to obtain more comprehensive and accurate distance information. In addition, it can also help eliminate the influence of abnormal values ​​or erroneous measurement results, improve the reliability and credibility of data, and thus solve the technical problem of inaccurate ranging compensation under bumpy conditions.

[0086] In an optional implementation, determining a target distance measurement area from a target image area according to a distance interval corresponding to the first vehicle distance includes:

[0087] S1, when the first vehicle distance is less than or equal to the target distance, determining the vehicle rear frame area in the target image area as the target distance measurement area;

[0088] S2, when the first vehicle distance is greater than the target distance, obtaining a taillight description parameter corresponding to the target vehicle object, wherein the taillight description parameter is used to indicate an enabled state of a taillight of the target vehicle object;

[0089] S3, when the taillight description parameter indicates that the taillight of the target vehicle object is in an enabled state, determining the taillight area in the target image area as the target ranging area;

[0090] S4: When the taillight description parameter indicates that the taillights of the target vehicle object are in an unactivated state, determine the wheel area in the target image area as the target ranging area.

[0091] It can be understood that in step S1, when the first vehicle distance is less than or equal to the target distance, the vehicle tail frame area in the target image area is determined as the target ranging area; for example, when the target distance is 100m, when the target vehicle preliminary longitudinal distance value (first vehicle distance) given by the monocular vision perception algorithm is ≤100m, the target vehicle is close to the self-vehicle, and the vehicle tail frame position detected by the perception algorithm is relatively accurate and reliable, so the vehicle tail frame can be used for ranging compensation;

[0092] In steps S2-S3, when the first vehicle distance is greater than the target distance, a taillight description parameter corresponding to the target vehicle object is obtained, wherein the taillight description parameter is used to indicate the enabled state of the taillight of the target vehicle object; when the taillight description parameter indicates that the taillight of the target vehicle object is in the enabled state, the taillight area in the target image area is determined as the target ranging area;

[0093] As an optional implementation, for example, the target distance is 100m, when the initial longitudinal distance value of the target vehicle given by the monocular vision perception algorithm is greater than 100 meters and the taillights are enabled, it should be noted that the taillights can be enabled when the current Day = night, the vehicle is in a tunnel, the weather visibility is lower than a preset threshold, etc., that is, when the wheel contact point detection is inaccurate, the longitudinal position of the vehicle taillights is relatively clear, which can provide a reference for ranging compensation. Therefore, the taillight area in the target image area is determined as the target ranging area to compensate for the ranging;

[0094] It is understandable that, in the case where a brightness sensor / visibility sensor is installed on the vehicle, the parameters obtained by the relevant sensors can be directly used to determine whether the target vehicle has activated the taillights; it can also be determined based on the image recognition result whether the target vehicle has activated the taillights; it can also be determined directly based on the current time of the vehicle's travel whether the target vehicle has activated the taillights, such as not activating the taillights during the day and activating the taillights at night. This is only an example and is not specifically limited;

[0095] Further, in step S4, when the taillight description parameter indicates that the taillight of the target vehicle object is in an unactivated state, the wheel area in the target image area is determined as the target ranging area;

[0096] For example, when the taillights are not enabled, it should be noted that the parking lights can be enabled when the current Day = daytime, the vehicle is in an unobstructed driving scene, and the weather visibility is higher than the preset threshold. In the above cases, the target vehicle is far away from the vehicle, and the vehicle tail frame output by the perception algorithm is prone to misdetection with the background, while the wheel contact point is more accurate, and during the bumping of the vehicle, the longitudinal distance value of the target vehicle given by the perception algorithm also fluctuates around the true value. Therefore, the wheel area (wheel contact point area) in the target image area is determined as the target ranging area. Specifically, the distance measurement can be compensated by using the average of the uncompensated longitudinal distance values ​​of the target vehicle in the weighted adjacent frames of the wheel contact point.

[0097] Through the above-mentioned implementation manner of the present application, when the first vehicle distance is less than or equal to the target distance, the vehicle tail frame area in the target image area is determined as the target ranging area; when the first vehicle distance is greater than the target distance, the taillight description parameters corresponding to the target vehicle object are obtained; when the taillight description parameters indicate that the taillights of the target vehicle object are in an enabled state, the vehicle taillight area in the target image area is determined as the target ranging area; when the taillight description parameters indicate that the taillights of the target vehicle object are in an unenabled state, the wheel area in the target image area is determined as the target ranging area, by judging different scenes, and then selecting a suitable target ranging area and method for ranging compensation according to the characteristics of the scenes, the technical problem of inaccurate ranging compensation under bumpy conditions is solved, and the accuracy of ranging is improved.

[0098] In an optional implementation, when the first vehicle distance is less than or equal to the target distance, determining the second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area includes:

[0099] S1, determining a first ranging compensation model according to 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 first 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 lower frame of a rear frame area of ​​the target vehicle object;

[0100] S2, obtaining 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;

[0101] S3, 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;

[0102] S4, determining a second 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.

[0103] It can be understood that in the above step S1, the first ranging compensation model is determined according to the first geometric object located on the target slope corresponding to the ego vehicle object, the second geometric object corresponding to the target vehicle object, the target point on the first geometric object, and the 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 the image sensor configured on the ego vehicle object, and the target vertex is used to indicate the lower frame of the tail frame area of ​​the target vehicle object;

[0104] 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; when the slope value information corresponding to the calculated first slope of the target slope indicates that the slope angle is in a fluctuating state, it is determined that the vehicle object is in a bumpy state; Figure 3 As shown, the target point A is used to indicate the image sensor configured on the vehicle object, such as Figure 4 As shown, the target vertex B is used to indicate the lower border of the tail frame area of ​​the target vehicle object;

[0105] In steps S2-S3, 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;

[0106] As an optional implementation, Figure 3 , Figure 4 As shown: Taking one frame as an example, first, Figure 3 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) The horizontal position of the intersection of the slope and the ground plane from the camera can be calculated , as follows:

[0107]

[0108] Then, using the horizontal position , slope angle , Image sensor installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0109]

[0110] Further use Figure 3 Medium camera field of view , Figure 4 The height of the lower tail frame B of the target vehicle from the ground , 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 (correspond Distance to point A), is an auxiliary point (approximately located at height), used to make auxiliary lines parallel to the slope; it can be understood that the above parameters are obtained in each frame for compensation of distance measurement;

[0111] In step S4, a second 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;

[0112] 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 4 middle:

[0113] d2= ;

[0114] d1= ;

[0115]

[0116] Right now

[0117] in , sorted out:

[0118]

[0119] Through the above-mentioned implementation mode of the present application, a first ranging compensation model is determined according to a first geometric object located on a target slope corresponding to an ego-vehicle object, a second geometric object corresponding to a target vehicle object, a target point on the first geometric object, and a target vertex of the second geometric object; a first image parameter set matching a target ranging area is obtained; a first ego-vehicle parameter set associated with the ego-vehicle object and a first target vehicle parameter associated with the target vehicle object are obtained; a second vehicle distance is determined according to the first ranging compensation model, the first image parameter set, the first ego-vehicle parameter set and the first target vehicle parameter, and the accuracy of ranging compensation under bumpy conditions is improved by determining the accurate positions of the target point and the target vertex and then calculating based on relevant parameters.

[0120] In an optional implementation, when the first vehicle distance is greater than the target distance and the taillight description parameter indicates that the taillights of the target vehicle object are in an enabled state, determining the second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area includes:

[0121] S1, determining a second ranging compensation model according to a third geometric object located on a target slope corresponding to the ego vehicle object, a fourth geometric object corresponding to the target vehicle object, a target point on the third geometric object, and a target vertex of the fourth geometric object, wherein the second 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 lower border of a taillight region of the target vehicle object;

[0122] S2, obtaining 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;

[0123] S3, 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;

[0124] S4, determining a second 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.

[0125] It can be understood that in the above step S1, the second ranging compensation model is determined according to the third geometric object located on the target slope corresponding to the ego vehicle object, the fourth geometric object corresponding to the target vehicle object, the target point on the third geometric object, and the target vertex of the fourth geometric object, wherein the second 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 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;

[0126] The target slope may be the slope on which the vehicle is currently traveling, and the third geometric object and the fourth geometric object may be geometric image objects abstracted from the vehicle object and the target vehicle object after image acquisition; when the slope value information corresponding to the calculated second slope of the target slope indicates that the slope angle is in a fluctuating state, it is determined that the vehicle object is in a bumpy state; Figure 3 As shown, the target point A is used to indicate the image sensor configured on the vehicle object, such as Figure 5 The target vertex B shown is used to indicate the lower border of the taillight area of ​​the target vehicle object;

[0127] Further, in steps S2-S3, 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;

[0128] As an optional implementation, Figure 3 , Figure 5 As shown, taking one frame as an example, the vehicle taillight is first used for compensation ranging : When the vehicle is bumpy, use the current speed of the vehicle , and the slope angle fluctuation time of the previous frames The horizontal position of the intersection of the slope and the ground plane from the camera can be calculated , as follows:

[0129]

[0130] Using horizontal position , slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0131]

[0132] Further use Figure 3 Medium camera field of view , Figure 5 Height of the image coordinate system , Camera focal length (correspond The distance from the taillight B to point A) is (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 (approximately located at height), used as an auxiliary line parallel to the slope, the longitudinal distance from the detected taillight of the vehicle to the bottom of the image plane ;

[0133] It can be understood that, in step S4, the second 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;

[0134] 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:

[0135] d2= ;

[0136] d1= ;

[0137]

[0138] Right now

[0139] in , sorted out:

[0140]

[0141] Through the above-mentioned implementation mode of the present application, a second ranging compensation model is determined according to a third geometric object located on a target slope corresponding to an ego vehicle object, a fourth geometric object corresponding to a target vehicle object, a target point on the third geometric object, and a target vertex of the fourth geometric object; a second image parameter set matching the target ranging area is obtained; a second ego vehicle parameter set associated with the ego vehicle object and a second target vehicle parameter associated with the target vehicle object are obtained; a second vehicle distance is determined according to the second ranging compensation model, the second image parameter set, the second ego vehicle parameter set and the second target vehicle parameter, and the accuracy of ranging compensation under bumpy conditions is improved by determining the accurate positions of the target point and the target vertex and then calculating based on the relevant parameters.

[0142] In an optional implementation, when the first vehicle distance is greater than the target distance and the taillight description parameter indicates that the taillight of the target vehicle object is not enabled, determining the second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area includes:

[0143] S1, determining a third ranging compensation model according to a fifth geometric object located on a target slope corresponding to the ego vehicle object, a sixth geometric object corresponding to the target vehicle object, a target point on the fifth geometric object, and a target vertex of the sixth 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;

[0144] S2, 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;

[0145] S3, obtaining 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;

[0146] S4, determining a second vehicle distance according to a third distance measurement compensation model, a third image parameter set, and a third vehicle parameter set.

[0147] It can be understood that in the above step S1, the third ranging compensation model is determined according to the fifth geometric object located on the target slope corresponding to the ego vehicle object, the sixth geometric object corresponding to the target vehicle object, the target point on the fifth geometric object, and the target vertex of the sixth geometric object, wherein the third 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 the image sensor configured on the ego vehicle object, and the target vertex is used to indicate the wheel contact point of the target vehicle object;

[0148] The target slope may be the slope on which the vehicle is currently traveling, and the fifth geometric object and the sixth geometric object may be geometric image objects abstracted from the vehicle object and the target vehicle object after image acquisition; when the slope value information corresponding to the calculated third slope of the target slope indicates that the slope angle is in a fluctuating state, it is determined that the vehicle object is in a bumpy state; Figure 3 As shown, the target point A is used to indicate the image sensor configured on the vehicle object, such as Figure 6 The target vertex B shown is used to indicate the wheel contact point of the target vehicle object;

[0149] Further, in steps S2-S3, 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 ego vehicle parameter set associated with the ego vehicle object is obtained, wherein the third 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;

[0150] As an optional implementation, Figure 3 , Figure 6 As shown, taking one frame as an example, the wheel contact point is first used for compensation distance measurement. : When the vehicle is bumpy, use the current speed of the vehicle , and the slope angle fluctuation time of the previous frames The horizontal position of the intersection of the slope and the ground plane from the camera can be calculated , as follows:

[0151]

[0152] Using horizontal position , slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0153]

[0154] Further exploitation of the camera’s field of view , image coordinate system height , Camera focal length (correspond Distance to point A), is an auxiliary point (approximately located at height), used to make 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;

[0155] It can be understood that, in step S4, the second vehicle distance is determined according to the third distance measurement compensation model, the third image parameter set, and the third self-vehicle parameter set;

[0156] 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 the trigonometric relationship, as follows Figure 6 middle:

[0157] d2= ;

[0158] d1= ;

[0159]

[0160] Right now

[0161] in , sorted out:

[0162]

[0163] Through the above-mentioned implementation mode of the present application, a third ranging compensation model is determined according to the fifth geometric object located on the target slope corresponding to the ego-vehicle object, the sixth geometric object corresponding to the target vehicle object, the target point on the fifth geometric object, and the target vertex of the sixth geometric object; a third image parameter set matching the target ranging area is obtained; a third ego-vehicle parameter set associated with the ego-vehicle object is obtained; a second vehicle distance is determined according to the third ranging compensation model, the third image parameter set, and the third ego-vehicle parameter set, and the accuracy of ranging compensation under bumpy conditions is improved by determining the accurate positions of the target point and the target vertex and then calculating based on relevant parameters.

[0164] In an optional implementation, determining a target vehicle distance between the ego vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance includes:

[0165] S1, determining a reference coefficient according to a distance interval corresponding to the first vehicle distance, wherein the reference coefficient and the distance interval have a positive correlation;

[0166] S2, determining a first ratio between the first vehicle distance and the reference coefficient as a first weight coefficient matching the first vehicle distance, and determining a difference between 1 and the first ratio as a second weight coefficient matching the second vehicle distance;

[0167] S3, determining a target vehicle distance according to the first vehicle distance, the second vehicle distance, and a weighted sum of a first weight coefficient matching the first vehicle distance and a second weight coefficient matching the second vehicle distance.

[0168] It should be noted that in step S1, the reference coefficient is determined according to the distance interval corresponding to the first vehicle distance, and there is a positive correlation between the reference coefficient and the distance interval;

[0169] As an optional implementation, when the distance interval corresponding to the first 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 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);

[0170] Then, in step S2, a first ratio between the first vehicle distance and the reference coefficient is determined as a first weight coefficient matching the first vehicle distance, and a difference between 1 and the first ratio is determined as a second weight coefficient matching the second vehicle distance;

[0171] As an optional implementation, for example, the reference coefficient is set to 100, and the first vehicle distance is , the first ratio of the first 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;

[0172] It can be understood that in step S3, the target vehicle distance is determined according to the weighted sum of the first vehicle distance, the second vehicle distance, and the first weight coefficient matching the first vehicle distance and the second weight coefficient matching the second vehicle distance;

[0173] As an optional implementation, the target vehicle longitudinal distance output by the perception algorithm is Close or far, that is, it will be close to the true value depending on the distance of the target The frame fluctuates up and down. We can first average the longitudinal distance of the target vehicle output by the perception algorithm to obtain ,Right now

[0174] in (Rounding off to the nearest integer is necessary to better adjust the threshold , taking the approximate middle value 30 of the longest detection distance of 100m in the distance segment as a constant value as an example);

[0175] For nearby The longitudinal distance of the target vehicle output by the perception algorithm for each frame 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:

[0176]

[0177] Based on the above steps, a reference coefficient is determined according to the distance interval corresponding to the first vehicle distance, wherein the reference coefficient and the distance interval have a positive correlation; a first ratio between the first vehicle distance and the reference coefficient is determined as a first weight coefficient matching the first vehicle distance, and a difference between 1 and the first ratio is determined as a second weight coefficient matching the second vehicle distance; a target vehicle distance is determined according to a weighted sum of the first vehicle distance, the second vehicle distance, the first weight coefficient matching the first vehicle distance, and the second weight coefficient matching the second vehicle distance, and the weighted sum of the first vehicle distance, the second vehicle distance, the first weight coefficient matching the first vehicle distance, and the second weight coefficient matching the second vehicle distance, and the weight coefficients corresponding to the first vehicle distance and the second vehicle distance are optimized, thereby improving the accuracy of distance measurement compensation under bumpy conditions.

[0178] In an optional implementation manner, before determining the target vehicle distance, the method further includes:

[0179] S1, when the first 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 vehicle distance; and updating the first vehicle distance according to a weighted summation result of the N reference vehicle distances;

[0180] S2, when the first 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 vehicle distance; and updating the first vehicle distance according to a weighted summation result of the N reference vehicle distances;

[0181] S3, 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.

[0182] It can be understood that, in step S1, when the first 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 vehicle distance are obtained; the first vehicle distance is updated according to the weighted summation result of the N reference vehicle distances; the first time frame may be the current time frame;

[0183] As an optional implementation, for example, when the first vehicle distance is 90m, corresponding to a first distance interval (such as a 0-100m interval), the reference vehicle distances corresponding to N time frames adjacent to the first time frame corresponding to the first vehicle distance are obtained. It should be noted that, (Rounding off to the nearest integer is necessary to better adjust the threshold , take the approximate middle value 30 of the farthest detection distance of 100m in the distance segment as a constant value, that is, in this case N=90 / 30=3, that is, select the reference vehicle distance corresponding to the three frames adjacent to the first time frame, the adjacent three frames can be the three frames before the current frame or the three frames after the current frame, and no specific restriction is made here, and then update the first vehicle distance according to the weighted summation result of N reference vehicle distances;

[0184] In step S2, when the first vehicle distance corresponds to the second distance interval, obtain reference vehicle distances corresponding to M time frames adjacent to the first time frame corresponding to the first vehicle distance; and update the first vehicle distance according to the weighted sum of the N reference vehicle distances;

[0185] As an optional implementation, for example, when the first 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 vehicle distance are obtained. It should be noted that, (Rounding off to the nearest integer is necessary to better adjust the threshold , take the approximate middle value 50 of the nearest detection distance of 100m in the distance segment as a constant value, that is, in this case M=150 / 50=3, that is, select the reference vehicle distances corresponding to the three time frames adjacent to the first time frame, 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 update the first vehicle distance according to the weighted summation result of the M reference vehicle distances;

[0186] It should be noted that in step S3, 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.

[0187] Through the above-mentioned implementation mode of the present application, when the first vehicle distance corresponds to the first distance interval, the reference vehicle distances corresponding to each of the N time frames adjacent to the first time frame corresponding to the first vehicle distance are obtained; the first vehicle distance is updated according to the weighted summation result of the N reference vehicle distances; when the first vehicle distance corresponds to the second distance interval, the reference vehicle distances corresponding to each of the M time frames adjacent to the first time frame corresponding to the first vehicle distance are obtained; the first vehicle distance is updated according to the weighted summation result of the N reference vehicle distances; 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 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, the first reference value is smaller than the second reference value, and by obtaining the vehicle distance corresponding to the high-value segment time frame, further weighted calculation is performed, thereby improving the accuracy of distance measurement compensation under bumpy conditions.

[0188] In an optional implementation manner, after determining the target vehicle distance between the ego vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance, the method further includes:

[0189] S1, determining a predicted speed value of a target vehicle object according to a vehicle distance difference between a first target vehicle distance corresponding to a first time frame and a second target vehicle distance corresponding to a second time frame;

[0190] S2, determining a displacement prediction value corresponding to the target vehicle object between the second time frame and the third time frame according to the speed prediction value;

[0191] S3, determining a third predicted vehicle distance corresponding to a third time frame according to the displacement prediction value;

[0192] S4, when a third target vehicle distance corresponding to the third time frame is obtained, obtaining a prediction error between the third predicted vehicle distance and the target vehicle distance;

[0193] S5, when the prediction errors corresponding to the consecutive L frames are all greater than or equal to the target threshold, the target vehicle distances corresponding to the consecutive L frames are corrected by a target correction algorithm;

[0194] S6, when there is at least one frame among the continuous L frames corresponding to a prediction error less than a target threshold, output the target vehicle distances corresponding to the continuous L frames respectively.

[0195] In an optional implementation, in steps S1-S3, a speed prediction value of the target vehicle object is determined according to a vehicle distance difference between a first target vehicle distance corresponding to the first time frame and a second target vehicle distance corresponding to the second time frame, and the predicted speed of the target vehicle object can be obtained by the time difference and the displacement difference (vehicle distance difference); then, a displacement prediction value corresponding to the target vehicle object between the second time frame and the third time frame is determined according to the speed prediction value, for example, by multiplying the predicted speed by the time, and integrating the speed function within the time range, such as the rectangular method, the trapezoidal method, or the Simpson method, to obtain a displacement prediction value; then, a third predicted vehicle distance corresponding to the third time frame is determined according to the displacement prediction value, for example: a predicted displacement of the ego vehicle and a predicted displacement of the leading vehicle are obtained, and the relative displacement of the two vehicles within the predicted time period is calculated; and according to the relative displacement, the predicted vehicle distance corresponding to the third time frame between the two vehicles is updated; if the ego vehicle and the leading vehicle are moving in the same direction, the new distance = the current distance + the predicted displacement of the ego vehicle - the predicted displacement of the leading vehicle. It should be noted that the length of the vehicle needs to be considered in the case of close following;

[0196] In steps S4-S6, when the third target vehicle distance corresponding to the third time frame is obtained, the prediction error between the third predicted vehicle distance and the target vehicle distance is obtained; when the prediction errors corresponding to the consecutive L frames are all greater than or equal to the target threshold, the target vehicle distances corresponding to the consecutive L frames are corrected by the target correction algorithm; when there is at least one frame in the consecutive L frames whose prediction error is less than the target threshold, the target vehicle distances corresponding to the consecutive L frames are output;

[0197] Based on the above methods S1-S3, the distance between the vehicle and the vehicle in front on the continuous L frame images is predicted and the prediction error is obtained. When the prediction errors corresponding to the continuous L frames are all greater than or equal to the target threshold, the target vehicle distances corresponding to the continuous L frames are corrected by the target correction algorithm. The above target correction algorithm can be used to correct the parameter values ​​in the vehicle distance calculation, for example, to adjust and correct the sensor calibration parameters, the reference point when measuring the vehicle distance, and to set the time delay compensation parameters to correct the time delay in the sensor data acquisition and processing process. When there is at least one frame in the continuous L frames with a prediction error less than the target threshold, the target vehicle distances corresponding to the continuous L frames are output.

[0198] In an optional implementation, before acquiring the road image currently captured by the ego vehicle object and the first vehicle distance between the ego vehicle object and the target vehicle object detected by the ego vehicle object, the method further includes:

[0199] S1, obtaining a road image sequence currently collected by the vehicle object, wherein the road image sequence includes road images collected respectively in a plurality of consecutive time frames;

[0200] S2, when the road image includes a plurality of lane line objects, determining 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 the object pointing directions of the plurality of lane line objects in the road image;

[0201] S3, obtaining image position relationship features of the multiple lane line vanishing points according to the image positions of the multiple lane line vanishing points;

[0202] S4, when the image position relationship feature meets the target image condition, determining that the vehicle object is currently in a bumpy state.

[0203] As an optional implementation, in the above steps S1-S2, a road image sequence currently captured by the vehicle object is obtained, and the road image sequence includes road images captured by multiple continuous time frames respectively; in the case where the road image includes multiple lane line objects, lane line vanishing points corresponding to the multiple road images are determined respectively according to the lane line objects respectively included in the road images. It should be noted that in a road environment, lane lines are usually parallel, but in a perspective image, due to the relationship between the observation angle and the distance, these parallel lines will converge to a certain area of ​​the image to form a vanishing point, such as Figure 7 As shown, the lane line vanishing point is shown as point A, and the lane line vanishing point is determined according to the object pointing direction of multiple lane line objects in the road image;

[0204] Further, in steps S3-S4, image position relationship features of the multiple lane line vanishing points are obtained according to their respective image positions; when the image position relationship features meet the target image conditions, it is determined that the ego-vehicle object is currently in a bumpy state;

[0205] Specifically, the image position relationship feature of the multiple lane line vanishing points may be one or more feature values ​​for characterizing the relative position relationship between the lane line vanishing points. Optionally, the variance value of the image position of each lane line vanishing point may be determined as the image position relationship feature; the variance value of the image position difference value of each two adjacent lane line vanishing points may also be determined as the image position relationship feature.

[0206] As an optional implementation, the slope and intercept of the lane line model are used to solve the equations and coordinate system conversion to obtain the image plane coordinates of the lane line vanishing point at the current moment. , 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 of the vehicle, which can be but not limited to setting the image plane coordinate distance threshold of the two to , when 5 consecutive frames When , it is determined that the image position features of multiple lane line vanishing points meet the target image conditions, and it is determined that the vehicle object is currently in a bumpy state;

[0207] Through the above-mentioned implementation mode of the present application, when there are lane lines in the road image, the image position relationship corresponding to the vanishing point of the lane lines is used to determine that the vehicle object is in a bumpy driving state when the target image conditions are met, and then a matching ranging compensation calculation method is selected under the bumpy driving state, thereby improving the accuracy of ranging compensation under bumpy conditions.

[0208] The following combination Figure 8 A complete implementation of this application is described below:

[0209] Start, execute judgment S802, target vehicle longitudinal distance value ≤ 100 meters?

[0210] When the longitudinal distance value of the target vehicle is ≤100 meters, S806 is executed to weight the longitudinal distance value of the target vehicle in adjacent frames using the vehicle tail frame position to obtain an accurate compensation distance measurement value;

[0211] Specifically, the method for performing distance compensation by using the position of the vehicle tail frame is as shown in the flowchart Fig. 9 As shown:

[0212] S902, the target vehicle's preliminary longitudinal distance value is ≤100 meters; specifically, when the target vehicle's preliminary longitudinal distance value given by the monocular vision perception algorithm is ≤100 meters, the target vehicle is relatively close to the ego vehicle, and the vehicle's tail frame position detected by the perception algorithm is relatively accurate and reliable, so the vehicle's tail frame is used for distance measurement compensation;

[0213] S904, obtaining the current speed of the vehicle;

[0214] S906, calculating the horizontal position of the intersection of the slope surface and the ground plane from the camera;

[0215] Specifically, the vehicle tail frame is used for compensation ranging :When the vehicle is bumpy, Figure 3 As shown, using the current vehicle speed , and the slope angle fluctuation time of the previous frames , the horizontal position of the intersection of the slope and the ground plane from the camera can be calculated , as follows:

[0216]

[0217] S908, calculating a virtual installation height of the camera relative to the slope;

[0218] Specifically, Figure 3 , Figure 4 As shown, using the horizontal position , slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0219]

[0220] As an optional implementation, the slope angle may be calculated as follows:

[0221] The lane line features of the road surface are extracted through a monocular vision perception algorithm. 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 world coordinates of the vanishing point of the lane line at the current moment. ; and obtain the world coordinates of the calibrated vanishing point of the vehicle ;

[0222] The slope angle calculated from the lane line vanishing point and the calibrated vanishing point is , as follows:

[0223]

[0224] This is just an example, and does not specifically limit the method of obtaining the slope angle;

[0225] S910, obtaining a real distance between the ranging compensated ego vehicle and the target vehicle according to the detected distance from the bottom edge of the vehicle tail frame to the bottom of the image plane;

[0226] Specifically, taking the calculation method of one frame as an example, using the camera field of view , Height from the bottom of the wheel to the bottom of the vehicle , image coordinate system height , Camera focal length , the distance from the bottom edge of the detected vehicle tail frame to the bottom of the image plane According to the triangular geometric relationship, the real distance between the self-vehicle and the target vehicle after ranging compensation can be obtained. , as follows:

[0227] d2= ;

[0228] d1= ;

[0229]

[0230]

[0231] in , sorted out:

[0232]

[0233] S912, obtain the accurate distance of the target ahead;

[0234] Specifically, the longitudinal distance value of the target vehicle given by the adjacent multi-frame perception algorithm is first used to obtain the compensated ranging : When the vehicle is bumpy, the uncompensated perception algorithm outputs the target vehicle's longitudinal distance Close or far, that is, it will be close to the true value depending on the distance of the target The frame fluctuates up and down, from which we can get:

[0235]

[0236] in (Rounding off to the nearest integer is necessary to better adjust the threshold , take the approximate middle value 30 of the longest detection distance of 100m in the distance segment as the constant value), For nearby The longitudinal distance of the target vehicle output by the uncompensated perception algorithm for each frame within the frame;

[0237] Finally, use the vehicle tail frame to compensate for the distance Weighted distance mean Get the precise distance to the target ahead , as follows:

[0238]

[0239] The above is a method of obtaining the accurate inter-vehicle distance by weighting the average longitudinal distance value of the target vehicle in the adjacent frames according to the vehicle tail frame position;

[0240] If the longitudinal distance value of the target vehicle is greater than 100m, then determine S804: Is it daytime?

[0241] If it is not daytime, then execute S810, weighting the longitudinal distance value of the target vehicle in the adjacent frames by the vehicle taillights;

[0242] Specifically, the method of obtaining the accurate inter-vehicle distance by weighting the longitudinal distance value of the target vehicle in the adjacent frame by the vehicle taillight is as follows: Fig.10 As shown:

[0243] S1002, the target vehicle's preliminary longitudinal distance value is greater than 100 meters and it is dark. Specifically, when the target vehicle's preliminary longitudinal distance value given by the monocular vision perception algorithm is greater than 100 meters and the current Day = dark, the target vehicle is far away from the vehicle and the light is dim, the wheel contact point detection is inaccurate, but the longitudinal position of the vehicle's taillights is relatively clear, which can provide a reference for distance measurement compensation.

[0244] S1004, obtaining the current speed of the vehicle;

[0245] S1006, calculating the horizontal position of the intersection of the slope surface and the ground plane from the camera;

[0246] Specifically, Figure 3 As shown, using the current vehicle speed , and the slope angle fluctuation time of the previous frames The horizontal position of the intersection of the slope and the ground plane from the camera can be calculated , as follows:

[0247]

[0248] S1008, calculating a virtual installation height of the camera relative to the slope;

[0249] Specifically, using the horizontal position , slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0250]

[0251] S1010, obtaining a true distance between the self-vehicle and the target vehicle after ranging compensation according to the longitudinal distance from the detected vehicle taillight to the bottom of the image plane;

[0252] Specifically, take one frame calculation method as an example, Figure 3 , Figure 5 As shown, using the camera field of view , image coordinate system height , Camera focal length , the height distance between the headlight and the ground is (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), the longitudinal distance from the detected vehicle taillight to the bottom of the image plane ;

[0253] According to the triangular geometric relationship, the real distance between the self-vehicle and the target vehicle after ranging compensation can be obtained. , as follows:

[0254] d2= ;

[0255] d1= ;

[0256]

[0257]

[0258] in , sorted out:

[0259]

[0260] S1012, obtaining an accurate distance to the target ahead;

[0261] Specifically, the longitudinal distance value of the target vehicle given by the adjacent multi-frame perception algorithm is used to obtain the compensated ranging : When the vehicle is bumpy, the uncompensated perception algorithm outputs the target vehicle's longitudinal distance Close or far, that is, it will fluctuate around the true value by n frames depending on the distance of the target. From this, we can get:

[0262]

[0263] in (Rounding off to the nearest integer is necessary to better adjust the threshold , take the middle value 50 of the closest detection distance 100m in the distance segment and set it as a constant value). For nearby The longitudinal distance of the target vehicle output by the uncompensated perception algorithm for each frame in the frame; finally, the assumed maximum detection distance of monocular vision is 250m as a constant value, and the distance is compensated by the vehicle taillights Weighted distance mean Get the precise distance to the target ahead , as follows:

[0264]

[0265] The above is a method of obtaining the accurate inter-vehicle distance by weighting the average longitudinal distance value of the target vehicle in the adjacent frames according to the vehicle taillight position;

[0266] If it is determined to be daytime, then S808 is executed to average the longitudinal distance values ​​of the target vehicle in the weighted adjacent frames of the wheel contact point;

[0267] Specifically, the method of obtaining the accurate inter-vehicle distance by weighting the longitudinal distance value of the target vehicle in the adjacent frames at the wheel contact point is as follows: Fig.11 As shown:

[0268] S1102, the target vehicle's preliminary longitudinal distance value is greater than 100 meters and it is daytime; specifically, when the target vehicle's preliminary longitudinal distance value given by the monocular vision perception algorithm is greater than 100 meters and the current Day = daytime, the target vehicle is far away from the vehicle, and the vehicle tail frame output by the perception algorithm is prone to misdetection with the background, while the wheel contact point is relatively accurate;

[0269] S1104, obtaining the current speed of the vehicle;

[0270] S1106, calculating the horizontal position of the intersection of the slope surface and the ground plane from the camera;

[0271] Specifically, the current vehicle speed is used , and the slope angle fluctuation time of the previous frames , find out Figure 3 The horizontal position of the intersection of the slope and the ground plane from the camera , as follows:

[0272]

[0273] S1108, calculating a virtual installation height of the camera relative to the slope;

[0274] Specifically, Figure 3 , Figure 6 As shown, using the horizontal position , slope angle , Camera installation height The virtual installation height of the monocular vision camera relative to the slope can be obtained , as follows:

[0275]

[0276] S1110, obtaining the real distance between the ranging compensated ego vehicle and the target vehicle according to the detected distance from the wheel contact point to the bottom of the image plane;

[0277] Specifically, taking one frame as an example, using the camera field of view , image coordinate system height , Camera focal length , the distance from the detected wheel contact point to the bottom of the image plane ;

[0278] According to the triangular geometric relationship, the real distance between the self-vehicle and the target vehicle after ranging compensation can be obtained. , as follows:

[0279] d2= ;

[0280] d1= ;

[0281]

[0282]

[0283] in , sorted out:

[0284]

[0285] S1112, obtaining the accurate distance of the target ahead;

[0286] Specifically, the longitudinal distance value of the target vehicle given by the perception algorithm of the adjacent multiple frames is used to obtain the compensated ranging : When the vehicle is bumpy, the uncompensated perception algorithm outputs the target vehicle's longitudinal distance Close or far, that is, it will be close to the true value depending on the distance of the target The frame fluctuates up and down, from which we can get:

[0287]

[0288] in (right Round off to better adjust the threshold , take the middle value 50 of the closest detection distance 100m in the distance segment and set it as a constant value). For nearby The longitudinal distance of the target vehicle output by the perception algorithm for each frame without compensation; finally, the assumed maximum detection distance of monocular vision of 250m is used as a constant value, and the distance is compensated by the vehicle tail frame. Weighted distance mean Get the precise distance to the target ahead , as follows:

[0289]

[0290] The above is a method of obtaining the accurate inter-vehicle distance based on the average longitudinal distance value of the target vehicle in the adjacent frames weighted by the wheel contact point;

[0291] It should be noted that this solution is to perform distance measurement compensation under the condition of judging that the vehicle is in a bumpy driving state. The following is a specific implementation method for judging the bumpy state of the vehicle. Fig.12 As shown:

[0292] First, S1202 is executed to collect and pre-process the image sequence of the road surface;

[0293] S1204, determining whether a lane line exists in each frame image sequence, and executing S1206 if a lane line exists to obtain a lane line vanishing point; S1206-1, determining whether a vanishing point difference satisfies a bump condition;

[0294] S1210, obtaining a result of judging the bumpy working condition of the vehicle. Specifically, if the bumpy condition is met, S1210-1 is determined, indicating that the vehicle is in a bumpy state; if the bumpy condition is not met, S1210-2 is determined, indicating that the vehicle is in a stable state;

[0295] In the case where lane lines are detected in a road image, a method for determining whether a vehicle is in a bumpy driving condition by using a lane line vanishing point and a calibrated vanishing point may be specifically as follows: Fig.13 As shown:

[0296] S1302, detect the existence of lane lines; S1304, obtain the coordinates of the vanishing point of the lane lines; S1306, obtain the coordinates of the fixed calibrated vanishing point; specifically, the lane line features of the road surface are extracted through a monocular vision perception algorithm, and the position information of the lane lines is converted into a mathematical model through post-processing, and 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 ; Set the image plane coordinate distance threshold of the two to :

[0297]

[0298] S1308: Determine whether the coordinate distance between the lane line vanishing point and the calibrated vanishing point is greater than a threshold. ?

[0299] If the coordinate distance between the lane line vanishing point and the calibrated vanishing point is greater than the threshold , execute S1310 to determine that it is in a bumpy condition; specifically, when 5 consecutive frames When , 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;

[0300] If the coordinate distance between the lane line vanishing point and the calibrated vanishing point is not greater than the threshold , execute S1312 to determine that it is in a stable working condition; specifically, when 5 consecutive frames When , 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;

[0301] In an optional embodiment, 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 between the image plane coordinates of the lane line vanishing point and the calibrated vanishing point is stable but not 0 within 5 consecutive frames, 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;

[0302] When the lane line does not exist, S1208 is executed to obtain the vehicle speed information or the vehicle height information; S1208-1, calculating whether the reference value meets the fluctuation condition;

[0303] S1210, obtaining a result of judging the bumpy working condition of the vehicle. Specifically, if the bumpy condition is met, S1210-3 is determined, indicating that the vehicle is in a bumpy state; if the bumpy condition is not met, S1210-4 is determined, indicating that the vehicle is in a stable state. It should be noted that the reference value may be, but is not limited to, a slope angle determined according to the vehicle speed information, a height of a reference point on the vehicle, etc., and no specific limitation is imposed on the reference value herein.

[0304] Specifically, the process of determining the bumpy state based on the slope angle determined by the vehicle speed information can be as follows: Fig.14 As shown:

[0305] S1402, detect that the lane line does not exist; S1404, obtain the longitudinal acceleration of the vehicle and the actual acceleration; specifically, use the longitudinal acceleration sensor on 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;

[0306] 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:

[0307]

[0308] S1408, determining whether the fluctuation of the slope angle satisfies the bumping condition; if the bumping condition is satisfied, executing S1410 to determine that the vehicle is in a bumping condition; if the bumping condition is not satisfied, executing S1412 to determine that the vehicle is in a stable condition; specifically, if the calculated slope angle fluctuates up and down within 5 frames and exceeds a certain threshold (the threshold is set by the vehicle itself), then the vehicle is determined to be in a bumping state. This is only an example and does not impose a specific restriction on the fluctuation threshold.

[0309] Determine the vehicle bumpy condition judgment results obtained by different methods in different scenarios, S1212, do the bumpy state judgment results match?

[0310] If the bumpy state judgment result matches, S1214 is executed to determine that the bumpy state is an accurate result; specifically, for example, in a scenario where a lane line exists, the confidence level of judging that the lane line is in a bumpy condition based on the lane line vanishing point and the calibrated vanishing point is 70%, and the confidence level of judging that the lane line is in a stable condition is 30%. The confidence level of judging that the lane line is in a bumpy condition based on the change in the vehicle height information is 80%, and the confidence level of judging that the lane line is in a stable condition is 20%. The results of judging that the lane line is in a bumpy condition in both scenarios are greater than 60%, and the match is successful, and it is determined that the vehicle is in a bumpy driving condition.

[0311] In the case where the bumpy state judgment result does not match, return to execute S1202, collect and pre-process the image sequence of the road surface, specifically, for example, in the scene with lane lines, the confidence of judging that the lane line is in a bumpy condition based on the lane line vanishing point and the calibrated vanishing point is 70%, and the confidence of judging that the lane line is in a stable condition is 30%, and the confidence of judging that the lane line is in a bumpy condition based on the change of the vehicle height information is 10%, and the confidence of judging that the lane line is in a stable condition is 90%, and the difference in the confidence of the results of judging that the vehicle is in a bumpy state under the two scenarios is greater than 50%, which means that the judgment results do not match, and it is impossible to determine whether the vehicle is in a bumpy driving condition; repeat the above process S1202-S1212, re-acquire 10 frames of road images, obtain judgment results based on the lane line information and the vehicle speed information respectively, and match the judgment results under the two judgment conditions again until the match is successful;

[0312] Furthermore, after the distance compensation of the ego vehicle under bumpy conditions is completed, in order to further improve the distance measurement accuracy, it is necessary to determine whether the target vehicle is on a level road when the ego vehicle is in bumpy conditions, that is, to use the change in the distance of the target vehicle to make the judgment. Specifically, the first-order derivative of the difference in the distance change of the target vehicle between the first frame and the second frame after compensation is used as the current speed value of the target vehicle. , and obtain the second frame segmented ranging compensation module to calculate the distance between the target vehicle and the vehicle , and use this value to predict the distance traveled by the target vehicle in the next frame (i.e. the third frame) (within one frame). When it comes to the next frame (i.e. the third frame), the distance traveled by the vehicle is , then according to Calculate the distance between the vehicle and the target vehicle: ; The distance between the target vehicle and the vehicle is calculated using the segmented distance measurement compensation module: , and compare the two.

[0313] 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;

[0314] The distance calculation method using the dual-vehicle slope ranging compensation module is as follows: when the segmented ranging compensation module determines that the current ego vehicle is in a bumpy condition but the target vehicle is driving on a slope, the bump angle calculated by the segmented ranging compensation module is used as the slope angle of the ego vehicle, and the compensated distance calculated by the segmented ranging compensation module 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;

[0315] When the segmented distance measurement compensation module determines that the vehicle is not in a bumpy condition and is traveling on a level road, no compensation is required;

[0316] When the segmented distance measurement compensation module determines 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. In this case, it is necessary to estimate the slopes of the ego vehicle and the target vehicle, and perform distance measurement compensation based on the estimated slopes to obtain an accurate longitudinal distance to the target.

[0317] Specifically, S1, when the vehicle is driving on a slope with a stable slope value and a high-quality lane line is detected, that is, whether there are any vehicles driving within 20 meters on the left and right roads of the vehicle but there are high-quality lane lines on the lane, the slope of the vehicle is calculated first by using the change values ​​of the feature points of the lane lines on both sides of the nearby road; specifically, the perception algorithm and the camera imaging model are used to extract several single-side lane line feature points and project them into the world coordinate system, and the slope value of the vehicle road is obtained based on the coordinate values ​​and trigonometric functions. . To ensure bidirectionality, simply calculate the lane line coordinates The slope value obtained under the corresponding working condition in the segmented distance compensation module , take the difference between the two as When the error is ≤5%, it means that the slope value calculated using the lane feature points is more accurate, and this value is used as the slope value of the slope surface;

[0318] when When the error is greater than 5%, it means that one or both of the slope value calculated by the lane feature point or the slope value given by the segmented distance compensation module is inaccurate. However, the relative position change in a short period of time output by the IMU (inertial measurement unit) has a high degree of confidence. Therefore, the slope value calculated by the IMU is weighted with the slope values ​​given by the two parties to obtain the accurate slope value.

[0319]

[0320] S2, when the vehicle is driving 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 driving 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). Fig.16 As shown, the pixel width of the surrounding vehicle (the vehicle on the left) is obtained by using the vehicle width W and vehicle length L of the surrounding vehicle (the vehicle on the left). , use the following formula to obtain the longitudinal distance between the vehicle and the vehicle :

[0321] ,in, is the camera focal length.

[0322] 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 obtained whether it 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, such as Fig.17 As shown, the time when the vehicle distance error is recorded is , then the previous moment is , the predicted speed of the weekly vehicle (the vehicle on the right in the figure) is , then the distance traveled for:

[0323]

[0324] Self-driving and According to the vehicle speed , the distance traveled for:

[0325]

[0326] exist At this moment, the distance obtained by measuring the vehicle width is , At this moment, the distance obtained by measuring the vehicle width is , the road slope is calculated by the following formula :

[0327]

[0328] To ensure bidirectionality, simply calculate the width of the vehicle The slope value obtained under the corresponding working condition in the segmented distance compensation module , make the difference between the two, that is:

[0329] when When the error is ≤5%, it means that the slope value calculated by using the vehicle width and distance is more accurate, and this value is used as the slope value of the slope surface;

[0330] when When the error is greater than 5%, it means that one or both of the slope value calculated by the lane feature points or the slope value given by the segmented ranging compensation module is inaccurate. However, the relative position change in a short period of time output by the IMU (inertial measurement unit) has a high degree of confidence. Therefore, the slope value calculated by the IMU is weighted with the slope values ​​given by the two parties to obtain the accurate slope value, that is:

[0331]

[0332] S3, when there is no car and no 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 :

[0333]

[0334] After estimating the slope value of the slope where the vehicle is located, the slope value of the slope where the target vehicle is located is calculated. Specifically, Fig.18 As shown, the target vehicle type given by the visual perception algorithm is obtained, and the fixed vehicle width is obtained by looking up the table according to the vehicle type. , get the pixel width of the target vehicle on the imaging plane , use the following formula to obtain the longitudinal distance between the vehicle and the vehicle :

[0335]

[0336] in, is the camera focal length;

[0337] By vertical distance , the speed of the target vehicle can be obtained by derivation. According to the speed of 5 consecutive frames, the speed and distance of the target vehicle at the next moment can be predicted. If the error between the distance of the target vehicle obtained by the speed and the distance of the target vehicle calculated by the vehicle width is greater than 2%, it means that the target vehicle has been driving uphill or downhill. For example, if the target vehicle is driving on a road with a slope of θ, Fig.19 As shown, the time when the vehicle distance error is recorded is , then the previous moment is , the predicted target vehicle speed is , then the distance traveled during this time period for:

[0338]

[0339] Self-driving and According to the vehicle speed , the distance traveled for:

[0340]

[0341] exist At this moment, the distance obtained by measuring the vehicle width is , At this moment, the distance obtained by measuring the vehicle width is , then the slope of the road where the target vehicle is located can be calculated by the following formula: :

[0342]

[0343] Calculate the longitudinal distance from the slope turning point to the vehicle , specifically:

[0344] 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 from the vehicle ;

[0345] 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 of the position. , which is considered as the turning point of the ramp;

[0346] 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.

[0347] Using the two slope angles obtained , And the longitudinal distance of the slope turning point Perform ranging compensation. Specifically: obtain the target vehicle type given by the visual perception algorithm, and obtain the fixed vehicle width based on the vehicle type. , get the pixel width of the target vehicle on the imaging plane , get the longitudinal distance between the vehicle and the vehicle , calculated :

[0348]

[0349] When the lane line and surrounding vehicles traveling in the same direction faster than the vehicle do not exist, the slope turning point cannot be obtained and the accurate However, the slope of the vehicle can be used to determine the slope given by the visual perception algorithm. Too close or too far, this judgment can reduce the false triggering of AEB or FCW.

[0350] 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.

[0351] According to another aspect of the embodiment of the present application, a distance measurement compensation device under bumpy working conditions for implementing the distance measurement compensation method under bumpy working conditions is also provided. Fig. 20 As shown, the device comprises:

[0352] The acquisition unit 2002 acquires a road image currently collected by the self-vehicle object and a first vehicle distance between the self-vehicle object and the target vehicle object detected by the self-vehicle object when the self-vehicle object is currently in a bumpy state, wherein the road image includes a target image area matching the target vehicle object;

[0353] A first determining unit 2004 determines a target ranging area from the target image area according to the distance interval corresponding to the first vehicle distance, wherein the plurality of distance intervals respectively correspond to at least one reference ranging area in the target image area;

[0354] A second determining unit 2006 determines a second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area, wherein the ranging compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and a target component indicated by the target ranging area, and the target component is a component object on the target vehicle object;

[0355] The third determining unit 2008 determines a target vehicle distance between the own vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance.

[0356] Optionally, the ranging compensation device under the above-mentioned bumpy working condition also includes: a judgment unit, used to determine the rear frame area in the above-mentioned target image area as the above-mentioned target ranging area when the above-mentioned first vehicle distance is less than or equal to the target distance; when the above-mentioned first vehicle distance is greater than the above-mentioned target distance, obtain the taillight description parameters corresponding to the above-mentioned target vehicle object, wherein the above-mentioned taillight description parameters are used to indicate the enabled state of the taillights of the above-mentioned target vehicle object; when the above-mentioned taillight description parameters indicate that the above-mentioned taillights of the above-mentioned target vehicle object are in an enabled state, determine the taillight area in the above-mentioned target image area as the above-mentioned target ranging area; when the above-mentioned taillight description parameters indicate that the above-mentioned taillights of the above-mentioned target vehicle object are in an unenabled state, determine the wheel area in the above-mentioned target image area as the above-mentioned target ranging area.

[0357] Optionally, the judgment unit includes: a first determination module, used to determine a first ranging compensation model 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 first 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 lower border of the rear frame area of ​​the target vehicle object; obtaining a first image parameter set matching the target ranging area, wherein the first image parameter set includes the image The sensor's field of view angle, the focal length of the image sensor, the image coordinate system height, and the frame height of the lower frame of the rear frame area from the bottom of the image plane; obtaining a first self-vehicle parameter set associated with the self-vehicle object and a first target vehicle parameter associated with the target vehicle object, 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, 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; determining the second vehicle distance according to the first ranging compensation model, the first image parameter set, the first self-vehicle parameter set and the first target vehicle parameter.

[0358] Optionally, the judgment unit includes: a second determination module, used to determine a second ranging compensation model based on a third geometric object located on the target slope corresponding to the ego vehicle object, a fourth geometric object corresponding to the target vehicle object, a target point on the third geometric object, and a target vertex of the fourth geometric object, wherein the second 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 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; obtaining a second image parameter set matching the target ranging area, wherein the second image parameter set includes the image The sensor comprises the field of view angle of the sensor, the focal length of the image sensor, the height of the image coordinate system, and the height of the lower frame of the taillight area from the bottom of the image plane; obtaining a second self-vehicle parameter set associated with the self-vehicle object and a second target vehicle parameter associated with the target vehicle object, 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, the installation height of the image sensor, and the second target vehicle parameter includes the height of the taillight of the target vehicle from the ground; determining the second vehicle distance according to the second ranging compensation model, the second image parameter set, the second self-vehicle parameter set and the second target vehicle parameter.

[0359] Optionally, the judgment unit includes: a third determination module, used to determine a third ranging compensation model according to a fifth geometric object located on the target slope corresponding to the self-vehicle object, a sixth geometric object corresponding to the target vehicle object, a target point on the fifth geometric object, and a target vertex of the sixth geometric object, wherein the third slope of the target slope is used to indicate the current bump state of the self-vehicle object, the target point is used to indicate the image sensor configured on the self-vehicle object, and the target vertex is used to indicate the wheel contact point of the target vehicle object; obtain a third image parameter set matching the target ranging area, 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; obtain a third self-vehicle parameter set associated with the self-vehicle object, wherein the third self-vehicle parameter set includes the self-vehicle speed of the self-vehicle object, the bump duration of the self-vehicle object, and the installation height of the image sensor; according to the third ranging compensation model and the third image parameter set, the third self-vehicle parameter set determines the second vehicle distance.

[0360] Optionally, the third determination unit also includes a fourth determination module, which is used to: determine a reference coefficient according to the distance interval corresponding to the first vehicle distance, wherein the reference coefficient has a positive correlation with the distance interval; determine a first ratio between the first vehicle distance and the reference coefficient as a first weight coefficient matching the first vehicle distance, and determine a difference between 1 and the first ratio as a second weight coefficient matching the second vehicle distance; determine the target vehicle distance based on the weighted sum of the first vehicle distance, the second vehicle distance, the first weight coefficient matching the first vehicle distance, and the second weight coefficient matching the second vehicle distance.

[0361] Optionally, the fourth determination module includes: a first acquisition unit, for acquiring, when the first vehicle distance corresponds to the first distance interval, reference vehicle distances corresponding to each of N time frames adjacent to the first time frame corresponding to the first vehicle distance; updating the first vehicle distance according to a weighted sum of the N reference vehicle distances; when the first vehicle distance corresponds to the second distance interval, acquiring reference vehicle distances corresponding to each of M time frames adjacent to the first time frame corresponding to the first vehicle distance; updating the first vehicle distance according to a weighted sum of the N reference vehicle distances; wherein, the first distance values ​​in the first distance interval are all smaller than the first distance values ​​in the second distance interval, the N is an integer determined according to the ratio between the first distance before updating and the first reference value, the M is an integer determined according to 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.

[0362] Optionally, the third determination unit is also used to: determine a predicted speed value of the target vehicle object based on a vehicle distance difference between a first target vehicle distance corresponding to the first time frame and a second target vehicle distance corresponding to the second time frame; determine a predicted displacement value of the target vehicle object between the second time frame and the third time frame based on the predicted speed value; determine a third predicted vehicle distance corresponding to the third time frame based on the predicted displacement value; when the third target vehicle distance corresponding to the third time frame is obtained, obtain a prediction error between the third predicted vehicle distance and the target vehicle distance; when the prediction errors corresponding to L consecutive frames are greater than or equal to a target threshold, correct the target vehicle distances corresponding to L consecutive frames by using a target correction algorithm; when at least one frame in the consecutive L frames has a prediction error less than the target threshold, output the target vehicle distances corresponding to L consecutive frames.

[0363] Optionally, the acquisition unit is also used to: acquire a road image sequence currently captured by the self-vehicle object, wherein the road image sequence includes road images captured by multiple continuous time frames; in the case where the road image includes multiple lane line objects, determine lane line vanishing points corresponding to the multiple road images respectively 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 multiple lane line objects in the road images; acquire image position relationship features of the multiple lane line vanishing points according to their respective image positions; and in the case where the image position relationship features meet the target image conditions, determine that the self-vehicle object is currently in a bumpy state.

[0364] For the specific implementation, reference may be made to the example shown in the distance measurement compensation method under the bumpy working condition described above, which will not be described in detail in this example.

[0365] Among them, the memory 2102 can be used to store software programs and modules, such as the program instructions / modules corresponding to the distance measurement compensation method and device under bumpy conditions in the embodiments of the present invention. The processor 2104 executes various functional applications and data processing by running the software programs and modules stored in the memory 2102, that is, to realize the above-mentioned distance measurement compensation method under bumpy conditions. The memory 2102 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 2102 may further include a memory remotely arranged relative to the processor 2104, 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 2102 can be specifically, but not limited to, used to store file information such as target logical files. As an example, such as Fig.21 As shown, the memory 2102 may include, but is not limited to, the acquisition unit 2002, the first determination unit 2004, the second determination unit 2006, and the third determination unit 2008 in the distance measurement compensation device under the bumpy working condition. In addition, other module units in the distance measurement compensation device under the bumpy working condition may also be included but are not limited to, which will not be repeated in this example.

[0366] Optionally, the transmission device 2106 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 2106 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 2106 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0367] In addition, the electronic device further includes: a display 2108, and a connection bus 2110, which is used to connect various module components in the electronic device.

[0368] 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.

[0369] 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.

[0370] 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.

[0371] 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.

[0372] 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.

[0373] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0374] S1, obtaining a current image and pixel values ​​corresponding to a plurality of pixels in the current image;

[0375] S2, when it is determined that the current image is an image to be processed that satisfies a target monochrome condition according to pixel values ​​corresponding to each of the plurality of pixels, a pixel gain value matching the image to be processed is obtained, wherein the target monochrome condition is used to indicate that the number of target pixel points matching the target monochrome in the image to be processed is greater than or equal to a target threshold, and the pixel gain value includes a red gain value, a green gain value, and a blue gain value;

[0376] S3, determining a target color temperature value corresponding to the image to be processed according to the pixel gain value, and obtaining a target correction coefficient according to the target color temperature value, wherein the target correction coefficient is a value determined by a standard color card at a target color temperature indicated by the target color temperature value;

[0377] S4, processing the pixel values ​​corresponding to the plurality of pixels in the image to be processed respectively according to the target correction coefficient to obtain the target image.

[0378] 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.

[0379] 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.

[0380] 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.

[0381] 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.

[0382] 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.

[0383] 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.

[0384] 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.

[0385] The above is only a preferred implementation 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 distance measurement compensation method under bumpy working conditions, characterized in that: include: When the ego vehicle object is currently in a bumpy state, acquiring a road image currently captured by the ego vehicle object and a first vehicle distance between the ego vehicle object and a target vehicle object detected by the ego vehicle object, wherein the road image includes a target image area matching the target vehicle object; Determining a target ranging area from the target image area according to the distance interval corresponding to the first vehicle distance, including: when the first vehicle distance is less than or equal to the target distance, determining the vehicle tail frame area in the target image area as the target ranging area; when the first vehicle distance is greater than the target distance, acquiring a taillight description parameter corresponding to the target vehicle object, wherein the taillight description parameter is used to indicate the enabled state of the vehicle taillight of the target vehicle object; when the taillight description parameter indicates that the vehicle taillight of the target vehicle object is in an enabled state, determining the vehicle taillight area in the target image area as the target ranging area; when the taillight description parameter indicates that the vehicle taillight of the target vehicle object is in an unenabled state, determining the wheel area in the target image area as the target ranging area, wherein a plurality of the distance intervals respectively correspond to at least one reference ranging area in the target image area; Determining a second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area includes: when the first vehicle distance is less than or equal to the target distance, determining a first ranging compensation model according to a first geometric object corresponding to the ego vehicle object and located on a target slope, 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 first 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 lower frame of a rear frame area of ​​the target vehicle object; 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 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. The method comprises the following steps: obtaining a first self-vehicle parameter set associated with the self-vehicle object and a first target vehicle parameter associated with the target vehicle object, 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; determining the second vehicle distance according to the first ranging compensation model, the first image parameter set, the first self-vehicle parameter set and the first target vehicle parameter, wherein the ranging compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and the target component indicated by the target ranging area, and the target component is a component object on the target vehicle object; A target vehicle distance between the own vehicle object and the target vehicle object is determined based on the first vehicle distance and the second vehicle distance.

2. The method according to claim 1, characterized in that When the first vehicle distance is greater than the target distance and the taillight description parameter indicates that the taillight of the target vehicle object is in an enabled state, determining the second vehicle distance based on the image parameters matching the target ranging area and the ranging compensation model matching the target ranging area further includes: Determine a second ranging compensation model according to a third geometric object located on a target slope corresponding to the ego vehicle object, a fourth geometric object corresponding to the target vehicle object, a target point on the third geometric object, and a target vertex of the fourth geometric object, wherein the second 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 lower border of the taillight region of the target vehicle object; Acquire a second image parameter set matching the target ranging area, 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 height of the lower frame of the taillight area from the bottom of the image plane; Acquire 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 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 second target vehicle parameter includes the taillight height of the taillight of the target vehicle from the ground; The second 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.

3. The method according to claim 1, characterized in that When the first vehicle distance is greater than the target distance and the taillight description parameter indicates that the taillight of the target vehicle object is not enabled, determining the second vehicle distance based on the image parameters matching the target ranging area and the ranging compensation model matching the target ranging area further includes: Determine a third ranging compensation model according to a fifth geometric object located on a target slope corresponding to the ego vehicle object, a sixth geometric object corresponding to the target vehicle object, a target point on the fifth geometric object, and a target vertex of the sixth 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; Acquire 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, an image coordinate system height, and a grounding height of a grounding point of the wheel area from a bottom of an image plane; Acquire 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; The second vehicle distance is determined according to the third distance measurement compensation model, the third image parameter set, and the third vehicle parameter set.

4. The method according to claim 1, characterized in that The determining a target vehicle distance between the self-vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance includes: Determining a reference coefficient according to the distance interval corresponding to the first vehicle distance, wherein there is a positive correlation between the reference coefficient and the distance interval; Determine a first ratio between the first vehicle distance and the reference coefficient as a first weight coefficient matching the first vehicle distance, and determine a difference between 1 and the first ratio as a second weight coefficient matching the second vehicle distance; The target vehicle distance is determined according to the first vehicle distance, the second vehicle distance, and a weighted sum of the first weight coefficient matching the first vehicle distance and the second weight coefficient matching the second vehicle distance.

5. The method according to claim 4, characterized in that Before determining the target vehicle distance according to the first vehicle distance, the second vehicle distance, and a weighted sum of the first weight coefficient matching the first vehicle distance and the second weight coefficient matching the second vehicle distance, the method further includes: When the first vehicle distance corresponds to a first distance interval, obtaining reference vehicle distances corresponding to N time frames adjacent to the first time frame corresponding to the first vehicle distance; and updating the first vehicle distance according to a weighted sum of the N reference vehicle distances; When the first 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 vehicle distance; and updating the first vehicle distance according to a weighted sum of the N reference vehicle distances; Among them, the first distance values ​​in the first distance interval are all smaller than the first distance values ​​in the second distance interval, the N is an integer determined according to the ratio between the first distance before updating and the first reference value, the M is an integer determined according to 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.

6. The method according to claim 1, characterized in that After determining the target vehicle distance between the own vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance, the method further includes: Determine a predicted speed value of the target vehicle object according to a vehicle distance difference between a first target vehicle distance corresponding to the first time frame and a second target vehicle distance corresponding to the second time frame; Determine a displacement prediction value corresponding to the target vehicle object between the second time frame and the third time frame according to the speed prediction value; Determining a third predicted vehicle distance corresponding to the third time frame according to the displacement prediction value; When a third target vehicle distance corresponding to the third time frame is obtained, obtaining a prediction error between the third predicted vehicle distance and the target vehicle distance; When the prediction errors corresponding to the consecutive L frames are all greater than or equal to the target threshold, the target vehicle distances corresponding to the consecutive L frames are corrected by a target correction algorithm; When the prediction error degree corresponding to at least one frame among the continuous L frames is smaller than the target threshold, the target vehicle distances corresponding to the continuous L frames are output.

7. The method according to claim 1, characterized in that Before acquiring the road image currently captured by the ego vehicle object and the first vehicle distance between the ego vehicle object and the target vehicle object detected by the ego vehicle object, the method further includes: Acquire a road image sequence currently collected by the vehicle object, wherein the road image sequence includes road images collected respectively 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 meets the target image condition, it is determined that the vehicle object is currently in a bumpy state.

8. A distance measurement compensation device under bumpy working conditions, characterized in that: include: an acquisition unit, which acquires, when the ego vehicle object is currently in a bumpy state, a road image currently captured by the ego vehicle object and a first vehicle distance between the ego vehicle object and a target vehicle object detected by the ego vehicle object, wherein the road image includes a target image area matching the target vehicle object; A first determining unit determines a target ranging area from the target image area according to the distance interval corresponding to the first vehicle distance, including: when the first vehicle distance is less than or equal to the target distance, determining a vehicle tail frame area in the target image area as the target ranging area; when the first vehicle distance is greater than the target distance, acquiring a taillight description parameter corresponding to the target vehicle object, wherein the taillight description parameter is used to indicate an enabled state of the vehicle taillights of the target vehicle object; when the taillight description parameter indicates that the vehicle taillights of the target vehicle object are in an enabled state, determining the vehicle taillight area in the target image area as the target ranging area; when the taillight description parameter indicates that the vehicle taillights of the target vehicle object are in an unenabled state, determining the wheel area in the target image area as the target ranging area, wherein a plurality of the distance intervals correspond to at least one reference ranging area in the target image area, respectively; The second determination unit determines a second vehicle distance based on image parameters matching the target ranging area and a ranging compensation model matching the target ranging area, including: when the first vehicle distance is less than or equal to the target distance, determining a first ranging compensation model according to a first geometric object corresponding to the ego vehicle object and located on a target slope, 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 first 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 lower frame of a rear frame area of ​​the target vehicle object; and obtaining 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, and the image The method comprises the following steps: acquiring a first self-vehicle parameter set associated with the self-vehicle object and a first target vehicle parameter associated with the target vehicle object, 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; determining the second vehicle distance according to the first ranging compensation model, the first image parameter set, the first self-vehicle parameter set and the first target vehicle parameter, wherein the ranging compensation model is a geometric model determined based on the self-vehicle object, the target vehicle object, and the target component indicated by the target ranging area, and the target component is a component object on the target vehicle object; A third determination unit determines a target vehicle distance between the own vehicle object and the target vehicle object based on the first vehicle distance and the second vehicle distance.

9. 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 7 when executed by an electronic device.

10. 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 7 through the computer program.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Driving ranging and collision warning unit based on ARM-Linux system

    CN104729459A

  • Vehicle-mounted distance measuring system and vehicle-mounted distance measuring method

    CN106679633A

  • Monocular vision vehicle range finding method for obtaining features of vehicle ahead via Internet of Vehicles

    CN107390205A

  • Anti-shaking distance measurement method and device for monocular advanced driver assistance system (ADAS) and electronic equipment

    CN110836656A

  • Distance measurement method and device, electronic equipment and storage medium

    CN113819890A