Global obstacle recognition method, device, electronic device and storage medium

By detecting and mapping lane line features and combining wheel trajectory changes, the problem of the inability of existing technology to identify global obstacles is solved, and accurate identification of vehicle motion trajectories and efficient identification of obstacles are achieved.

CN118015589BActive Publication Date: 2024-08-30元橡科技(北京)有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410079525.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-19
Publication Date
2024-08-30
Estimated Expiration
2044-01-19

AI Technical Summary

Technical Problem

Existing autonomous driving methods cannot divide global lane lines and identify raised obstacles in different lanes. They cannot perform size calculations and cannot accurately identify vehicle motion trajectories.

Method used

By obtaining the image information of the front vehicle's wheels in the lane, detect the lane line features, and use cross-attention learning and conversion relationships to map the lane line features from two-dimensional space to three-dimensional space, identify obstacles in the lane, and combine wheel trajectory changes to identify obstacle location and size.

Benefits of technology

It achieves accurate identification of obstacles within the vehicle's global motion range, avoids errors caused by suspension height affecting spatial position, and improves the efficiency and accuracy of obstacle identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118015589B
    Figure CN118015589B
Patent Text Reader

Abstract

The present disclosure provides a global obstacle recognition method, device, electronic device and storage medium, which relates to the field of intelligent driving technology, including: detecting lane lines based on the image information of the lane where at least one set of wheels of the front vehicle is located; obtaining the wheel track changes of the front vehicle wheels in the second space when encountering obstacles; obtaining the vehicles in each lane line based on the lane line features; identifying obstacles in the lane based on the lane line features and the wheel track changes of the vehicles in the lane. The present disclosure can reflect the situation of obstacles in the current moving lane; can identify obstacles within the global motion range of the vehicle, fully consider the situation that the front vehicle will automatically adjust the chassis posture to smoothly pass the obstacle when encountering a bump during driving, and avoid using components above the vehicle chassis whose spatial position will be affected by the height of the suspension when analyzing the three-dimensional spatial position change of the front vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent driving technology, and in particular to a global obstacle recognition method, device, electronic device and storage medium. Background Art

[0002] Magic carpet suspension is a hot topic in vehicle vibration reduction research and one of the implementation plans for automatic suspension adjustment in the field of intelligent driving technology. The main function of the magic carpet suspension system is to use a camera or radar to scan and collect the road conditions in front of the vehicle in real time, perform road detection after collecting data, and send the detection results to the chassis. The chassis uses four adjustable suspensions and electric active stabilizer bars on the front and rear axles to actively adjust the resistance of each wheel, so that the vehicle can pass smoothly when encountering bumpy roads.

[0003] The "Automatic Driving Method, Device, Electronic Device and Storage Medium" with announcement number CN114648504B relates to an automatic driving method, device, electronic device and storage medium. The method obtains multiple frames of images to be detected continuously collected by a vehicle's camera module; determines whether there are wheels of a leading vehicle in each frame of the image to be detected, and the position of the existing wheels of the leading vehicle in the image to be detected by identifying and processing the multiple frames of images to be detected, wherein the wheels of the leading vehicle are designated accessories of the leading vehicle; when there are wheels of the leading vehicle in at least two frames of the image to be detected, determines road condition information according to the position of the wheels of the leading vehicle in the at least two frames of the image to be detected; and controls the vehicle to perform corresponding driving actions according to the road condition information.

[0004] This method only provides a formula for calculating the horizontal distance between the front wheel of the vehicle and the uneven road condition. In addition, this method requires the pre-calibration of the distance between the front wheel of the vehicle and the camera module, the distance between the rear wheel of the front vehicle and the front wheel of the front vehicle (such as the taillight), and the width of the uneven road condition (such as the width of the speed bump) in the calculation. It is unable to complete the division of the global lane lines and identify the raised obstacles in different lanes and calculate their sizes. Summary of the invention

[0005] The present disclosure provides a global obstacle recognition method, device, electronic device and storage medium.

[0006] On the one hand, a global obstacle recognition method is provided, comprising:

[0007] Detecting a lane line based on the acquired image information of a lane where at least one group of wheels of a preceding vehicle is located, wherein the image information includes a lane line feature for detecting the lane line in a first space;

[0008] Obtaining a change in the wheel trajectory of the front vehicle in the second space when the front vehicle wheel encounters an obstacle;

[0009] Acquire vehicles in each lane line based on the lane line features;

[0010] Obstacles in the lane are identified based on the lane line features and wheel trajectory changes of vehicles in the lane.

[0011] In an optional embodiment, detecting the lane line based on the acquired image information of the lane where the wheels of the preceding vehicle are located includes:

[0012] Selecting a reference point in the image including lane line features;

[0013] Mapping the reference point to a second space based on a preset conversion relationship to obtain a target point of the reference point in the second space, wherein the target point forms a lane line feature of the lane line in the second space;

[0014] The lane line is detected based on the lane line features in the second space.

[0015] In an optional embodiment, detecting the lane line based on the lane line feature in the second space includes:

[0016] Performing cross-attention learning on the lane line features in the second space to obtain lane line matching features from the first space to the second space;

[0017] Decoding the matching features to obtain enhanced lane line features in the second space;

[0018] The lane line is detected according to the enhanced lane line features of the second space.

[0019] In an optional embodiment, cross-attention learning is performed on the lane line features in the second space to obtain lane line matching features from the first space to the second space, including obtaining lane line matching features from the first space to the second space through the following features:

[0020] F B =DeformAttn(Q′ bev ,F fv ,p fv2bev ),

[0021] Among them, F B is the lane line matching feature from the first space to the second space, DeformAttn() is the cross attention function, Q′ bev is the second space initialization feature obtained by multi-layer self-attention calculation based on the initial input query information predefined in the second space, p pv2bev is the initial match from the first spatial reference point to the second spatial target point, F fvis an image including lane line features.

[0022] In an optional embodiment, detecting the lane line according to the enhanced lane line feature of the second space includes:

[0023] Obtain a sampling point of the vehicle at the second coordinate based on the actual lane;

[0024] Obtaining the offset of the sampling point based on the actual lane line at the first coordinate and the third coordinate;

[0025] The lane line is detected based on the sampling point on the second coordinate and the offset between the first coordinate and the third coordinate.

[0026] In an optional embodiment, mapping the reference point to the second space based on a preset conversion relationship to obtain a target point of the reference point in the second space includes:

[0027] Obtaining a scale control factor for converting the first space into the second space;

[0028] Obtain the rotation extrinsic matrix around the second coordinate, the intrinsic matrix and the height of the image acquisition module;

[0029] The reference point is mapped to the second space according to the scale control factor of the first space converted into the second space, the external parameter matrix rotated around the second coordinate, the internal parameter matrix and the height of the image information acquisition module to obtain the target point of the reference point in the second space.

[0030] In an optional embodiment, the reference point is mapped to the second space according to the scale control factor of the first space converted into the second space, the external parameter matrix rotated around the second coordinate, the internal parameter matrix and the height of the image information acquisition module to obtain the target point of the reference point in the second space, including: mapping the reference point to the second space by the following formula to obtain the target point of the reference point in the second space:

[0031]

[0032] Where (u, v) is the image F including lane line features fv The coordinates of the reference point, α f2b is the scale control factor of the first space into the second space, R θ K is the rotation matrix of the external parameter around the second coordinate. -1 represents the internal parameter matrix, h is the height of the image acquisition module, and (x, y) is the coordinate of the target point mapped to the second space.

[0033] In an optional embodiment, identifying an obstacle in the lane based on the lane line feature and a change in a wheel track of a vehicle in the lane includes:

[0034] Dividing the global scene of the lane where the vehicle is located based on the lane line features to obtain multiple scene modules;

[0035] Obtaining wheel track changes of all vehicles in the multiple scene modules according to the relative position relationship between the front vehicle wheel and the lane line of the lane;

[0036] Obstacles in the lane are identified based on changes in wheel trajectories of all vehicles in the multiple scene modules.

[0037] In an optional embodiment, identifying obstacles in the lane according to changes in wheel trajectories of all vehicles in the multiple scene modules includes:

[0038] Acquiring first position information of the wheel of the front vehicle in the second space according to a change in the wheel track of the wheel of the front vehicle in the second space when the wheel encounters an obstacle;

[0039] Acquire the second position information of the lane line where the wheel of the front vehicle is located in the second space at each moment;

[0040] Obstacles in the lane are identified based on the first position information and the second position information.

[0041] In an optional embodiment, obtaining a change in a wheel trajectory of the front vehicle in the second space when the front vehicle wheel encounters an obstacle includes:

[0042] Based on the acquired image information of the front vehicle wheel, the front vehicle wheel information is segmented into components, and the segmented image includes a second mask feature of the front vehicle wheel in the second space;

[0043] The wheel trajectory change of the leading vehicle in the second space is acquired based on the second mask feature.

[0044] In an optional embodiment, based on the acquired image information of the front vehicle wheel, the front vehicle wheel information is segmented into components, and the segmented image includes a second mask feature of the front vehicle wheel in the second space, including:

[0045] Extracting features from the acquired continuous frame two-dimensional images of the preceding vehicle, wherein the acquired features include first mask features of the vehicle and at least one wheel of the preceding vehicle;

[0046] The first mask feature is converted from the first space to the second space to obtain a second mask feature in the converted second space.

[0047] In an optional embodiment, obtaining a change in the wheel track of the leading vehicle in the second space based on the second mask feature includes:

[0048] A height change of the front vehicle wheel when encountering an obstacle is obtained, wherein the height change corresponds to a change in the front vehicle wheel track in the second space.

[0049] In another aspect, a global obstacle recognition device is provided, comprising:

[0050] A first acquisition unit, configured to detect a lane line based on acquired image information of a lane where at least one set of wheels of a preceding vehicle is located, wherein the image information includes a lane line feature for detecting the lane line in a first space;

[0051] A second acquisition unit, used for acquiring a change in a wheel track of the front vehicle in the second space when the front vehicle wheel encounters an obstacle;

[0052] A third acquisition unit, configured to acquire a vehicle in each lane line based on the lane line feature;

[0053] The fourth acquisition unit is used to identify obstacles in the lane based on the lane line features and the wheel trajectory changes of the vehicle in the lane.

[0054] In another aspect, an electronic device is provided, comprising:

[0055] a memory storing execution instructions; and

[0056] A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes any one of the global obstacle recognition methods described above.

[0057] In another aspect, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and when the execution instructions are executed by a processor, the execution instructions are used to implement any of the global obstacle recognition methods described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0059] Figure 1 A flow chart of a global obstacle recognition method provided by an embodiment of the present disclosure;

[0060] Figure 2 A schematic diagram of a process for extracting lane line features provided in an embodiment of the present disclosure;

[0061] Figure 3 A schematic diagram of the S4 process in the global obstacle recognition method provided in an embodiment of the present disclosure;

[0062] Figure 4 This is a schematic diagram of the movement of the vehicle when encountering a raised obstacle;

[0063] Figure 5 A schematic diagram of the S2 process in the global obstacle recognition method provided in an embodiment of the present disclosure;

[0064] Figure 6 A schematic diagram of the process S21 in the global obstacle recognition method provided in an embodiment of the present disclosure;

[0065] Figure 7 A schematic diagram of the process S211 in the global obstacle recognition method provided in an embodiment of the present disclosure;

[0066] Figure 8 A flow chart of a PV space to BEV space conversion algorithm provided for an embodiment of the present disclosure;

[0067] Fig. 9 Schematic diagram of the calculation process of the cross-attention mechanism;

[0068] Fig.10 is the second mask feature M in the BEV space v Schematic diagram of the calculation process;

[0069] Fig.11 A schematic diagram of the process S22 in the global obstacle recognition method provided in an embodiment of the present disclosure;

[0070] Fig.12 A schematic flow chart of a tracking algorithm for generating the best match for an embodiment of the invention;

[0071] Fig.13 The present invention is a block diagram showing the structure of a global obstacle recognition method device using a hardware implementation of a processor according to an embodiment of the present invention. DETAILED DESCRIPTION

[0072] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.

[0073] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0074] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.

[0075] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.

[0076] When a component is referred to as being "on" or "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.

[0077] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "(the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups are not excluded from existence or addition. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values ​​and / or the values ​​provided that will be recognized by those of ordinary skill in the art.

[0078] The global obstacle recognition method and global obstacle recognition device disclosed in the present invention can be applied to the perception module of the vehicle's automatic driving system, the perception module of the intelligent driving and assisted driving system, etc.

[0079] Combined with the following Figures 1 to 13 The global obstacle recognition method, global obstacle recognition device, etc. disclosed in the present invention are described in detail.

[0080] On the one hand, a global obstacle recognition method M100 is provided, see Figure 1 ,include:

[0081] S1. Detecting lane lines based on image information of a lane where at least one group of wheels of a preceding vehicle is located, wherein the image information includes lane line features for detecting lane lines in a first space.

[0082] S2. Obtain the change of the wheel trajectory of the front vehicle in the second space when the wheel encounters an obstacle.

[0083] S3. Obtain vehicles in each lane based on lane features.

[0084] S4. Identify obstacles in the lane based on lane line features and wheel trajectory changes of vehicles in the lane.

[0085] The method provided by the embodiment of the present disclosure has at least the following beneficial effects:

[0086] The method provided by the embodiment of the present disclosure is based on the relationship between the vehicle and the lane line. When identifying obstacles, the image information of the lane where the wheels of the front vehicle are located is obtained, and the image information includes lane line features for detecting lane lines in three-dimensional space, so that the lane conditions in the lane where the current wheels are located can be obtained. By obtaining the wheel trajectory changes of the front vehicle wheels in three-dimensional space when encountering obstacles, the movement trajectory of the front vehicle in the lane can be obtained, thereby reflecting the situation of obstacles in the current moving lane; by simultaneously obtaining the lane line features of the lane where the wheels are located and the wheel movement trajectory, not only can the information of the obstacle be accurately obtained, but also the obstacles within the global motion range of the vehicle can be identified, and the situation that the front vehicle will automatically adjust the chassis posture to smoothly pass the obstacle when encountering a bump during driving is fully considered. When analyzing the three-dimensional spatial position changes of the front vehicle, the use of components above the vehicle chassis whose spatial position will be affected by the height of the suspension is avoided.

[0087] The method and device provided by the embodiments of the present disclosure will be further explained and described below through optional embodiments.

[0088] S1. Detecting lane lines based on image information of a lane where at least one group of wheels of a preceding vehicle is located, wherein the image information includes lane line features for detecting lane lines in a first space.

[0089] Lane lines are the best choice for dividing vehicle driving ranges in a traffic environment. The division of lane lines in the left or right image of the vehicle-mounted camera can intuitively show the traffic conditions in different vehicle operating areas in the current scene. Then, by analyzing the movement status of vehicles in each lane, global scene obstacle recognition can be achieved.

[0090] It should be noted that the disclosed embodiment obtains the image of the lane line through the image acquisition module of the vehicle, and the image is a two-dimensional image. It is understandable that there may be many vehicles in the lane line in front of the vehicle. In this embodiment, the lane line image of the lane where at least one set of wheels of the front vehicle is located is obtained, and the lane line is detected through the lane line image.

[0091] Furthermore, in acquiring a lane line image or performing feature extraction on a lane line image. Most backbone networks used to extract features in segmentation tasks are derived from classification networks. The classification network is used as an initial feature extractor for input data, and another segmentation network is responsible for detecting the location and category of the target from these features. Resnet is the most widely used backbone network among many excellent segmentation networks. Similarly, the present invention uses each frame of the original image as input, establishes a backbone network based on Resnet101, and extracts features of the area of ​​interest in the original image Ii. Furthermore, the lane line image is extracted by the following formula to obtain lane line features:

[0092] F i =f R101 (I i )

[0093] Among them, f R101 (·) represents the Resnet101 network, I i Indicates the input i-th frame original image, F i is the feature extracted from the i-th frame image.

[0094] S2. Obtain the change of the wheel trajectory of the front vehicle in the second space when the wheel encounters an obstacle.

[0095] It is understandable that the information of obstacles on the road that the vehicle is about to travel can be determined by the change of the wheel track of the front vehicle in the second space when the front vehicle's wheels encounter obstacles. The change of the track of the front vehicle's wheels in the second space indicates that the front vehicle has encountered an obstacle during driving and needs to take measures such as avoiding or adjusting the driving strategy, which can provide a reference for the driving of the vehicle.

[0096] In the embodiment of the present disclosure, the first space refers to a two-dimensional space, and the second space refers to a three-dimensional space, which may also be referred to as a BEV (Bird's Eye View) space.

[0097] S3. Obtain vehicles in each lane based on lane features.

[0098] The disclosed embodiment acquires the driving lane of the vehicle and vehicles driving in other lanes adjacent to the driving lane of the vehicle, and thus takes the overall road condition of the vehicle into consideration for observation, thereby providing a more accurate road condition analysis result for the driving of the vehicle.

[0099] S4. Identify obstacles in the lane based on lane line features and wheel trajectory changes of vehicles in the lane.

[0100] The disclosed embodiment not only identifies the changes in the wheel trajectory of the leading vehicle, but also includes the lane line where the wheels of the leading vehicle are located in the identification range. That is, based on the lane line characteristics in the road where the leading vehicle is traveling and the changes in the trajectory of the leading vehicle, obstacles in the lane where the vehicle is about to travel are identified, thereby improving the obstacle recognition efficiency and recognition accuracy.

[0101] In an optional embodiment, S1, detecting a lane line based on acquired image information of a lane where wheels of a preceding vehicle are located, includes:

[0102] S11. Select a reference point in the image including lane line features.

[0103] S12. Map the reference point to the second space based on a preset conversion relationship to obtain a target point of the reference point in the second space, where the target point forms a lane line feature of the lane line in the second space.

[0104] S13. Detect the lane line based on the lane line features in the second space.

[0105] In an optional embodiment, S13, detecting the lane line based on the lane line feature in the second space, includes:

[0106] Perform cross-attention learning on the lane line features in the second space to obtain lane line matching features from the first space to the second space;

[0107] Decoding the matching features to obtain enhanced lane line features in the second space;

[0108] The lane line is detected based on the enhanced lane line features of the second space.

[0109] In an optional embodiment, cross-attention learning is performed on the lane line features in the second space to obtain lane line matching features from the first space to the second space, including obtaining lane line matching features from the first space to the second space through the following features:

[0110] F B =DeformAttn(Q′ bev ,F fv ,p fv2bev ),

[0111] Among them, F B is the lane matching feature from the first space to the second space, DeformAttn() is the cross attention function, Q′ bev is the second space initialization feature obtained by multi-layer self-attention calculation based on the initial input query information predefined in the second space, p pv2bev is the initial match from the first spatial reference point to the second spatial target point, F fv is an image including lane line features.

[0112] Further, see Figure 2 When detecting lane lines, a backbone network is established, that is, a backbone network based on Resnet101 provided in the embodiment of the present disclosure. The two-dimensional lane features in the lane line image are extracted through the backbone network Resnet101, the two-dimensional lane features are matched with the three-dimensional space, the cross-attention of the three-dimensional features is calculated, the lane line features in the second space are enhanced according to the cross-attention, and the three-dimensional lane lines are detected based on the enhanced lane line features.

[0113] In an optional embodiment, detecting the lane line according to the enhanced lane line feature of the second space includes:

[0114] Obtain a sampling point of the vehicle at the second coordinate based on the actual lane;

[0115] Obtain the offset of the sampling point based on the actual lane line at the first coordinate and the third coordinate;

[0116] The lane line is detected based on the sampling point on the second coordinate and the offset between the first coordinate and the third coordinate.

[0117] In this embodiment, the first coordinate refers to the x-axis coordinate, the second coordinate refers to the y-axis coordinate, and the third coordinate refers to the z-axis coordinate.

[0118] Based on the cross-attention learning of the lane line features in the second space, the lane line matching feature F from the first space to the second space is obtained B , and then processed by the decoder to obtain the enhanced BEV feature F BEV , that is, the enhanced lane line features of the second space, are used as input to detect the three-dimensional lane lines. The three-dimensional lane line detection uses an anchor-based method. The anchor points are arranged along the X axis in the BEV space and set with an inclination angle. The initial equally spaced straight lines start from the anchor point on the X axis. The 3D lane line detector detects the offset x of the real lane line on the X axis. i , the offset in the Z axis is z i , i is the subscript of anchor. Set the sampling point k on the real lane line to N, then the detected lane line coordinates are expressed as Where y is the sampling point of the actual lane at the second coordinate.

[0119] In an optional embodiment, mapping the reference point to the second space based on a preset conversion relationship to obtain a target point of the reference point in the second space includes:

[0120] Obtaining a scale control factor for converting the first space into the second space;

[0121] Obtain the rotation extrinsic matrix around the second coordinate, the intrinsic matrix and the height of the image acquisition module;

[0122] The reference point is mapped to the second space according to the scale control factor of the first space converted into the second space, the external parameter matrix rotated around the second coordinate, the internal parameter matrix and the height of the image information acquisition module to obtain the target point of the reference point in the second space.

[0123] In an optional embodiment, mapping the reference point to the second space according to the scale control factor of the first space converted to the second space, rotating the external parameter matrix around the second coordinate, the internal parameter matrix and the height of the image information acquisition module to obtain the target point of the reference point in the second space includes: mapping the reference point to the second space by the following formula to obtain the target point of the reference point in the second space:

[0124]

[0125] Where (u, v) is the image F including lane line features fv The coordinates of the reference point on f2b is the scale control factor of the first space into the second space, R θ K is the rotation matrix of the external parameter around the second coordinate. -1 represents the internal parameter matrix, h is the height of the image acquisition module, and (x, y) is the coordinate of the target point mapped to the second space.

[0126] In an alternative embodiment, see Figure 3 S4, identifying obstacles in the lane based on lane line features and wheel trajectory changes of vehicles in the lane, including:

[0127] S41, dividing the global scene of the lane where the vehicle is located based on the lane line features to obtain multiple scene modules;

[0128] S42, obtaining wheel track changes of all vehicles in multiple scene modules according to the relative position relationship between the front vehicle wheel and the lane line of the lane;

[0129] S43, identifying obstacles in the lane according to changes in wheel trajectories of all vehicles in multiple scene modules.

[0130] Segment the wheels of the vehicle running in front, and locate the vehicle in the BEV space based on the wheel coordinates. For the second mask feature of the BEV space wheel output by (3.3), locate the wheel coordinates of the vehicle in front in the BEV space. Considering that the on-board camera uses a fixed perspective to obtain the image of the vehicle in front, observing different wheels of the vehicle in front will produce perspective errors. In order to make the wheel tracking more accurate, for all or part of the wheels of each vehicle in front, this paper adopts the method of tracking the front wheel nearby. The present invention uses the ground contact point of the wheel mask feature as the wheel space position coordinate. For vehicles traveling in the same direction as the self-vehicle, track their rear wheels; conversely, for vehicles traveling in the opposite direction of the self-vehicle, track their front wheels.

[0131] For the tracked wheels, their position changes are detected in real time. Since bumps on the road, obstacles, etc. will cause height differences in the trajectory in three-dimensional space, the following vehicle can determine the road conditions in the area where the front vehicle is running by analyzing the relative position relationship between the front vehicle's wheels and the lane lines on the road.

[0132] In an optional embodiment, S4, identifying obstacles in the lane based on lane line features and wheel trajectory changes of vehicles in the lane:

[0133] Based on the three-dimensional trajectory of the front vehicle's wheels, a maximum value of a height change of the three-dimensional trajectory of the front vehicle's wheels is obtained, and when the maximum value of the height change exceeds a preset threshold range, information about the obstacle is determined.

[0134] For the tracked wheels, their position changes are detected in real time. Since road bumps and obstacles will cause height differences in the wheel movement trajectory, the rear vehicle can determine the road conditions in the front vehicle's operating area by analyzing the three-dimensional trajectory of the front vehicle's wheels.

[0135] In an optional embodiment, S43, identifying obstacles in the lane according to changes in wheel trajectories of all vehicles in multiple scene modules, includes:

[0136] Acquiring first position information of the front vehicle wheel in the second space according to the change of the wheel track of the front vehicle wheel in the second space when the front vehicle wheel encounters an obstacle;

[0137] Obtaining second position information of the lane line where the wheels of the front vehicle are located in the second space at each moment;

[0138] Obstacles in the lane are identified based on the first position information and the second position information.

[0139] Furthermore, the first position information is the X-axis coordinate of the front vehicle wheel in three-dimensional space, and the second position information is the Y-axis coordinate.

[0140] For further information, see Figure 4, for the generated three-dimensional wheel track of the front vehicle, the track coordinate frame difference method is used to calculate the position state change of the front vehicle in each frame. In addition, a height difference threshold is set in the actual calculation. Whenever the height of the three-dimensional wheel track changes, the maximum height difference is first calculated, and then the threshold is used to determine whether this height change belongs to a raised obstacle. If so, the size information of this raised obstacle and the distance information from the vehicle are output.

[0141] Furthermore, the embodiments of the present disclosure may also use other three-dimensional space multi-target tracking algorithms to calculate the position state change of the front vehicle in each frame. The methods, devices and readable storage media provided by the embodiments of the present disclosure may be used in the perception module of the autonomous driving system, the perception module of the intelligent driving and assisted driving system, etc.

[0142] The disclosed embodiment utilizes a vehicle-mounted camera to observe the driving status of vehicles within a visible range and determines the road condition ahead according to the driving status of the preceding vehicle.

[0143] The change in wheel position of the front vehicle in three-dimensional space is used to identify and calculate raised obstacles on the road. In addition, the front vehicle will automatically adjust the chassis posture to smoothly pass the obstacle when encountering a bump during driving, and avoid using components above the vehicle chassis whose spatial position will be affected by the height of the suspension when analyzing the change in the three-dimensional spatial position of the front vehicle.

[0144] Based on the perspective view guided by component segmentation and the conversion method of BEV perspective, the position of the front vehicle wheel in two-dimensional space is detected by component segmentation. The three-dimensional space coordinates of the wheel are calculated by transforming from two-dimensional to three-dimensional space.

[0145] In an alternative embodiment, see Figure 5 S2, obtaining the wheel trajectory change of the front vehicle wheel in the second space when encountering an obstacle, including:

[0146] S21, based on the acquired wheel image information of the front vehicle, performing component segmentation on the wheel information of the front vehicle, wherein the segmented image includes a second mask feature of the wheel of the front vehicle in the second space;

[0147] S22. Acquire a wheel track change of the front vehicle in the second space based on the second mask feature.

[0148] S23, obtaining a height change of the wheel of the front vehicle when encountering an obstacle, wherein the height change corresponds to a change in the track of the wheel of the front vehicle in the second space.

[0149] In an alternative embodiment, see Figure 6In an optional embodiment, S21, based on the acquired image information of the front vehicle wheel, the front vehicle wheel information is segmented into components, and the segmented image includes a second mask feature of the front vehicle wheel in the second space, including:

[0150] S211, extracting features from the acquired continuous frame two-dimensional images of the preceding vehicle, where the acquired features include first mask features of the vehicle and at least one wheel of the preceding vehicle.

[0151] It should be noted that the front vehicle wheel provided in this embodiment refers to the front vehicle wheel, and the continuous frame two-dimensional image of the front vehicle obtained may include two wheels of one vehicle, or may include multiple wheels of multiple vehicles, or at least include one wheel of one vehicle. By extracting features from the two-dimensional image of the front vehicle, the front vehicle driving process trajectory can be obtained, and the obstacle situation on the driving road can be judged based on the front vehicle driving process trajectory.

[0152] S212: Convert the first mask feature from the first space to the second space to obtain a second mask feature in the converted second space.

[0153] The first space refers to the conversion from a two-dimensional space, i.e., a perspective view (PV) to a three-dimensional view, i.e., a bird's-eye view (BEV). It is understandable that the two-dimensional space can only see the trajectory changes of the vehicle on the plane, but cannot obtain the movement trajectory of the vehicle in the height direction of the Z axis in the three-dimensional space, and thus cannot better judge the size of the obstacle. Therefore, the embodiment of the present disclosure converts the first mask feature of the front vehicle wheel in the first space into the second mask feature in the second space, so that it has the attribute of the height direction, and thus better judges the size information of the obstacle.

[0154] S213, acquiring the wheel track of the preceding vehicle in the second space based on the second mask feature.

[0155] The wheel trajectory of the front vehicle in the second space is obtained through the second mask feature, and the obstacle information encountered by the front vehicle can be determined through the target trajectory of the front vehicle, and then the vehicle's form strategy can be adjusted according to the obstacle information.

[0156] It is understandable that the movement trajectory of the front vehicle's wheels will change when encountering an obstacle, especially when encountering an obstacle with a convex shape, the wheels will change up and down in the height direction, and then the change in the height direction of the wheels can correspond to the change in the wheel's trajectory in three-dimensional space.

[0157] In an alternative embodiment, see Figure 7 S211, extracting features from the acquired continuous frame two-dimensional images of the preceding vehicle, wherein the acquired features include first mask features of at least one wheel of the present vehicle and the preceding vehicle, including:

[0158] S2111, performing a cascade operation on the initial input query information of the continuous frame two-dimensional image of the preceding vehicle and the wheel features of the vehicle and the preceding vehicle corresponding to the initial input query information, so as to perform a dynamic convolution operation, and obtain updated query information corresponding to the wheel of the vehicle and the preceding vehicle respectively;

[0159] S2112. Obtain a mask feature based on the updated query information as a first mask feature.

[0160] It should be noted that when obtaining the continuous frame two-dimensional image of the preceding vehicle, it is necessary to input the initial query information, that is, it is necessary to input the initial input information related to the vehicle and the scene environment of the vehicle, as well as the initial input information related to the front wheels of the vehicle in order to obtain the continuous frame two-dimensional image of the preceding vehicle.

[0161] By updating the query information, the accuracy of data acquisition of the vehicle and the preceding vehicle is improved.

[0162] In an optional embodiment, S2111, performing a cascade operation on the initial input query information of the continuous frame two-dimensional image of the preceding vehicle and the wheel features of the vehicle and the preceding vehicle corresponding to the initial input query information to perform a dynamic convolution operation, and obtaining updated query information corresponding to the wheel of the vehicle and the preceding vehicle respectively, including:

[0163] Feature extraction is performed on the acquired continuous frame two-dimensional images of the preceding vehicle to obtain the two-dimensional image features of each frame.

[0164] In an optional embodiment, feature extraction is performed on the acquired continuous frame two-dimensional images of the preceding vehicle to obtain the two-dimensional image features of each frame, including obtaining the two-dimensional image features of each frame by the following formula:

[0165] F t =f R101 (I t )

[0166] Among them, f R101 (·) represents the Resnet101 network, I t Represents the input t-th frame of the two-dimensional image, F t is the two-dimensional image feature extracted from the t-th frame image.

[0167] The two-dimensional image features of each frame are decoupled to obtain the features of the vehicle and its scene environment as well as the front wheel features of the front vehicle.

[0168] In an optional embodiment, the two-dimensional image features of each frame are decoupled to obtain the features of the vehicle and the scene environment of the vehicle and the front wheel features of the front vehicle, including:

[0169] Decoupling the two-dimensional image features through a first decoder to generate features of the vehicle and the vehicle scene environment;

[0170] The two-dimensional image features are decoupled through the second decoder to generate the front wheel features of the front vehicle.

[0171] Furthermore, a first decoder is established to decouple the two-dimensional image features to generate features of the vehicle and its scene environment; and a second decoder is established to decouple the two-dimensional image features to generate features of the front vehicle wheels of the front vehicle.

[0172] The convolution operation is performed on the vehicle and the scene environment features of the vehicle and the front wheel features of the front vehicle with the corresponding initial input query information to obtain the initial mask features.

[0173] In an optional embodiment, a convolution operation is performed on the vehicle and the vehicle scene environment features and the front vehicle wheel features of the front vehicle with the corresponding initial input query information to obtain the initial mask features, including:

[0174] The vehicle and the vehicle scene environment features as well as the front vehicle wheel features of the front vehicle are convolved with the corresponding initial input query information according to the following formula to obtain the initial mask features:

[0175]

[0176]

[0177] in, is the initial mask feature of the vehicle and its scene environment, F ts are the characteristics of the vehicle and its scene environment, is a convolution operation, Concat represents a cascade function for cascade operations, Q t Initial input query information for the vehicle characteristics, Q s The initial input query information for the scene environment characteristics of the vehicle, Q w is the initial input query information for the front wheel feature of the front vehicle, i is the layer number identifier, is the initial mask feature of the front wheel of the front vehicle, F w It is the front wheel feature of the front vehicle.

[0178] Based on the initial mask features, feature segmentation is performed on the vehicle, the vehicle scene environment features, and the front vehicle wheel features of the front vehicle to obtain the vehicle segmentation features, the vehicle scene environment segmentation features, and the front vehicle wheel segmentation features.

[0179] In an optional embodiment, feature segmentation is performed on the vehicle, the vehicle scene environment feature, and the front wheel feature of the front vehicle based on the initial mask feature to obtain the vehicle segmentation feature, the vehicle scene environment segmentation feature, and the front wheel segmentation feature, including feature segmentation of the vehicle, the vehicle scene environment feature, and the front wheel feature of the front vehicle by the following formula:

[0180]

[0181] Among them, X i is the feature after segmentation, W and H are the features of the vehicle and the scene environment of the vehicle, respectively. ts 、Front wheel feature of the front vehicle w The width and height of the vehicle are represented by u and v, respectively, and i is the number of layers. The segmentation feature of the vehicle is recorded as X t , the vehicle scene environment segmentation feature is recorded as X s , the front wheel segmentation feature of the front vehicle is recorded as X w .

[0182] The segmentation features of the vehicle, the scene environment segmentation features of the vehicle, and the wheel segmentation features of the preceding vehicle are cascaded, and the initial input query information corresponding to the segmentation features of the vehicle, the scene environment segmentation features of the vehicle, and the wheel segmentation features of the preceding vehicle are cascaded to perform a dynamic convolution operation, so as to obtain updated query information corresponding to the vehicle and at least one wheel of the preceding vehicle.

[0183] In an optional embodiment, the vehicle segmentation feature, the vehicle scene environment segmentation feature, and the front vehicle wheel segmentation feature are cascaded, and the initial input query information corresponding to the vehicle segmentation feature, the vehicle scene environment segmentation feature, and the front vehicle wheel segmentation feature are cascaded to perform a dynamic convolution operation to obtain updated query information corresponding to the vehicle and at least one front vehicle wheel of the front vehicle, including obtaining the updated query information corresponding to the vehicle and at least one front vehicle wheel of the front vehicle by the following formula:

[0184]

[0185]

[0186] in, Indicates the cascade operation of the vehicle segmentation feature, the vehicle scene environment segmentation feature and the front vehicle wheel segmentation feature. Expressing the adoption After fine-tuning the function, the initial input query information corresponding to the vehicle segmentation features, the vehicle scene environment segmentation features and the front vehicle wheel segmentation features are cascaded, the Gate(·) function implements the dynamic convolution operation, FFN(·) is the feedforward network, and MHSA(·) is the multi-head self-attention layer.

[0187] Furthermore, after obtaining the updated query information, the initial mask features of the vehicle and its scene environment and the initial mask features of the front wheels of the preceding vehicle are updated for prediction of the initial mask features of the vehicle and its scene environment and the initial mask features of the front wheels of the preceding vehicle.

[0188] Furthermore, the initial mask features of the vehicle and the scene environment of the vehicle and the initial mask features of the front wheel of the front vehicle are predicted and calculated by the following formula:

[0189]

[0190]

[0191]

[0192] Among them, Concat represents the cascade function for cascade operation. Represents the input query information Q for the prediction of the vehicle’s features t , vehicle scene environment feature prediction input query information Q s , the front vehicle wheel feature prediction input query information Q w Cascade to obtain the cascaded input information set is the initial mask feature of the updated front wheel prediction, F w is the front wheel feature of the front vehicle, is the convolution operation, is the initial input query information for the updated front vehicle wheel feature prediction, is the updated initial mask feature of the vehicle and the vehicle scene environment prediction, F ts It is the characteristics of the vehicle and its scene environment.

[0193] In an optional embodiment, converting the first mask feature from the first space to the second space to obtain a second mask feature in the converted second space includes:

[0194] The first mask feature is modeled using an MLP network to transform from the first space to the second space, and the second mask feature is modeled using a cross-attention mechanism to obtain the initial state of the second mask feature in the second space.

[0195] See also Figure 8The technology of transforming images from two-dimensional space (i.e., PV space) to three-dimensional space (BEV space) has been widely used in the field of autonomous driving. The transformation from a two-dimensional image to a three-dimensional space perspective makes it possible to obtain distance relationships that cannot be calculated on a two-dimensional image in a three-dimensional space. There are many transformation schemes from two-dimensional space to three-dimensional space. For example, the IPM (inverse perspective mapping) scheme performs inverse perspective transformation by assuming that the ground is flat. Since the present disclosure is for identifying uneven targets on the road surface, this assumption does not hold true in the scenario proposed in the present disclosure. The OFT (orthogonal feature transformation) scheme uses an orthogonal feature transformation to map features based on a two-dimensional image to a three-dimensional bird's-eye view. The accurate external assumptions required may not be available online. In addition to the above-mentioned geometric transformation-based and depth-based transformation schemes, a scheme that implicitly models perspective transformation in a data-driven manner is more suitable for the setting of the present disclosure. The present disclosure uses a network learning-based method guided by component segmentation features to achieve the conversion from a two-dimensional view to a three-dimensional perspective.

[0196] The initial state of the second mask feature in the second space and the mask feature of the wheel of the leading vehicle are obtained based on the initial state of the second mask feature in the second space and the mask feature of the wheel of the leading vehicle.

[0197] The disclosed embodiment uses an MLP network modeling to transform the first mask feature from the first space to the second space. The MLP network (Multi-Layer Perceptron, MLP) is used to model this transformation process. In addition, an inverse transformation process from BEV space to PV space is designed to constrain the training process of the model.

[0198] X b =MLP p2b (M p ),

[0199] X′=MLP b2p (X b ).

[0200] Among them, MLP p2b That is, multi-layer perceptron, MLP p2b (·) and MLP b2p (·) The network is used to learn the spatial transformation patterns from PV to BEV and from BEV to PV, respectively. b For MLP p2b (·) Spatial features generated by the network, X′ is the MLP b2p (·) Spatial features generated by the network.

[0201] Based on the initial state of the second mask feature in the second space and the cross attention of the mask feature of the front vehicle wheel, the second mask feature in the converted second space is obtained.

[0202] Further, Fig. 9 The computation process of the cross-attention mechanism in this step is described.

[0203] In an optional embodiment, obtaining the second mask feature in the second space after conversion based on the initial state of the second mask feature in the second space and the cross attention of the mask feature of the wheel of the front vehicle includes:

[0204] The initial state X of the second mask feature in the second space p Multiple decoder layers are used for fine-tuning to transform the front wheel mask feature M p Perform position encoding in the first space to obtain the mask feature M of the front wheel p The encoding features

[0205] Furthermore, if Fig. 9 As shown, the initial state X of the second mask feature in the BEV space is p , front wheel mask feature M p and the BEV to PV spatial relationship change X′ as the input of the cross-view transformation, i.e. k = M p , Q = X b , V = X′, front wheel mask feature M p and MLP p2b (·) Spatial features X generated by the network b The correlation matrix R between the input p and X b After the flatten operation (the flatten() function can perform a flattening operation and return a one-dimensional array), it is processed into patches (image blocks).

[0206] Furthermore, the formula Calculate the incidence matrix R.

[0207] in, i,j∈[1,…,hw], where h and w are M p The length and width dimensions of . According to the correlation matrix R, the maximum correlation matrix W = {w i} and index matrix H = {h i}:

[0208]

[0209]

[0210] Due to the front vehicle wheel mask feature M p and X′ are both features of the front view, so the correlation between them is similar to the front wheel mask feature M p and MLP p2b(·) Spatial features X generated by the network b That is, using the front wheel mask feature M p and MLP p2b (·) Spatial features X generated by the network b It is reasonable to use the correlation index matrix H to extract important information of X′.

[0211] A feature selection strategy F is used fs , according to the maximum correlation index matrix H, a new most relevant feature map T = {t i}:

[0212]

[0213] Furthermore, the feature selection strategy F fs Extract from X' according to the subscript stored in the maximum correlation index matrix H.

[0214] After the dimension transformation, T is equal to X b Perform feature union, through F conv After the convolution calculation, the weighted attention is calculated by the maximum correlation matrix W, and finally combined with X through a residual structure b polymerization:

[0215] X p =X b +F conv (Concat(X b ,T))⊙W,

[0216] The initial state X in the second space based on the second mask feature p , front wheel mask feature M p The encoding features Perform cross attention calculation to obtain the second mask feature M of the second space after conversion v .

[0217] For the initial state X of the acquired second mask feature in the second space p , and the front wheel mask feature M p , calculate X p and M p Cross-attention.

[0218] like Fig.10 As shown, the initial state X p After fine-tuning of multiple decoder layers, the second mask feature M in the BEV space is finally generated v For the second mask feature M p, perform position encoding in PV space, and then input it into Transformer Encoder for row encoding, that is, integrate the row information into the same column. For the initial state X of the initial BEV space p , perform position encoding in BEV space, and then use it as the initial input query information and the second mask feature M p The encoding features Acting as the Key and Value together, calculate the cross attention, and obtain the final BEV space second mask feature M v .

[0219] In an alternative embodiment, see Fig.11 S22, obtaining the wheel track of the front vehicle in the second space based on the second mask feature, including:

[0220] S221. Based on the second mask feature in the second space, obtain the wheel coordinates of the preceding vehicle in the second space.

[0221] S222. Based on the similarity of the front vehicle wheel features, the front vehicle wheel that has been tracked in the previous frame is associated with the front vehicle wheel that is newly detected in the current frame to generate an association relationship, and online motion detection is performed on the front vehicle wheel of the front vehicle according to the association relationship.

[0222] The wheels of the leading vehicle are segmented and the trajectory of the vehicle in the BEV space is tracked based on the wheel coordinates.

[0223] The wheel coordinates of the front vehicle in the BEV space are located for the second mask feature of the front wheel of the vehicle in the BEV space obtained in the above steps. Considering that the on-board camera uses a fixed viewing angle to obtain the image of the front vehicle, observing different wheels of the front vehicle will produce viewing angle errors. In order to make the wheel tracking more accurate, for all or part of the wheels of each front vehicle, the embodiment of the present disclosure adopts the method of tracking the front wheel nearby. The present disclosure uses the ground contact point of the wheel mask feature as the wheel space position coordinate.

[0224] Furthermore, for vehicles traveling in the same direction as the vehicle, their rear wheels are tracked; for vehicles traveling in the opposite direction to the vehicle, their front wheels are tracked.

[0225] Furthermore, the embodiment of the present disclosure proposes tracking the wheels of the preceding vehicle in the BEV space, which is a multi-target tracking task in three-dimensional space. The present disclosure adopts the classic multi-target tracking paradigm tracking-by-detection to track the wheels of the preceding vehicle.

[0226] In an optional embodiment, S222, based on the similarity of the front vehicle wheel features, the front vehicle wheel that has been tracked in the previous frame is associated with the front vehicle wheel that is newly detected in the current frame to generate an association relationship, and online motion detection is performed on the front vehicle wheel of the front vehicle according to the association relationship, including:

[0227] Extract the motion characteristics of the front vehicle's wheels based on a specific function;

[0228] Further, see Fig.12 , for the located front wheel, online motion detection is performed to associate the tracked object in the previous frame with the newly detected object in the current frame. i ∈O, and the detected object d in the t+1th frame j ∈D, a neural network is used to extract the features of the targets in O and D, and then the best match is generated based on the pairwise feature similarity. Fig.12 A flowchart of a tracking algorithm for generating the best match according to an embodiment of the present disclosure is shown.

[0229] For the tracked object o, considering the features of the object detected in the past frame, the present disclosure uses an LSTM network (LSTM long short-term memory network (LSTM), which is an improved recurrent neural network that can solve the problem that RNN cannot handle long-distance dependencies) to extract the three-dimensional motion features f of the tracked object o. m , and for the newly detected object d in the t+1th frame, an MLP network model is constructed to extract the object features. It should be noted that the object provided in this embodiment refers to the wheel of the front vehicle.

[0230] Model the similarity relationship graph between objects in adjacent frames of the two-dimensional image of the front vehicle wheel;

[0231] For multi-target tracking, an important goal is to model the similarity relationship graph between targets in adjacent frames. The present disclosure uses a graph neural network (GNN) to establish a node graph between the temporal features extracted from the t-th frame and the non-temporal features extracted from the t+1-th frame. It is assumed here that there are m targets in the tracked object set O in the t-th frame and n targets in the detected object set D in the t+1-th frame. The present disclosure embodiment uses GNN to construct a graph of m+n nodes, and the features of each node are the aforementioned extracted object features.

[0232] constructing pairs of similarity edges based on the nodes matching the number of wheels of the preceding vehicle and the similarity relationship graph;

[0233] Then, pairs of similarity edges are constructed for m+n nodes. Since the purpose of tracking is to find the similarity of the target in frame t and frame t+1, when constructing similarity edges, the nodes in frame t are only connected to the nodes in frame t+1. When connecting edges, a distance threshold between two nodes is set. If and only if the center distance between the paired targets in the two frames is less than the threshold, the two are connected by an edge.

[0234] Obtain the correlation between pairs of nodes based on the construction of paired similarity edges, and update the features of the nodes;

[0235] The embodiment of the present disclosure calculates the similarity between two nodes by constructing an MLP: In a deep neural network, a rectified linear unit (ReLU) is usually used as the activation function of the neuron, and Sigmoid is used as the activation function:

[0236]

[0237] in, are the i-th and j-th object nodes in the t-th frame and the t+1-th frame respectively, σ1 and σ2 are the linear layers of MLP. For the generated m×n-dimensional affinity matrix A, node features are updated.

[0238]

[0239] in, represents the neighborhood of the i-th node in the t+1 frame, σ3, σ4 are linear layers. ij as the weight of the feature difference.

[0240] The optimal match is generated based on the correlation between paired nodes, the three-dimensional trajectory of the front vehicle wheel is obtained based on the optimal match, and the online motion detection of the front vehicle wheel is performed on the front vehicle wheel.

[0241] Fig.13 The figure is a schematic block diagram of the structure of a global obstacle recognition device using a hardware implementation of a processor according to an embodiment of the present disclosure.

[0242] The global obstacle identification device may include corresponding modules for executing each or several steps in the above flowchart. Therefore, each step or several steps in the above flowchart may be executed by the corresponding module, and the device may include one or more of these modules. The module may be one or more hardware modules specifically configured to execute the corresponding steps, or implemented by a processor configured to execute the corresponding steps, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination.

[0243] The hardware structure of the global obstacle identification device of the present disclosure can be implemented using a bus architecture. The bus architecture may include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 100 connects various circuits including one or more processors 1200, memory 1300, and / or hardware modules together. The bus 100 may also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.

[0244] The bus 100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one connecting line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0245] Any process or method description in the flowchart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present disclosure. The processor performs the various methods and processes described above. For example, the method implementation in the present disclosure can be implemented as a software program, which is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).

[0246] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device), or in combination with such instruction execution systems, apparatuses, or devices.

[0247] For the purposes of this specification, a "readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a memory.

[0248] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0249] A person skilled in the art may understand that all or part of the steps of implementing the above-mentioned implementation method may be completed by instructing related hardware through a program, and the program may be stored in a readable storage medium, which, when executed, includes one or a combination of the steps of the implementation method.

[0250] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.

[0251] refer to Fig.13 According to one embodiment of the present disclosure, the global obstacle recognition device of the present disclosure includes:

[0252] A first acquisition unit 101 is used to detect lane lines based on acquired image information of a lane where at least one set of wheels of a preceding vehicle is located, wherein the image information includes lane line features for detecting lane lines in a first space;

[0253] A second acquisition unit 102, used to acquire a change in a wheel track of the front vehicle in the second space when the front vehicle wheel encounters an obstacle;

[0254] A third acquisition unit 103 is used to acquire vehicles in each lane line based on the lane line features;

[0255] The fourth acquisition unit 104 is used to identify obstacles in the lane based on the lane line features and the wheel track changes of the vehicle in the lane.

[0256] The first acquisition unit 101 includes:

[0257] A first acquisition subunit is used to select a reference point in an image including lane line features;

[0258] Mapping the reference point to the second space based on a preset conversion relationship to obtain a target point of the reference point in the second space, wherein the target point forms a lane line feature of the lane line in the second space;

[0259] The second acquisition subunit is used to detect the lane line based on the lane line features in the second space.

[0260] A second acquisition subunit is used to perform cross-attention learning on the lane line features in the second space to obtain lane line matching features from the first space to the second space;

[0261] Decoding the matching features to obtain enhanced lane line features in the second space;

[0262] The lane line is detected based on the enhanced lane line features of the second space.

[0263] The second acquisition subunit is used to obtain lane line matching features from the first space to the second space through the following features:

[0264] F B =DeformAttn(Q′ bev ,F fv ,p fv2bev ),

[0265] Among them, F B is the lane matching feature from the first space to the second space, DeformAttn() is the cross attention function, Q′ bev is the second space initialization feature obtained by multi-layer self-attention calculation based on the initial input query information predefined in the second space, p pv2bevis the initial match from the first spatial reference point to the second spatial target point, F fv is an image including lane line features.

[0266] A second acquisition subunit is used to acquire a sampling point of the vehicle at a second coordinate based on the actual lane;

[0267] Obtain the offset of the sampling point based on the actual lane line at the first coordinate and the third coordinate;

[0268] The lane line is detected based on the sampling point on the second coordinate and the offset between the first coordinate and the third coordinate.

[0269] A second acquisition subunit is used to acquire a scale control factor for converting the first space into the second space;

[0270] Obtain the rotation extrinsic matrix around the second coordinate, the intrinsic matrix and the height of the image acquisition module;

[0271] The reference point is mapped to the second space according to the scale control factor of the first space converted into the second space, the external parameter matrix rotated around the second coordinate, the internal parameter matrix and the height of the image information acquisition module to obtain the target point of the reference point in the second space.

[0272] The second acquisition subunit is used to map the reference point to the second space by the following formula to obtain the target point of the reference point in the second space:

[0273]

[0274] Where (u, v) is the image F including lane line features fv The coordinates of the reference point on f2b is the scale control factor of the first space into the second space, R θ K is the rotation matrix of the external parameter around the second coordinate. -1 represents the internal parameter matrix, h is the height of the image acquisition module, and (x, y) is the coordinate of the target point mapped to the second space.

[0275] A fourth acquisition unit 104 is used to divide the global scene of the lane where the vehicle is located based on the lane line features to obtain multiple scene modules;

[0276] According to the relative position relationship between the front vehicle's wheels and the lane line of the lane in which it is located, the wheel trajectory changes of all vehicles in multiple scene modules are obtained;

[0277] Identify obstacles within the lane based on the changes in wheel trajectories of all vehicles in multiple scenario modules.

[0278] A fourth acquisition unit 104, configured to acquire first position information of the front vehicle wheel in the second space according to a change in a wheel track of the front vehicle wheel in the second space when the front vehicle wheel encounters an obstacle;

[0279] Obtaining second position information of the lane line where the wheels of the front vehicle are located in the second space at each moment;

[0280] Obstacles in the lane are identified based on the first position information and the second position information.

[0281] The second acquisition unit 102 is used to acquire the wheel track change of the front vehicle in the second space when the front vehicle wheel encounters an obstacle, including:

[0282] Based on the acquired front vehicle wheel image information, the front vehicle wheel information is segmented into components, and the segmented image includes a second mask feature of the front vehicle wheel in the second space;

[0283] The wheel trajectory change of the front vehicle in the second space is obtained based on the second mask feature.

[0284] The second acquisition unit 102 is used to extract features from the acquired continuous frame two-dimensional images of the preceding vehicle, where the acquired features include first mask features of at least one wheel of the vehicle and the preceding vehicle;

[0285] The first mask feature is transformed from the first space to the second space to obtain a second mask feature in the transformed second space.

[0286] The second acquisition unit 102 is used to acquire a height change of the front vehicle wheel when encountering an obstacle, and the height change corresponds to a track change of the front vehicle wheel in the second space.

[0287] The present disclosure also provides an electronic device, including: a memory, the memory storing execution instructions; and a processor or other hardware module, the processor or other hardware module executes the execution instructions stored in the memory, so that the processor or other hardware module executes the above method.

[0288] The present disclosure also provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the above method.

[0289] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.

Claims

1. A global obstacle recognition method, characterized in that: include: Detecting a lane line based on the acquired image information of a lane where at least one group of wheels of a preceding vehicle is located, wherein the image information includes a lane line feature for detecting the lane line in a first space; Obtaining the wheel trajectory change of the front vehicle in the second space when the front vehicle wheel encounters an obstacle; Acquire vehicles in each lane based on the lane line features; and Identifying obstacles in the lane based on the lane line features and wheel trajectory changes of vehicles in the lane; Wherein, identifying obstacles in the lane based on the lane line features and the wheel trajectory changes of the vehicle in the lane includes: Dividing the global scene of the lane where the vehicle is located based on the lane line features to obtain multiple scene modules; Obtaining wheel track changes of all vehicles in the multiple scene modules according to the relative position relationship between the front vehicle wheel and the lane line of the lane; Obstacles in the lane are identified based on changes in wheel trajectories of all vehicles in the multiple scene modules.

2. The global obstacle recognition method according to claim 1, characterized in that: Detecting the lane line based on the acquired image information of the lane where at least one set of wheels of the preceding vehicle is located includes: Selecting a reference point in the image including lane line features; Mapping the reference point to a second space based on a preset conversion relationship to obtain a target point of the reference point in the second space, wherein the target point forms a lane line feature of the lane line in the second space; The lane line is detected based on the lane line features in the second space.

3. The global obstacle recognition method according to claim 2, characterized in that: Detecting the lane line based on the lane line feature in the second space includes: Performing cross-attention learning on the lane line features in the second space to obtain lane line matching features from the first space to the second space; Decoding the matching features to obtain enhanced lane line features in the second space; The lane line is detected according to the enhanced lane line features of the second space.

4. The global obstacle recognition method according to claim 3, characterized in that: Detecting the lane line according to the enhanced lane line feature of the second space includes: Obtain a sampling point of the vehicle at the second coordinate based on the actual lane; Obtaining the offset of the sampling point based on the actual lane line at the first coordinate and the third coordinate; The lane line is detected based on the sampling point on the second coordinate and the offset between the first coordinate and the third coordinate.

5. The global obstacle recognition method according to claim 2, characterized in that: Mapping the reference point to a second space based on a preset conversion relationship to obtain a target point of the reference point in the second space includes: Obtaining a scale control factor for converting the first space into the second space; Obtain the rotation extrinsic matrix around the second coordinate, the intrinsic matrix and the height of the image acquisition module; The reference point is mapped to the second space according to the scale control factor of the first space converted into the second space, the external parameter matrix rotated around the second coordinate, the internal parameter matrix and the height of the image acquisition module to obtain the target point of the reference point in the second space.

6. The global obstacle recognition method according to claim 1, characterized in that: Obtaining a change in the wheel trajectory of the front vehicle in the second space when the front vehicle wheel encounters an obstacle, comprising: Based on the acquired front vehicle wheel image information, performing component segmentation on the front vehicle wheel image information, wherein the segmented image includes a second mask feature of the front vehicle wheel in the second space; The wheel trajectory change of the leading vehicle in the second space is acquired based on the second mask feature.

7. A global obstacle recognition device, characterized in that: include: A first acquisition unit, configured to detect a lane line based on acquired image information of a lane where at least one set of wheels of a preceding vehicle is located, wherein the image information includes a lane line feature for detecting the lane line in a first space; A second acquisition unit, used to acquire a change in a wheel track of the front vehicle in the second space when the front vehicle wheel encounters an obstacle; A third acquisition unit, configured to acquire vehicles in each lane based on the lane line features; and a fourth acquisition unit, configured to identify obstacles in the lane based on the lane line features and wheel track changes of vehicles in the lane; Wherein, identifying obstacles in the lane based on the lane line features and the wheel trajectory changes of the vehicle in the lane includes: Dividing the global scene of the lane where the vehicle is located based on the lane line features to obtain multiple scene modules; Obtaining wheel track changes of all vehicles in the multiple scene modules according to the relative position relationship between the front vehicle wheel and the lane line of the lane; Obstacles in the lane are identified based on changes in wheel trajectories of all vehicles in the multiple scene modules.

8. An electronic device, characterized in that: include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes the global obstacle recognition method according to any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores execution instructions, which are used to implement the global obstacle recognition method according to any one of claims 1 to 6 when executed by the processor.

Citation Information

Patent Citations

  • Autonomous driving methods, devices, electronic devices and storage media

    CN114648504B

  • Unmanned vehicle water pit identification method, device and equipment and storage medium

    CN114872729A