Method and device for predicting relative behavior between vehicle and obstacle and medium
By predicting the motion trajectories and collision risk areas of the vehicle and obstacles from the image sequence collected by the camera from the first perspective, the problem of the influence of depth restoration errors in the existing technology is solved, and the prediction accuracy of the relative behavior of the vehicle and obstacles is improved. , enhancing vehicle safety.
Patent Information
- Application Number
- CN202410910945.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-22
AI Technical Summary
When the existing technology predicts the relative behavior between vehicles and obstacles, it is easily affected by depth restoration errors, resulting in low prediction accuracy.
Determine the target image from the image sequence collected by the camera from the first perspective, predict the trajectory of the obstacle and the collision risk area of the vehicle, and combine the two to predict the relative behavior between the vehicle and the obstacle to avoid converting the information to a bird's-eye view. .
It improves the prediction accuracy of the relative behavior between the vehicle and obstacles, improves the safety of the vehicle, and avoids the impact of depth restoration errors.
Smart Images

Figure CN118823055A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to driving technology, and in particular to a method, device and medium for predicting relative behavior between a vehicle and an obstacle. Background Art
[0002] In some scenarios, it is necessary to predict the relative behavior between a vehicle and an obstacle, for example, predicting whether a vehicle and an obstacle will collide. Based on the prediction results, the vehicle can be controlled, such as decelerating or braking the vehicle, to ensure the safety of the vehicle. How to accurately predict the relative behavior between a vehicle and an obstacle is a problem worthy of attention for those skilled in the art. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides a method, device and medium for predicting the relative behavior between a vehicle and an obstacle.
[0004] According to one aspect of an embodiment of the present disclosure, a method for predicting relative behavior between a vehicle and an obstacle is provided, comprising:
[0005] Determine a target image from an image sequence captured by a camera disposed on the vehicle;
[0006] Predicting a first motion trajectory of an obstacle in the image sequence in a two-dimensional coordinate system corresponding to the target image;
[0007] In the two-dimensional coordinate system, determining a collision risk area of the vehicle;
[0008] Based on the first motion trajectory and the collision risk area, a relative behavior between the vehicle and the obstacle is predicted.
[0009] According to another aspect of an embodiment of the present disclosure, there is provided a device for predicting relative behavior between a vehicle and an obstacle, comprising:
[0010] A first determination module is used to determine a target image from an image sequence captured by a camera disposed on the vehicle;
[0011] A first prediction module, configured to predict a first motion trajectory of an obstacle in the image sequence in a two-dimensional coordinate system corresponding to the target image determined by the first determination module;
[0012] A second determination module, configured to determine a collision risk area of the vehicle in the two-dimensional coordinate system;
[0013] The second prediction module is used to predict the relative behavior between the vehicle and the obstacle based on the first motion trajectory predicted by the first prediction module and the collision risk area determined by the second determination module.
[0014] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program for executing the above-mentioned method for predicting the relative behavior between a vehicle and an obstacle.
[0015] According to another aspect of the embodiments of the present disclosure, an electronic device is provided, the electronic device comprising:
[0016] processor;
[0017] a memory for storing instructions executable by the processor;
[0018] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned method for predicting the relative behavior between the vehicle and the obstacle.
[0019] According to another aspect of the embodiments of the present disclosure, a computer program product is provided. When instructions in the computer program product are executed by a processor, the above-mentioned method for predicting the relative behavior between a vehicle and an obstacle is performed.
[0020] Based on the method, device, medium, electronic device and computer program product for predicting the relative behavior between a vehicle and an obstacle provided by the above-mentioned embodiments of the present disclosure, a target image can be determined from an image sequence captured by a camera set on a vehicle, so as to predict the first motion trajectory of the obstacle in the image sequence and determine the collision risk area of the vehicle in the two-dimensional coordinate system corresponding to the target image. It should be noted that the target image is captured by a camera, and the target image can reflect the perspective of the camera to obtain information. The perspective of the camera to obtain information belongs to the first perspective. Therefore, the first motion trajectory and the collision risk area in the two-dimensional coordinate system corresponding to the target image can be considered to be obtained in the first perspective. Accordingly, in combination with the first motion trajectory and the collision risk area, the relative behavior between the vehicle and the obstacle can be predicted in the first perspective. Therefore, by adopting the embodiments of the present disclosure, there is no need to convert the information obtained by the camera to a bird's-eye view, which can avoid the depth restoration error introduced by the conversion process, thereby improving the prediction accuracy of the relative behavior between the vehicle and the obstacle. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flowchart of a method for predicting relative behavior between a vehicle and an obstacle provided by some exemplary embodiments of the present disclosure.
[0022] Figure 2 It is a flowchart of a method for predicting a first motion trajectory of an obstacle in an image sequence in a two-dimensional coordinate system corresponding to a target image, provided by some exemplary embodiments of the present disclosure.
[0023] Figure 3-1 is a schematic diagram of an image captured by a camera at time t0 in some exemplary embodiments of the present disclosure.
[0024] Figure 3-2 is a schematic diagram of an image captured by a camera at time t1 in some exemplary embodiments of the present disclosure.
[0025] Figure 3-3 It is an equivalent first-perspective image of the image captured by the camera at time t1 in some exemplary embodiments of the present disclosure.
[0026] Figure 4 It is a flowchart of a method for determining a collision risk area of a vehicle in a two-dimensional coordinate system provided by some exemplary embodiments of the present disclosure.
[0027] Figure 5-1 is a schematic diagram of a dynamic risk area of a vehicle in a bird's-eye view coordinate system in some exemplary embodiments of the present disclosure.
[0028] Figure 5-2 Schematic diagram of a dynamic risk area of a vehicle in a bird's-eye view coordinate system in some other exemplary embodiments of the present disclosure.
[0029] Figure 6 It is a flowchart of a method for determining a collision risk area of a vehicle in a two-dimensional coordinate system provided by some other exemplary embodiments of the present disclosure.
[0030] Figure 7 It is a schematic diagram of determining a collision risk area of a vehicle in a two-dimensional coordinate system in some exemplary embodiments of the present disclosure.
[0031] Figure 8 It is a flowchart of a method for predicting the relative behavior between a vehicle and an obstacle based on a first motion trajectory and a collision risk area provided by some exemplary embodiments of the present disclosure.
[0032] Fig. 9 It is a flowchart of a method for predicting the relative behavior between a vehicle and an obstacle based on a first motion trajectory, a static risk area in a collision risk area, a first sub-area, and a second sub-area provided by some exemplary embodiments of the present disclosure.
[0033] Fig.10 is a schematic diagram of a set of target trajectory points and a first reference line in some exemplary embodiments of the present disclosure.
[0034] Fig.11 It is a flowchart of a method for predicting the relative behavior between a vehicle and an obstacle based on a first motion trajectory and a collision risk area provided by other exemplary embodiments of the present disclosure.
[0035] Fig.12It is a schematic diagram of the structure of an apparatus for predicting relative behavior between a vehicle and an obstacle provided by some exemplary embodiments of the present disclosure.
[0036] Fig.13 is a schematic diagram of the structure of the first prediction module in some exemplary embodiments of the present disclosure.
[0037] Fig.14 is a schematic diagram of the structure of the second prediction module in some exemplary embodiments of the present disclosure.
[0038] Fig.15 It is a schematic diagram of the structure of the second prediction module in some other exemplary embodiments of the present disclosure.
[0039] Fig.16 is a schematic diagram of the structure of the second determination module in some exemplary embodiments of the present disclosure.
[0040] Fig.17 It is a structural diagram of the second determination module in some other exemplary embodiments of the present disclosure.
[0041] Fig.18 is a structural diagram of an electronic device provided by some exemplary embodiments of the present disclosure. DETAILED DESCRIPTION
[0042] To explain the present disclosure, example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. It should be understood that the present disclosure is not limited to the example embodiments.
[0043] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0044] Application Overview
[0045] In some scenarios, it is necessary to predict the relative behavior between the vehicle and the obstacle, such as predicting whether the vehicle will collide with the obstacle.
[0046] In the related art, the relative behavior between the vehicle and the obstacle is generally predicted from a bird's eye view (BEV) based on the information obtained by the sensors installed on the vehicle. It is understandable that the bird's eye view is a global perspective of the road from the air. The advantage is that it can represent the positional relationship between global obstacles and the spatial association relationship between obstacles and maps in fixed measurement units (such as distance units, number of pixels, etc.). The disadvantage is that the sensor usually does not obtain information from a bird's eye view. The information obtained by the sensor needs to be converted to a bird's eye view. The conversion process may introduce a large depth restoration error, which is easy to affect the prediction accuracy of the relative behavior between the vehicle and the obstacle.
[0047] Therefore, how to accurately predict the relative behavior between a vehicle and an obstacle is a problem worthy of attention for those skilled in the art.
[0048] Exemplary Systems
[0049] Generally speaking, the sensor does not obtain information from a bird's-eye view, but from a first-person view (FPV). The world from a first-person view is very similar to the world in the eyes of a human driver. In the embodiments of the present disclosure, the relative behavior between the vehicle and the obstacle can be predicted from a first-person view, so there is no need to convert the information obtained by the sensor to a bird's-eye view, which can avoid the depth restoration error introduced by the conversion process, thereby improving the prediction accuracy of the relative behavior between the vehicle and the obstacle.
[0050] Exemplary Methods
[0051] Figure 1 It is a flowchart of a method for predicting relative behavior between a vehicle and an obstacle provided by some exemplary embodiments of the present disclosure. Figure 1 The method shown may include step 110 , step 120 , step 130 , and step 140 .
[0052] Step 110 , determining a target image from an image sequence captured by a camera disposed on the vehicle.
[0053] Optionally, the camera provided on the vehicle may include but is not limited to a front view camera, a left view camera, a right view camera, etc., which are not listed one by one here. For ease of understanding, the following description is based on the case where the camera provided on the vehicle is a front view camera as an example.
[0054] Optionally, the image sequence captured by the camera set on the vehicle may include multiple frames of images arranged in sequence, for example, S frames of images arranged in sequence; wherein S may be an integer greater than or equal to 2. The S frames of images may be arranged in the order of the corresponding acquisition time points. The S frames of images may all be RGB images; wherein R represents red, G represents green, and B represents blue.
[0055] In step 110, based on the early and late relationship between the acquisition time points corresponding to the S frame images included in the image sequence, one frame of image may be selected from the S frame images as the target image. For example, the image corresponding to the latest acquisition time point may be selected from the S frame images as the target image. Alternatively, the image corresponding to the second latest acquisition time point may be selected from the S frame images as the target image.
[0056] Step 120 : predicting a first motion trajectory of the obstacle in the image sequence in a two-dimensional coordinate system corresponding to the target image.
[0057] Optionally, the two-dimensional coordinate system corresponding to the target image may include but is not limited to an image coordinate system corresponding to the target image, a pixel coordinate system corresponding to the target image, etc. The origin of the image coordinate system corresponding to the target image may be the center point of the target image. The origin of the pixel coordinate system corresponding to the target image may be the upper left corner point of the target image.
[0058] Optionally, there may be obstacles in the image sequence, including but not limited to pedestrians, cyclists, other vehicles, etc. The number of obstacles in the image sequence may be one or more. For ease of understanding, the following mainly takes the case where the number of obstacles in the image sequence is one and the obstacle appears in all S frame images included in the image sequence as an example for description.
[0059] In step 120, based on the image sequence, in a two-dimensional coordinate system, the trajectory points of the obstacle at M future time points can be predicted to obtain M trajectory points; wherein M can be an integer greater than or equal to 2. The first motion trajectory of the obstacle can be defined by the M trajectory points. For example, the trajectory formed by sequentially connecting the M trajectory points can be used as the first motion trajectory. The first motion trajectory can be either a straight trajectory or a curved trajectory.
[0060] Step 130: determine the collision risk area of the vehicle in a two-dimensional coordinate system.
[0061] Optionally, the collision risk area of the vehicle can be understood as an area where the probability of collision with the vehicle is high after the obstacle invades. The shape of the collision risk area of the vehicle can include but is not limited to rectangle, circle, trapezoid, etc., which are not listed here one by one.
[0062] In step 130 , a collision risk area of the vehicle may be determined based on vehicle-related calibration parameters, camera-related calibration parameters, and vehicle motion information.
[0063] Step 140 , predicting the relative behavior between the vehicle and the obstacle based on the first motion trajectory and the collision risk area.
[0064] Optionally, the relative behavior between the vehicle and the obstacle may include, but is not limited to, whether the vehicle and the obstacle will collide, a specific time period when the vehicle and the obstacle collide, a specific time point when the vehicle and the obstacle collide, etc.
[0065] In step 140, the first motion trajectory may be compared with the collision risk area to determine whether the obstacle will invade the collision risk area in the future, thereby predicting the relative behavior between the vehicle and the obstacle. For example, if the obstacle will invade the collision risk area in the future, the relative behavior between the vehicle and the obstacle may indicate that the vehicle and the obstacle will collide. If the obstacle will not invade the collision risk area in the future, the relative behavior between the vehicle and the obstacle may indicate that the vehicle and the obstacle will not collide.
[0066] In an embodiment of the present disclosure, a target image can be determined from an image sequence captured by a camera disposed on a vehicle, so as to predict the first motion trajectory of an obstacle in the image sequence and determine the collision risk area of the vehicle in a two-dimensional coordinate system corresponding to the target image. It should be noted that the target image is captured by a camera, and the target image can reflect the perspective of the camera to obtain information. The perspective of the camera to obtain information belongs to the first perspective mentioned above. Therefore, the first motion trajectory and the collision risk area in the two-dimensional coordinate system corresponding to the target image can be considered to be obtained in the first perspective. Accordingly, in combination with the first motion trajectory and the collision risk area, the relative behavior between the vehicle and the obstacle can be predicted in the first perspective. Therefore, by adopting an embodiment of the present disclosure, there is no need to convert the information obtained by the camera to a bird's-eye view, and the depth restoration error introduced in the conversion process can be avoided, thereby improving the prediction accuracy of the relative behavior between the vehicle and the obstacle.
[0067] Figure 2 It is a flowchart of a method for predicting a first motion trajectory of an obstacle in an image sequence in a two-dimensional coordinate system corresponding to a target image, provided by some exemplary embodiments of the present disclosure. Figure 2 The illustrated method may include step 210 , step 220 , and step 230 .
[0068] Step 210: determine first detection frame information of obstacles in the target image.
[0069] Optionally, a first neural network model for obstacle detection may be pre-trained.
[0070] In step 210, obstacle detection may be performed on the target image through the first neural network model to obtain first detection frame information of the obstacle in the target image. The first detection frame information may include, but is not limited to, information such as the size and position of the detection frame of the obstacle in the target image. In one example, the shape of the obstacle detection frame may be a rectangle, and the first detection frame information may include the two-dimensional coordinates of the upper left corner point and the lower right corner point of the detection frame, or include the two-dimensional coordinates of the upper left corner point of the detection frame and the width and height of the detection frame.
[0071] Step 220: determine second detection frame information of obstacles in images other than the target image in the image sequence.
[0072] Optionally, the image sequence may include S frame images, and the image sequence may have S-1 frame images remaining in addition to the target image.
[0073] In step 220, obstacle detection can be performed on the remaining S-1 frame images respectively through the first neural network model to obtain the second detection frame information corresponding to each of the remaining S-1 frame images. The composition of the second detection frame information can refer to the above introduction to the composition of the first detection frame information, which will not be repeated here.
[0074] Step 230 , predicting a first motion trajectory of the obstacle in a two-dimensional coordinate system based on the first detection frame information, the second detection frame information, and the image sequence.
[0075] In some optional implementations of the present disclosure, step 230 may include:
[0076] Determine a first local image block corresponding to first detection frame information in the target image;
[0077] Determine a second local image block corresponding to second detection frame information in an image other than the target image in the image sequence;
[0078] Based on the first detection frame information, the second detection frame information, the first local image block, and the second local image block, a first motion trajectory of the obstacle is predicted in a two-dimensional coordinate system.
[0079] As described above, the first detection frame information may include information such as the size and position of the detection frame of the obstacle in the target image. For example, the first detection frame information may be expressed as (x, y, w, h), where x and y may constitute the two-dimensional coordinates of the upper left corner of the detection frame, and w and h are the width and height of the detection frame, respectively. Referring to the size and position information included in the first detection frame information, a local image block surrounded by the detection frame may be intercepted from the target image, and the local image block may be used as the first local image block. In a similar manner, a corresponding second local image block may be obtained for each image in the remaining S-1 frame images, thereby obtaining S-1 second local image blocks corresponding to the remaining S-1 frame images. By resizing the first local image block and the S-1 second local image blocks, S local image blocks of the same size (for example, the sizes are all preset sizes) may be obtained. By stacking the S local image blocks of the same size, a corresponding tensor may be formed. For ease of description, the tensor will be referred to as the target tensor in the following.
[0080] Optionally, the first detection frame information and each second detection frame information can be expressed in the form of (x, y, w, h), and a corresponding feature vector can be formed by stacking these detection frame information. For ease of description, the feature vector is subsequently referred to as a target feature vector.
[0081] When the target tensor and the target feature vector are known, feature extraction can be performed on the target tensor to obtain a first extracted feature, and feature extraction can be performed on the target feature vector to obtain a second extracted feature. As an example, feature extraction of the target tensor can be implemented by a convolutional neural network. Feature extraction of the target feature vector can be implemented by a multilayer perceptron (MLP). Next, the first extracted feature and the second extracted feature can be fused to obtain a fused feature. As an example, the fusion method of the first extracted feature and the second extracted feature can be feature concatenation. By decoding the fused feature, the first motion trajectory of the obstacle in the two-dimensional coordinate system can be predicted.
[0082] In some embodiments, after obtaining the first extracted feature and the second extracted feature, at least two fusion methods can be used to fuse the first extracted feature and the second extracted feature to obtain at least two fusion features corresponding to the at least two fusion methods. For each of the at least two fusion features, a corresponding motion trajectory can be obtained through decoding processing, thereby obtaining two motion trajectories corresponding to the at least two fusion features. Afterwards, one motion trajectory can be selected from the two motion trajectories as the first motion trajectory.
[0083] In order to facilitate Figure 2To understand the principles of the illustrated embodiments, the concept of an equivalent first-person perspective field of view is introduced below.
[0084] Assume that the camera installed in the vehicle is a front-view camera. During the movement of the vehicle, the front-view camera can capture image A0 at time t0 and capture image A1 at time t1 later than time t0. The same pedestrian may exist in image A0 and image A1. For the sake of convenience, the pedestrian will be referred to as the target pedestrian in the following. If the first neural network model is used to detect obstacles in image A0, a detection frame for enclosing the target pedestrian can be added to image A0. For details, see Figure 3-1 If the first neural network model is used to detect obstacles on the image A1, a detection frame for surrounding the target pedestrian can be added to the image A1. For details, see Figure 3-2 By comparing Figure 3-1 and Figure 3-2 It can be seen that the vehicle is moving forward and the target pedestrian is crossing the road. When the vehicle moves to the zebra crossing, the target pedestrian walks to the right front of the front camera's field of view, so compared to Figure 3-1 , Figure 3-2 The detection frame in moves to the right and becomes larger.
[0085] As can be seen from the introduction in the previous paragraph, both the vehicle and the target pedestrian are moving, and there is relative motion between the vehicle and the target pedestrian. In the embodiment of the present disclosure, the following target assumption can be introduced: the vehicle is always stationary, and the movement of the vehicle in the physical world is assigned to the target pedestrian. Then, in addition to crossing the road sideways, the target pedestrian also has a longitudinal speed close to the vehicle. Therefore, at time t1, the target pedestrian is close to the front of the vehicle, and the perception box appears in front of the right side of the vehicle. Based on the target assumption, the image captured by the front-view camera at time t0 can be image B0, and the image captured by the front-view camera at time t1 can be image B1, such as Figure 3-1 As shown, the foreground and background of image B0 and image A0 may be the same, and Figure 3-3 As shown, the foreground of image B1 and image A1 can be the same, and the background can be different. Then, if we only focus on the relative relationship between the vehicle and the target pedestrian, image B1 and image A1 can be considered to be completely equivalent, and image B1 can be called the equivalent first-view image of image A1. Then, the detection frame in image A1 can be drawn on image A0 (the position of the detection frame on image A0 is the same as that on image A1) to study the relative relationship between the vehicle and the target pedestrian in the two-dimensional coordinate system corresponding to image A0.
[0086] According to the above introduction to the concept of equivalent first-person field of view, for the detection frames of the same obstacle in different images captured by the camera, these detection frames can be drawn on the same image to study the relative relationship between the vehicle and the target pedestrian. Figure 2 In the illustrated embodiment, first detection frame information of obstacles in the target image and second detection frame information of obstacles in images other than the target image in the image sequence can be determined. Based on the first detection frame information, the second detection frame information and the image sequence, trajectory prediction of the obstacle can be performed at the first perspective reflected by the target image without performing trajectory prediction at a bird's-eye view. This can avoid the adverse effects that may be caused by the conversion to a bird's-eye view, thereby improving the prediction accuracy of the relative behavior between the vehicle and the obstacle.
[0087] Figure 4 It is a flowchart of a method for determining a collision risk area of a vehicle in a two-dimensional coordinate system provided by some exemplary embodiments of the present disclosure. Figure 4 The method shown may include step 410 , step 420 , step 430 , and step 440 .
[0088] Step 410 : planning a second motion trajectory of the vehicle in a bird's-eye view coordinate system.
[0089] Optionally, the bird's-eye view coordinate system may be a three-dimensional coordinate system customized for a global perspective of looking down on the road surface from the air.
[0090] In step 410, the trajectory points of the vehicle at R future time points can be planned in the bird's-eye view coordinate system to obtain R trajectory points; wherein R can be an integer greater than or equal to 2. The second motion trajectory of the vehicle can be defined by the R trajectory points. For example, the trajectory formed by sequentially connecting the R trajectory points can be used as the second motion trajectory. The second motion trajectory can be either a straight trajectory or a curved trajectory. R can be greater than M above.
[0091] Optionally, a second neural network model for vehicle trajectory planning can be pre-trained. In addition, the historical trajectory of the vehicle can be determined in the bird's-eye view coordinate system. Based on the historical trajectory of the vehicle, the second neural network model can be used to plan the trajectory of the vehicle to obtain a second motion trajectory of the vehicle in the bird's-eye view coordinate system.
[0092] In some embodiments, the acquisition of the second motion trajectory may also not rely on the second neural network model. For example, the vehicle's speed, acceleration, angular velocity, angular acceleration and other state quantities can be determined based on the information collected by various sensors in the vehicle's chassis system, and then combined with assumptions such as uniform motion, uniform acceleration motion, and uniform angular acceleration motion, the vehicle's second motion trajectory can be obtained by reasoning, and the inferred second motion trajectory has good reliability. The inferred second motion trajectory can be used to assist in determining the collision risk area of the vehicle, so that the determined collision risk area can be used to predict the relative behavior between the vehicle and the obstacle, which is conducive to ensuring the prediction accuracy of the relative behavior.
[0093] Step 420 , based on the second motion trajectory and the preset area parameters, determine the dynamic risk area of the vehicle in the bird's-eye view coordinate system.
[0094] Optionally, the preset area parameters may include but are not limited to area shape, area size, etc. The area shape may be a regular shape or an irregular shape. The area size may include but is not limited to length size, width size, etc.
[0095] In an example, Figure 5-1 As shown, the second motion trajectory can refer to the straight line segment 510. The preset area parameters include a width dimension W, and the straight line segment 510 can be used as the center line and expanded to the left and right sides by W / 2 to obtain an expanded area 520 with a width of W. The expanded area 520 can be used as the dynamic risk area of the vehicle in the bird's-eye view coordinate system.
[0096] In another example, Figure 5-2 As shown, the second motion trajectory can refer to the curved line segment 530. In this case, the curved line segment 530 can be used as the center line and expanded to the left and right sides to obtain an expanded area 540 with a width of W. The expanded area 540 can be used as the dynamic risk area of the vehicle in the bird's-eye view coordinate system.
[0097] Step 430 , converting the dynamic risk area of the vehicle in the bird's-eye view coordinate system into a two-dimensional coordinate system to obtain a first conversion result.
[0098] In step 430, the conversion relationship between the bird's-eye view coordinate system and the two-dimensional coordinate system may be determined, and the conversion relationship may be in the form of a conversion matrix. Using the conversion matrix, the dynamic risk area of the vehicle in the bird's-eye view coordinate system may be converted to the two-dimensional coordinate system, thereby obtaining a conversion area in the two-dimensional coordinate system, which may be used as the first conversion result. The first conversion result may also be referred to as the dynamic risk area in the two-dimensional coordinate system, that is, the area where the obstacle has a greater probability of colliding with the vehicle after intrusion due to the influence of the vehicle's motion.
[0099] Step 440 : determining a collision risk area of the vehicle in a two-dimensional coordinate system based on the first conversion result.
[0100] Optionally, the collision risk area of the vehicle in the two-dimensional coordinate system may include the first conversion result. In some embodiments, the collision risk area of the vehicle in the two-dimensional coordinate system may also include the second conversion result described below.
[0101] Figure 4In the illustrated embodiment, the second motion trajectory of the vehicle can be first planned from a bird's-eye view. By expanding the second motion trajectory, the dynamic risk area of the vehicle in the bird's-eye coordinate system can be efficiently and reliably obtained. Then, by converting between the bird's-eye coordinate system and the two-dimensional coordinate system, the dynamic risk area of the vehicle in the two-dimensional coordinate system can be efficiently and reliably obtained, and based on this, the collision risk area of the vehicle in the two-dimensional coordinate system can be reasonably determined.
[0102] Figure 6 It is a flowchart of a method for determining a collision risk area of a vehicle in a two-dimensional coordinate system provided by some other exemplary embodiments of the present disclosure. Figure 6 The method shown may include step 610 , step 620 , step 630 , step 640 , and step 650 .
[0103] Step 610: Determine the device position of the vehicle at the acquisition time point of the target image in the bird's-eye view coordinate system.
[0104] Optionally, the vehicle may be provided with a positioning device, for example, a positioning device based on a Global Navigation Satellite System (GNSS).
[0105] In step 610, the device position of the vehicle at the time of acquisition of the target image can be determined in a bird's-eye view coordinate system based on the location information collected by the positioning device. Optionally, the device position of the vehicle involved in the embodiments of the present disclosure can refer to the position of the center point of the rear axle of the vehicle.
[0106] Step 620, determine the installation parameters and field of view of the camera.
[0107] Optionally, the installation parameters of the camera may include but are not limited to the installation position and installation direction of the camera relative to the vehicle.
[0108] Alternatively, if the vehicle is viewed from the side, Figure 7 The side view of the vehicle is shown in Figure 1. The field of view of the camera can be expressed as Figure 7 FOV in.
[0109] Step 630 , based on the device position of the vehicle at the acquisition time point of the target image in the bird's-eye view coordinate system, as well as the installation parameters and the field of view angle, the static risk area of the vehicle is determined in the bird's-eye view coordinate system.
[0110] like Figure 7As shown in the figure, there is a protruding part on the hood in front of the vehicle, which will block the camera's field of view to a certain extent. In view of this, according to the camera's installation parameters and field of view, as well as the size of the protruding part, through geometric calculation, the first point on the ground that the camera can observe in front of the vehicle in the bird's-eye view coordinate system can be determined. This point can be called the first target point. The first target point can be compared with Figure 7 In addition, the point at the device position of the vehicle at the acquisition time point of the target image in the bird's-eye view coordinate system can be called the second target point, and the second target point can be mapped to Figure 7 The point O2 in the side view of the vehicle is mapped. Then, in the bird's-eye view coordinate system, the line connecting the first target point and the second target point can be determined, and the expansion process is performed with the line as the center line to obtain the static risk area of the vehicle in the bird's-eye view coordinate system.
[0111] In some embodiments, the front hood of the vehicle may not block the camera's field of view. In this case, the first target point can be determined by geometric calculation based on the camera's installation parameters and field of view. The first target point can be Figure 7 Point O3 mapping in the side view of the vehicle is shown.
[0112] Step 640: convert the static risk area of the vehicle in the bird's-eye view coordinate system into a two-dimensional coordinate system to obtain a second conversion result.
[0113] In step 640, the conversion relationship between the bird's-eye view coordinate system and the two-dimensional coordinate system can be determined, and the conversion relationship can be in the form of a conversion matrix. Using the conversion matrix, the static risk area of the vehicle in the bird's-eye view coordinate system can be converted to the two-dimensional coordinate system, thereby obtaining a conversion area in the two-dimensional coordinate system, which can be used as the second conversion result. The second conversion result can also be called the static risk area in the two-dimensional coordinate system, that is, due to the influence of the vehicle's blind spot, the area where the obstacle intrusion has a high probability of colliding with the vehicle.
[0114] Step 650 : determining the collision risk area of the vehicle in a two-dimensional coordinate system based on the second conversion result.
[0115] Optionally, the collision risk area of the vehicle in the two-dimensional coordinate system may include the second conversion result. In some embodiments, the collision risk area of the vehicle in the two-dimensional coordinate system may also include the first conversion result described above.
[0116] Figure 6In the illustrated embodiment, the device position of the vehicle at the acquisition time point of the target image can be first determined from a bird's-eye view, and then combined with the installation parameters and field of view of the camera, the static risk area of the vehicle in the bird's-eye coordinate system can be efficiently and reliably obtained. Then, through the conversion between the bird's-eye coordinate system and the two-dimensional coordinate system, the static risk area of the vehicle in the two-dimensional coordinate system can be efficiently and reliably obtained, and based on this, the collision risk area of the vehicle in the two-dimensional coordinate system can be reasonably determined.
[0117] Figure 8 It is a flowchart of a method for predicting the relative behavior between a vehicle and an obstacle based on a first motion trajectory and a collision risk area provided by some exemplary embodiments of the present disclosure. Figure 8 The method shown may include step 810 , step 820 , and step 830 .
[0118] Step 810: Determine a predicted time period corresponding to the first motion trajectory.
[0119] As described above, the trajectory points of the obstacle at M future time points can be predicted in a two-dimensional coordinate system to obtain M trajectory points, and the first motion trajectory can be determined accordingly. Assuming that among the M future time points, the earliest future time point is the first time point and the latest future time point is the second time point, the predicted time period corresponding to the first motion trajectory can be a time period with the starting time point being the first time point and the ending time point being the second time point.
[0120] Step 820: Determine a first sub-region and a second sub-region corresponding to the prediction time period from the dynamic risk region in the collision risk region.
[0121] Optionally, the collision risk area of the vehicle in the two-dimensional coordinate system may include a dynamic risk area and a static risk area. The dynamic risk area is determined by referring to Figure 4 The relevant description in the embodiment shown is sufficient. The method of determining the static risk area refers to Figure 6 The relevant introduction in the illustrated embodiment is sufficient and will not be repeated here.
[0122] Assuming that the prediction time period is t1-t2, when planning the vehicle trajectory, the trajectory of the vehicle is planned in the time period of t1-t3, and t3 can be later than t2. Then, the dynamic risk area in the collision risk area can be divided to obtain the first sub-area corresponding to t1-t2 and the second sub-area corresponding to t2-t3. The first sub-area can be considered as the area with a higher probability of collision with the vehicle after the obstacle invades during the time period of t1-t2, and the second sub-area can be considered as the area with a higher probability of collision with the vehicle after the obstacle invades during the time period of t2-t3.
[0123] Step 830 : predicting the relative behavior between the vehicle and the obstacle based on the first motion trajectory, the static risk area in the collision risk area, the first sub-area, and the second sub-area.
[0124] In some optional embodiments of the present disclosure, Fig. 9 As shown, step 830 may include step 8301, step 8303 and step 8305.
[0125] Step 8301: determine first distribution information of a first motion trajectory relative to a static risk area and a first sub-area in a collision risk area.
[0126] Assuming that the static risk area and the first sub-area in the collision risk area constitute the target area, first distribution information of the first motion trajectory relative to the target area may be determined in step 8301. As described above, the first motion trajectory may be defined by M trajectory points, and the first distribution information may be used to characterize whether each of the M trajectory points is located within the target area or outside the target area.
[0127] Step 8303: Based on the first distribution information, determine the target trajectory point corresponding to the end time point of the predicted time period from the multiple trajectory points used to define the first motion trajectory.
[0128] Optionally, if the first distribution information indicates that all M trajectory points are outside the target area, the target trajectory point corresponding to the end time point of the prediction time period can be determined from the M trajectory points. Since the M trajectory points correspond one-to-one to the M future time points, the trajectory point with the latest future time point among the M trajectory points can be used as the target trajectory point.
[0129] Step 8305, predicting the relative behavior between the vehicle and the obstacle based on the target trajectory point and the second sub-area.
[0130] In some optional implementations of the present disclosure, step 8305 may include:
[0131] Determining second distribution information of the target trajectory point relative to the second sub-region;
[0132] Based on the second distribution information, planning a second motion trajectory of the vehicle in a bird's-eye view coordinate system;
[0133] Based on the time points corresponding to the first target reference line and the second target reference line, a collision time mark of a collision between the obstacle and the vehicle is predicted; wherein the first target reference line and the second target reference line are two reference lines in a first reference line set in a two-dimensional coordinate system that are closest to the target trajectory point, the first reference line set is obtained by mapping the second reference line set in a bird's-eye view coordinate system to a two-dimensional coordinate system, and each reference line in the second reference line set is perpendicular to the second motion trajectory and passes through a trajectory point in the second motion trajectory;
[0134] Based on the collision time signature, the relative behavior between the vehicle and the obstacle is determined.
[0135] Optionally, it is possible to determine whether the target trajectory point is located within the second sub-area or outside the second sub-area, thereby obtaining the second distribution information. If the second distribution information represents that the target trajectory point is located within the second sub-area, the second motion trajectory of the vehicle can be planned in a bird's-eye view coordinate system. The specific method of obtaining the second motion trajectory can refer to the relevant introduction above and will not be repeated here. Next, the time points corresponding to the first target reference line and the second target reference line can be determined, and the collision time mark of the collision between the obstacle and the vehicle can be predicted accordingly. The collision time mark can be either a specific time period or a specific time point.
[0136] In one example, the trajectory segment corresponding to the time period t2 to t3 in the second motion trajectory can be defined by 6 trajectory points, namely Figure 5-1 The trajectory points u0, u1, u2, u3, u4 and u5 are shown. The second reference line set may include six reference lines, namely reference line k0, reference line k1, reference line K2, reference line K3, reference line K4 and reference line k5. Reference lines k0 to k5 may all be perpendicular to the straight line segment 510, and reference line k0 may pass through trajectory point u0, reference line k1 may pass through trajectory point u1, reference line k2 may pass through trajectory point u2, reference line k3 may pass through trajectory point u3, reference line k4 may pass through trajectory point u4, and reference line k5 may pass through trajectory point u5. By mapping the second reference line set to a two-dimensional coordinate system, a first reference line set including 6 reference lines may be obtained. The 6 reference lines in the first reference line set may be respectively Fig.10 Among the reference lines v0, v1, v2, v3, v4 and v5, reference line v0 can be mapped with reference line k0, reference line v1 can be mapped with reference line k1, reference line v2 can be mapped with reference line k2, reference line v3 can be mapped with reference line k3, reference line v4 can be mapped with reference line k4, and reference line v5 can be mapped with reference line k5.
[0137] Assume that the target trajectory point is Fig.10 For point j1 in the first reference line set, it is obvious that the two reference lines closest to point j1 are reference line v1 and reference line v2. Therefore, reference line v1 can be used as the first target reference line, and reference line v2 can be used as the second target reference line. It should be noted that trajectory point u0, trajectory point u1, trajectory point u2, trajectory point u3, trajectory point u4 and trajectory point u5 can correspond to a future time point respectively. Since reference line v1 is mapped to reference line k1 and reference line v2 is mapped to reference line k2, the future time point corresponding to trajectory point u1 can be used as the time point corresponding to the first target reference line, and the future time point corresponding to trajectory point u2 can be used as the time point corresponding to the second target reference line.
[0138] Assuming that the time point corresponding to the first target reference line is denoted as t4, and the time point corresponding to the second target reference line is denoted as t5, the time period t4 to t5 can be used as a collision time mark of the predicted collision between the obstacle and the vehicle. In some embodiments, the first distance between point j1 and reference line v1 can be calculated, and the second distance between point j1 and reference line v2 can be calculated. Based on the first distance and the second distance, the specific time point of the collision between the obstacle and the vehicle in the time period t4 to t5 can be determined, and the specific time point can be used as a collision time mark of the predicted collision between the obstacle and the vehicle. The collision time mark can characterize the relative behavior between the vehicle and the obstacle.
[0139] It can be seen that in this embodiment, when the second distribution information of the target trajectory point relative to the second sub-area meets certain conditions, the second motion trajectory of the vehicle can be planned in the bird's-eye view coordinate system, so as to determine the time points corresponding to the first target reference line and the second target reference line, respectively, and then use these time points to predict the collision time mark. In this way, when predicting the relative behavior between the vehicle and the obstacle, the fine granularity of the prediction result can be guaranteed, that is, the granularity of the prediction can be predicted to the time period or time point.
[0140] In some embodiments, the second distribution information may indicate that the target trajectory point is outside the second sub-area. In this case, the relative behavior between the vehicle and the obstacle may indicate that the vehicle and the obstacle will not collide.
[0141] Fig. 9In the illustrated embodiment, when the first distribution information of the first motion trajectory relative to the target area satisfies certain conditions, the target trajectory point can be determined from the M trajectory points used to define the first motion trajectory, and the relative behavior between the vehicle and the obstacle can be predicted based on the target trajectory point and the second sub-area. This is equivalent to assuming that the obstacle remains stationary from the future time point corresponding to the target trajectory point, and based on this assumption, predicting the relative behavior between the vehicle and the obstacle in the future. It should be noted that this assumption is a relatively conservative conception. Predicting the relative behavior between the vehicle and the obstacle under this conception can identify the situation where the vehicle and the obstacle will collide as much as possible, thereby improving the safety of the vehicle.
[0142] In some embodiments, the assumption that the obstacle remains stationary from the future time point corresponding to the target trajectory point may be abandoned, and the assumption that the obstacle maintains uniform motion from the future time point or other pre-defined assumptions may be adopted.
[0143] Figure 8 In the illustrated embodiment, two sub-areas can be determined from the dynamic risk area in the collision risk area, namely, a first sub-area corresponding to the prediction time period and a second sub-area excluding the first sub-area. Combined with the first motion trajectory and the static risk area in the collision risk area, an effective reference can be provided for the prediction of the relative behavior between the vehicle and the obstacle, thereby facilitating the rationality and reliability of the prediction results.
[0144] Fig.11 It is a flowchart of a method for predicting the relative behavior between a vehicle and an obstacle based on a first motion trajectory and a collision risk area provided by other exemplary embodiments of the present disclosure. Fig.11 The method shown may include step 1110 , step 1120 , and step 1130 .
[0145] Step 1110, determine the device status of the vehicle.
[0146] Optionally, the device status of the vehicle can be used to characterize whether the vehicle is stationary. In one example, a speed sensor can be provided on the vehicle, and whether the vehicle is stationary can be determined based on speed information collected by the speed sensor.
[0147] Step 1120: Determine third distribution information of the first motion trajectory relative to the static risk area in the collision risk area based on the device state.
[0148] It should be noted that when the vehicle is stationary, the dynamic risk area of the vehicle in the two-dimensional coordinate system can be considered to be zero. Therefore, the collision risk area of the vehicle in the two-dimensional coordinate system can only include the static risk area. The determination method of the static risk area refers to Figure 6The relevant introduction in the illustrated embodiment is sufficient and will not be repeated here.
[0149] In step 1120, when the device state indicates that the vehicle is stationary, third distribution information of the first motion trajectory relative to the static risk area may be determined. As described above, the first motion trajectory may be defined by M trajectory points, and the third distribution information may be used to indicate whether each of the M trajectory points is located within the static risk area or outside the static risk area.
[0150] Step 1130: predict the relative behavior between the vehicle and the obstacle based on the third distribution information.
[0151] Optionally, if the third distribution information indicates that all of the M trajectory points are outside the static risk area, the relative behavior between the vehicle and the obstacle can indicate that the vehicle and the obstacle will not collide. If the third distribution information indicates that at least some of the M trajectory points are within the static risk area, the relative behavior between the vehicle and the obstacle can indicate that the vehicle and the obstacle will collide.
[0152] Fig.11 In the illustrated embodiment, for a scene where the vehicle is stationary, the relative behavior between the vehicle and the obstacle can be predicted efficiently and reliably based on the third distribution information of the first motion trajectory relative to the static risk area in the collision risk area.
[0153] In some optional examples, an image sequence may be captured by a forward-looking camera disposed on the vehicle, and the latest image corresponding to the capture time point in the image sequence may be used as the target image.
[0154] Next, obstacle detection can be performed on each of the S-frame images included in the image sequence to obtain the detection frame information corresponding to each of the S-frame images. Based on the detection frame information corresponding to each of the S-frame images, local image blocks can be respectively intercepted from the S-frame images. According to the concept of equivalent first-angle field of view introduced above, the obstacle trajectory can be predicted in the two-dimensional coordinate system corresponding to the target image based on the local image blocks corresponding to each of the S-frame images and the detection frame information corresponding to each of the S-frame images, so as to obtain the first motion trajectory of the obstacle. In addition, the static risk area and dynamic risk area of the vehicle can be determined respectively in the bird's-eye view coordinate system, and the determined static risk area and dynamic risk area can be converted to the two-dimensional coordinate system corresponding to the target image, so as to determine the collision risk area of the vehicle in the two-dimensional coordinate system corresponding to the target image. Combined with the first motion trajectory and the collision risk area, the relative behavior between the vehicle and the obstacle can be predicted, such as whether the vehicle and the obstacle will collide, the specific time period when the vehicle and the obstacle collide, and the specific time point when the vehicle and the obstacle collide.
[0155] Optionally, the predicted time period corresponding to the first motion trajectory may be 0 to t x , the predicted time period corresponding to the second motion trajectory can be 0~t y , t y Can be later than t x Then, we can determine 0~t from the dynamic risk area in the collision risk area. x The corresponding first sub-region and t x ~t y The static risk area and the first sub-area in the collision risk area can form a target area.
[0156] If any of the M trajectory points used to define the first motion trajectory falls within the target area, it can be determined that 0~t x During this time period, the vehicle will collide with the obstacle. Here, we can first determine whether the latest trajectory point corresponding to the future time point among the M trajectory points falls within the target area. If the latest trajectory point corresponding to the future time point among the M trajectory points falls within the target area, we can determine that 0~t x During this time period, the vehicle will collide with the obstacle. If the latest trajectory point in the M trajectory points corresponding to the future time point does not fall within the target area, it can be determined whether the second latest trajectory point in the M trajectory points corresponding to the future time point falls within the target area. If the second latest trajectory point in the M trajectory points corresponding to the future time point falls within the target area, it can be determined that 0~t x During this time period, the vehicle will collide with the obstacle. If the trajectory point at the second night of the future time point corresponding to the M trajectory points does not fall within the target area, it can be determined whether the trajectory point at the third night of the future time point corresponding to the M trajectory points falls within the target area. The same is true for the subsequent steps, which will not be repeated here.
[0157] If none of the M trajectory points used to define the first motion trajectory falls within the target area, the latest trajectory point corresponding to the future time point among the M trajectory points can be used as the target trajectory point, and the target trajectory point and the second sub-area are combined to predict the target trajectory point at t x ~t y Whether the vehicle will collide with the obstacle during this time period, the specific prediction method can refer to the above description of the optional implementation method of step 8305, which will not be repeated here.
[0158] In summary, by using the embodiments of the present disclosure, the first motion trajectory under the first perspective can be obtained through trajectory prediction, and combined with the collision risk area under the first perspective, the relative behavior between the vehicle and the obstacle can be predicted under the first perspective, without converting the information obtained by the sensor to a bird's-eye view. This can avoid the depth restoration error introduced by the conversion process, thereby improving the prediction accuracy of the relative behavior between the vehicle and the obstacle, and further improving the safety of the vehicle. The inventors have found through research that the embodiments of the present disclosure can very effectively avoid the large errors that may be caused by the process of converting information related to small obstacles at a long distance to a bird's-eye view, thereby significantly improving the prediction accuracy of the relative behavior between the vehicle and small obstacles at a long distance.
[0159] It should be noted that trajectory prediction and behavior prediction are performed in related technologies, and trajectory prediction and behavior prediction are often performed in different models, or performed through multi-task models. Accordingly, there is no direct correlation between trajectory prediction results and behavior prediction results, and complex logic is required to perform arbitration on trajectory prediction results and behavior prediction results. In the embodiments of the present disclosure, behavior prediction can be implemented based on trajectory prediction results (such as the first motion trajectory). Accordingly, trajectory prediction results and behavior prediction results have strong correlation and consistency, which can make the behavior prediction results more interpretable without the need for complex logic to perform arbitration.
[0160] Exemplary Devices
[0161] Fig.12 It is a schematic diagram of the structure of an apparatus for predicting relative behavior between a vehicle and an obstacle provided by some exemplary embodiments of the present disclosure. Fig.12 The apparatus shown may include:
[0162] A first determination module 1210 is used to determine a target image from an image sequence captured by a camera disposed on the vehicle;
[0163] A first prediction module 1220, configured to predict a first motion trajectory of an obstacle in an image sequence in a two-dimensional coordinate system corresponding to the target image determined by the first determination module 1210;
[0164] The second determination module 1230 is used to determine the collision risk area of the vehicle in a two-dimensional coordinate system;
[0165] The second prediction module 1240 is used to predict the relative behavior between the vehicle and the obstacle based on the first motion trajectory predicted by the first prediction module 1220 and the collision risk area determined by the second determination module 1230.
[0166] In some optional examples, such as Fig.13 As shown, the first prediction module 1220 includes:
[0167] A first determination submodule 1310 is used to determine first detection frame information of the obstacle in the target image determined by the first determination module 1210;
[0168] The second determination submodule 1320 is used to determine second detection frame information of obstacles in images other than the target image determined by the first determination module 1210 in the image sequence;
[0169] The first prediction submodule 1330 is used to predict a first motion trajectory of the obstacle in a two-dimensional coordinate system based on the first detection frame information determined by the first determination submodule 1310, the second detection frame information determined by the second determination submodule 1320, and the image sequence.
[0170] In some optional examples, such as Fig.14 As shown, the second prediction module 1240 includes:
[0171] The third determination submodule 1410 is used to determine the prediction time period corresponding to the first motion trajectory predicted by the first prediction module 1220;
[0172] A fourth determination submodule 1420 is configured to determine, from the dynamic risk area in the collision risk area determined by the second determination module 1230, a first subregion and a second subregion corresponding to the predicted time period determined by the third determination submodule 1410;
[0173] The second prediction submodule 1430 is used to predict the relative behavior between the vehicle and the obstacle based on the first motion trajectory predicted by the first prediction module 1220, the static risk area in the collision risk area determined by the second determination module 1230, and the first subarea and the second subarea determined by the fourth determination submodule 1420.
[0174] In some optional examples, the second prediction submodule 1430 includes:
[0175] A first determination unit, configured to determine first distribution information of the first motion trajectory predicted by the first prediction module 1220 relative to the static risk area in the collision risk area determined by the second determination module 1230 and the first sub-area determined by the fourth determination sub-module 1420;
[0176] A second determining unit is used to determine, based on the first distribution information determined by the first determining unit, a target trajectory point corresponding to an end time point of the prediction time period from a plurality of trajectory points used to define the first motion trajectory predicted by the first prediction module 1220;
[0177] The prediction unit is used to predict the relative behavior between the vehicle and the obstacle based on the target trajectory point determined by the second determination unit and the second sub-area determined by the fourth determination submodule 1420.
[0178] In some optional examples, the prediction unit includes:
[0179] A first determining subunit, configured to determine second distribution information of the target trajectory point determined by the second determining unit relative to the second sub-region determined by the fourth determining submodule 1420;
[0180] A planning subunit, configured to plan a second motion trajectory of the vehicle in a bird's-eye view coordinate system based on the second distribution information determined by the first determining subunit;
[0181] A prediction subunit is used to predict a collision time mark of a collision between an obstacle and a vehicle based on time points corresponding to the first target reference line and the second target reference line, respectively; wherein the first target reference line and the second target reference line are two reference lines in a first reference line set in a two-dimensional coordinate system that are closest to the target trajectory point determined by the second determination unit, the first reference line set is obtained by mapping the second reference line set in a bird's-eye view coordinate system to a two-dimensional coordinate system, and each reference line in the second reference line set is perpendicular to the second motion trajectory planned by the planning subunit and passes through a trajectory point in the second motion trajectory;
[0182] The second determination subunit is used to determine the relative behavior between the vehicle and the obstacle based on the collision time mark predicted by the prediction subunit.
[0183] In some optional examples, such as Fig.15 As shown, the second prediction module 1240 includes:
[0184] A fifth determination submodule 1510 is used to determine the device status of the vehicle;
[0185] a sixth determining submodule 1520, configured to determine, based on the device state determined by the fifth determining submodule 1510, third distribution information of the first motion trajectory predicted by the first prediction module 1220 relative to the static risk area in the collision risk area determined by the second determining module 1230;
[0186] The third prediction submodule 1530 is used to predict the relative behavior between the vehicle and the obstacle based on the third distribution information determined by the sixth determination submodule 1520.
[0187] In some optional examples, such as Fig.16 As shown, the second determination module 1230 includes:
[0188] A planning submodule 1610 is used to plan a second motion trajectory of the vehicle in a bird's-eye view coordinate system;
[0189] A seventh determination submodule 1620 is used to determine a dynamic risk area of the vehicle in a bird's-eye view coordinate system based on the second motion trajectory and preset area parameters planned by the planning submodule 1610;
[0190] A first conversion submodule 1630 is used to convert the dynamic risk area of the vehicle in the bird's-eye view coordinate system determined by the seventh determination submodule 1620 into a two-dimensional coordinate system to obtain a first conversion result;
[0191] The eighth determination submodule 1640 is configured to determine the collision risk area of the vehicle in a two-dimensional coordinate system based on the first conversion result obtained by the first conversion submodule 1630 .
[0192] In some optional examples, such as Fig.17 As shown, the second determination module 1230 includes:
[0193] The ninth determination submodule 1710 is used to determine the device position of the vehicle at the acquisition time point of the target image in the bird's-eye view coordinate system;
[0194] A tenth determination submodule 1720 is used to determine the installation parameters and field of view of the camera;
[0195] An eleventh determination submodule 1730 is used to determine a static risk area of the vehicle in a bird's-eye view coordinate system based on the device position determined by the ninth determination submodule 1710 and the installation parameters and the field of view angle determined by the tenth determination submodule 1720;
[0196] The second conversion submodule 1740 is used to convert the static risk area of the vehicle in the bird's-eye view coordinate system determined by the eleventh determination submodule 1730 into a two-dimensional coordinate system to obtain a second conversion result;
[0197] The twelfth determination submodule 1750 is used to determine the collision risk area of the vehicle in a two-dimensional coordinate system based on the second conversion result obtained by the second conversion submodule 1740.
[0198] In the device of the present disclosure, the various optional embodiments, optional implementation methods and optional examples disclosed above can be flexibly selected and combined as needed to achieve corresponding functions and effects, and the present disclosure does not list them one by one.
[0199] The beneficial technical effects corresponding to the exemplary embodiment of the present device can be found in the corresponding beneficial technical effects of the above exemplary method section, which will not be repeated here.
[0200] Exemplary Electronic Devices
[0201] Fig.18The block diagram of an electronic device according to an embodiment of the present disclosure is illustrated. The electronic device 1800 includes one or more processors 1810 and a memory 1820 .
[0202] The processor 1810 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 1800 to perform desired functions.
[0203] The memory 1820 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 1810 may execute one or more computer program instructions to implement the methods of the various embodiments of the present disclosure described above and / or other desired functions.
[0204] In one example, the electronic device 1800 may further include: an input device 1830 and an output device 1840 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0205] The input device 1830 may also include, for example, a keyboard, a mouse, etc.
[0206] The output device 1840 can output various information to the outside, and may include, for example, a display, a speaker, a printer, a communication network and its connected remote output device, etc.
[0207] Of course, to simplify, Fig.18 Only some of the components related to the present disclosure in the electronic device 1800 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 1800 may also include any other appropriate components.
[0208] Exemplary computer program products and computer-readable storage media
[0209] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
[0210] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0211] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0212] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0213] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations. It cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present disclosure. The specific details disclosed above are only for the purpose of illustration and ease of understanding, not limitation. The above details do not limit the present disclosure to being implemented by adopting the above specific details.
[0214] Those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present disclosure claims and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A method for predicting relative behavior between a vehicle and an obstacle, comprising: Determine a target image from an image sequence captured by a camera disposed on the vehicle; Predicting a first motion trajectory of an obstacle in the image sequence in a two-dimensional coordinate system corresponding to the target image; In the two-dimensional coordinate system, determining a collision risk area of the vehicle; Based on the first motion trajectory and the collision risk area, a relative behavior between the vehicle and the obstacle is predicted.
2. The method according to claim 1, wherein: The predicting, in the two-dimensional coordinate system corresponding to the target image, a first motion trajectory of the obstacle in the image sequence includes: Determine first detection frame information of the obstacle in the target image; Determine second detection frame information of the obstacle in an image other than the target image in the image sequence; Based on the first detection frame information, the second detection frame information and the image sequence, a first motion trajectory of the obstacle is predicted in the two-dimensional coordinate system.
3. The method according to claim 1, wherein: The predicting, based on the first motion trajectory and the collision risk area, a relative behavior between the vehicle and the obstacle includes: Determining a predicted time period corresponding to the first motion trajectory; Determining, from the dynamic risk area in the collision risk area, a first sub-area and a second sub-area corresponding to the predicted time period; A relative behavior between the vehicle and the obstacle is predicted based on the first motion trajectory, a static risk area in the collision risk area, the first sub-area, and the second sub-area.
4. The method according to claim 3, wherein: The predicting the relative behavior between the vehicle and the obstacle based on the first motion trajectory, the static risk area in the collision risk area, the first sub-area, and the second sub-area includes: Determine first distribution information of the first motion trajectory relative to a static risk area and the first sub-area in the collision risk area; Based on the first distribution information, determining a target trajectory point corresponding to the end time point of the predicted time period from a plurality of trajectory points used to define the first motion trajectory; Based on the target trajectory point and the second sub-area, a relative behavior between the vehicle and the obstacle is predicted.
5. The method according to claim 4, wherein: The predicting, based on the target trajectory point and the second sub-area, a relative behavior between the vehicle and the obstacle includes: Determining second distribution information of the target trajectory point relative to the second sub-area; Based on the second distribution information, planning a second motion trajectory of the vehicle in a bird's-eye view coordinate system; Based on the time points corresponding to the first target reference line and the second target reference line, respectively, a collision time mark of a collision between the obstacle and the vehicle is predicted; wherein the first target reference line and the second target reference line are two reference lines in the first reference line set in the two-dimensional coordinate system that are closest to the target trajectory point, the first reference line set is obtained by mapping the second reference line set in the bird's-eye view coordinate system to the two-dimensional coordinate system, and each reference line in the second reference line set is perpendicular to the second motion trajectory and passes through a trajectory point in the second motion trajectory; Based on the collision time signature, a relative behavior between the vehicle and the obstacle is determined.
6. The method according to claim 1, wherein: The predicting, based on the first motion trajectory and the collision risk area, a relative behavior between the vehicle and the obstacle includes: determining a device status of the vehicle; Based on the device state, determining third distribution information of the first motion trajectory relative to a static risk area in the collision risk area; Based on the third distribution information, a relative behavior between the vehicle and the obstacle is predicted.
7. The method according to any one of claims 1 to 6, wherein: Determining the collision risk area of the vehicle in the two-dimensional coordinate system includes: Planning a second motion trajectory of the vehicle in a bird's-eye view coordinate system; Based on the second motion trajectory and preset area parameters, determining a dynamic risk area of the vehicle in the bird's-eye view coordinate system; Converting the dynamic risk area of the vehicle in the bird's-eye view coordinate system to the two-dimensional coordinate system to obtain a first conversion result; Based on the first conversion result, a collision risk area of the vehicle is determined in the two-dimensional coordinate system.
8. The method according to any one of claims 1 to 6, wherein: Determining the collision risk area of the vehicle in the two-dimensional coordinate system includes: Determining the device position of the vehicle at the acquisition time point of the target image in a bird's-eye view coordinate system; Determining installation parameters and field of view angle of the camera; Determining a static risk area of the vehicle in the bird's-eye view coordinate system based on the device position, the installation parameters and the field of view angle; Converting the static risk area of the vehicle in the bird's-eye view coordinate system to the two-dimensional coordinate system to obtain a second conversion result; Based on the second conversion result, a collision risk area of the vehicle is determined in the two-dimensional coordinate system.
9. A device for predicting relative behavior between a vehicle and an obstacle, comprising: A first determination module is used to determine a target image from an image sequence captured by a camera disposed on the vehicle; A first prediction module, configured to predict a first motion trajectory of an obstacle in the image sequence in a two-dimensional coordinate system corresponding to the target image determined by the first determination module; A second determination module, configured to determine a collision risk area of the vehicle in the two-dimensional coordinate system; The second prediction module is used to predict the relative behavior between the vehicle and the obstacle based on the first motion trajectory predicted by the first prediction module and the collision risk area determined by the second determination module.
10. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method for predicting the relative behavior between a vehicle and an obstacle as claimed in any one of claims 1 to 8.
11. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for predicting the relative behavior between a vehicle and an obstacle as described in any one of claims 1-8.
Citation Information
Cited By
Driving control method, driving control device and intelligent driving vehicle
CN119636703A
Travel control method, travel control device, and intelligent driving vehicle
CN119636703B
