Obstacle identification method, device, equipment, storage medium and program product

By combining the two-dimensional road condition image segmentation and the two-dimensional target detection model with adaptive space transformation and category alignment processing, the problem of difficulty in identifying atypical obstacles in autonomous driving is solved, and accurate identification of various obstacles is achieved to meet the needs of Three-dimensional space detection requirements for autonomous driving.

CN117975419BActive Publication Date: 2024-09-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410375597.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-09-03
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

It is difficult to accurately identify atypical obstacles during autonomous driving, such as gravel, billboards, potholes, etc. Existing technology cannot effectively identify these irregular-shaped obstacles, making identification difficult.

Method used

By segmenting the two-dimensional traffic image, using the two-dimensional target detection model for target detection, and combining adaptive spatial transformation and category alignment processing, the recognition of obstacles in three-dimensional space is achieved, avoiding the need for new data collection and model training. need.

Benefits of technology

Without increasing data collection and model training, it achieves accurate identification of various obstacles, meets the needs of three-dimensional space detection in autonomous driving, and improves the accuracy and efficiency of obstacle identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117975419B
    Figure CN117975419B
Patent Text Reader

Abstract

The present invention relates to the field of intelligent driving technology, and discloses an obstacle recognition method, device, equipment, storage medium and program product. The method includes: segmenting a two-dimensional road condition image to be processed to obtain multiple two-dimensional segmented images; performing target detection processing on the two-dimensional segmented images using a two-dimensional target detection model to obtain a secondary category target detection result corresponding to the two-dimensional space; performing adaptive space conversion processing and category alignment processing on the target detection result to obtain a primary category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within a first range and a second range. The present invention realizes accurate recognition of obstacles of various categories during the automatic driving process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent driving technology, and in particular to an obstacle recognition method, device, equipment, storage medium and program product. Background Art

[0002] During the process of autonomous driving, obstacle detection in three-dimensional space is usually performed. At present, obstacle detection during autonomous driving can usually only detect typical obstacles such as vehicles and pedestrians. It is difficult to identify atypical obstacles with irregular shapes such as gravel, billboards, potholes, and domestic garbage. Due to the diversity of atypical obstacles and the scarcity of relevant road data, it is extremely difficult to train a recognition model for atypical obstacles. Therefore, how to accurately identify various types of obstacles is a technical problem that needs to be solved urgently. Summary of the invention

[0003] In view of this, the present invention provides an obstacle identification method, device, equipment, storage medium and program product to solve the problem that it is difficult to accurately identify various types of obstacles in autonomous driving.

[0004] In a first aspect, the present invention provides an obstacle identification method, the method comprising:

[0005] Segmenting the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images;

[0006] Use the two-dimensional target detection model to perform target detection on the two-dimensional segmented image to obtain the secondary category target detection results corresponding to the two-dimensional space;

[0007] The target detection result is adaptively processed by space conversion and category alignment to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within the first range and the second range.

[0008] The obstacle recognition method provided by the present invention obtains a two-dimensional segmented image that meets the image requirements of the existing two-dimensional target detection model by segmenting the two-dimensional road condition image, and uses the two-dimensional target detection model to perform target detection processing on the segmented image to obtain the secondary category target detection result corresponding to the two-dimensional space; and performs adaptive spatial conversion processing and category alignment processing on the target detection result to obtain the primary category target obstacle recognition result corresponding to the three-dimensional space. Therefore, by using the two-dimensional target detection model to perform target detection processing, it is ensured that the secondary category target detection result corresponding to the two-dimensional space can include various general categories; by performing spatial conversion on the secondary category target detection result corresponding to the two-dimensional space, it is ensured that the converted obstacle recognition result can meet the three-dimensional space detection requirements in the process of automatic driving; by performing category alignment processing, the conversion of the general category of existing two-dimensional target detection to the special category of automatic driving is realized. In other words, without the need for new data collection, model training, and model deployment, accurate detection of various categories of obstacles in automatic driving is achieved.

[0009] In an optional implementation, the two-dimensional road condition image to be processed is segmented to obtain a plurality of two-dimensional segmented images, including:

[0010] Constructing a plurality of first three-dimensional bounding boxes in the three-dimensional space according to preset recognition parameters;

[0011] Projecting the first three-dimensional bounding box into the two-dimensional road condition image to obtain a plurality of first two-dimensional bounding boxes;

[0012] According to the first two-dimensional boundary frame, the two-dimensional road condition image is segmented into a plurality of two-dimensional segmented images.

[0013] The obstacle recognition method provided in this embodiment constructs multiple first three-dimensional bounding boxes in three-dimensional space according to preset recognition parameters, and projects the first three-dimensional bounding boxes into a two-dimensional road condition image to obtain multiple first two-dimensional bounding boxes; and, according to the first two-dimensional bounding boxes, divides the two-dimensional road condition image into multiple two-dimensional segmented images. It can ensure that the two-dimensional segmented images meet the image requirements corresponding to the two-dimensional target detection model, and realize accurate segmentation of the two-dimensional segmented images.

[0014] In an optional implementation, constructing a plurality of first three-dimensional bounding boxes in a three-dimensional space according to preset recognition parameters includes:

[0015] Determining, according to preset recognition parameters, indexes of a plurality of first three-dimensional bounding boxes to be constructed;

[0016] Determine first world coordinates of a plurality of corner points of the first three-dimensional bounding box in the three-dimensional space according to the index;

[0017] Construct a plurality of first three-dimensional bounding boxes in the three-dimensional space according to the first world coordinates.

[0018] The obstacle recognition method provided in this embodiment determines the index of the first three-dimensional bounding box, determines the first world coordinates of multiple corner points of the first three-dimensional bounding box in the three-dimensional space according to the index, and constructs multiple first three-dimensional bounding boxes in the three-dimensional space according to the first world coordinates. Not only can each first three-dimensional bounding box be uniquely identified based on the index, but also the accuracy of the constructed first three-dimensional bounding box is guaranteed.

[0019] In an optional implementation, the recognition parameters include a first recognition range and a target size of the first three-dimensional bounding box; and determining the indexes of the plurality of first three-dimensional bounding boxes to be constructed according to the preset recognition parameters includes:

[0020] Initialize the initial index and determine the initial index as the current index;

[0021] Determining whether the current index satisfies an update condition according to the first recognition range and the target size;

[0022] If the update condition is met, the current index is updated to obtain a new index, and the new index is determined as the current index, and the update condition determination operation is performed;

[0023] This cycle is repeated until it is determined that the update condition is not satisfied, and the indexes of multiple first three-dimensional bounding boxes to be constructed are obtained.

[0024] The obstacle recognition method provided in this embodiment ensures the uniqueness of the index by updating the index, thereby ensuring the accuracy of the first three-dimensional bounding box constructed based on the index.

[0025] In an optional implementation, determining first world coordinates of multiple corner points of the first three-dimensional bounding box in the three-dimensional space according to the index includes:

[0026] For each first three-dimensional bounding box, determine a second world coordinate of a center point of the first three-dimensional bounding box according to the target size and the index of the first three-dimensional bounding box;

[0027] According to the second world coordinates and the target size, first world coordinates of multiple corner points of the first three-dimensional bounding box in the three-dimensional space are determined.

[0028] The obstacle recognition method provided in this embodiment first determines the second world coordinates of the center point of the first three-dimensional bounding box, and determines the first world coordinates of multiple corner points of the first three-dimensional bounding box in three-dimensional space based on the second world coordinates and the target size, which can ensure the accuracy of the first world coordinates and thus ensure the accuracy of subsequent processing.

[0029] In an optional implementation, the first three-dimensional bounding box is projected into the two-dimensional road condition image to obtain a plurality of first two-dimensional bounding boxes, including:

[0030] For each first three-dimensional bounding box, convert each first world coordinate of the first three-dimensional bounding box into a first pixel coordinate in the two-dimensional road condition image using a preset conversion matrix;

[0031] Determine, according to the first pixel coordinate, a second pixel coordinate of a diagonal line of the corresponding first two-dimensional bounding box;

[0032] A first two-dimensional bounding box is generated according to the second pixel coordinates.

[0033] Therefore, the projection of the first three-dimensional bounding box onto the two-dimensional road condition image is realized by using the transformation matrix; by determining the second pixel coordinates of the diagonal of the first two-dimensional bounding box and generating the first two-dimensional bounding box based on the second pixel coordinates, the accuracy of the first two-dimensional bounding box is guaranteed, and thus the accuracy of subsequent processing is guaranteed.

[0034] In an optional implementation, a two-dimensional target detection model is used to perform target detection processing on the two-dimensional segmented image to obtain a secondary category target detection result corresponding to the two-dimensional space, including:

[0035] Performing size alignment processing on the two-dimensional segmented image to obtain a target two-dimensional segmented image;

[0036] Divide the target two-dimensional segmented image into multiple image sets;

[0037] For each image set, a two-dimensional target detection model is used to perform target detection processing on the two-dimensional segmented images of each target in the image set to obtain the secondary category target detection results corresponding to the two-dimensional segmented images of each target in the image set in the two-dimensional space.

[0038] The obstacle recognition method provided in this embodiment ensures that the obtained target two-dimensional segmented images can meet the size requirements of the two-dimensional target detection model for the input image by aligning the size of the two-dimensional segmented images during the target detection process, thereby performing effective target detection. By dividing each target two-dimensional segmented image into multiple image sets, each target two-dimensional segmented image in the corresponding image set is subjected to parallel target detection processing during each target detection process, which greatly improves the efficiency of target detection.

[0039] In an optional implementation, the target detection result includes the third pixel coordinate of the diagonal line of the second two-dimensional bounding box of the target object and the secondary category information to which the target object belongs, and the target object is an object in the two-dimensional segmented image; the target detection result is adaptively processed in space conversion and category alignment to obtain a primary category target obstacle recognition result corresponding to the three-dimensional space, including:

[0040] Obtain point cloud data corresponding to the two-dimensional road condition image;

[0041] Determine a third world coordinate of a diagonal line of a second three-dimensional detection frame of the target object in the three-dimensional space according to the third pixel coordinate and the point cloud data;

[0042] Perform category alignment processing on the secondary category information to obtain the primary category information;

[0043] According to the third world coordinates and the first-level category information, the first-level category target obstacle recognition result corresponding to the three-dimensional space is generated.

[0044] The obstacle recognition method provided by the present invention realizes the conversion of the second two-dimensional bounding box of the target object in the target detection result into the three-dimensional space corresponding to the automatic driving based on the point cloud data corresponding to the two-dimensional road condition image.

[0045] In an optional implementation, generating a first-level category target obstacle recognition result corresponding to the three-dimensional space according to the third world coordinates and the first-level category information includes:

[0046] For each first-level category information, determine the target range to which the first-level category information belongs in the first range and the second range;

[0047] If the target range is the first range, the first-level category information and the third world coordinates corresponding to the first-level category information are attributed to the first recognition result set;

[0048] If the target range is the second range, the primary category information and the third world coordinates corresponding to the primary category information are attributed to the second recognition result set.

[0049] The first recognition result set and the second recognition result set are determined as the first-level category target obstacle recognition results corresponding to the three-dimensional space.

[0050] In an optional implementation, performing category alignment processing on the secondary category information to obtain the primary category information includes:

[0051] For each secondary category information, obtaining associated primary category information from the first association relationship between the secondary category information and the primary category information;

[0052] Determine the target scope to which the primary category information belongs in the first and second scopes, including:

[0053] For each first-level category information, an associated range is obtained from the second association relationship between the first-level category information and the first range and the second range; and the obtained range is determined as the target range to which the first-level category information belongs.

[0054] The obstacle recognition method provided in this embodiment realizes the rapid and accurate conversion of the common secondary category information in the target detection results into the primary category information dedicated to autonomous driving by presetting the first association relationship and the second association relationship.

[0055] In a second aspect, the present invention provides an obstacle identification device, the device comprising:

[0056] A segmentation module, used for segmenting the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images;

[0057] A detection module, used to perform target detection processing on the two-dimensional segmented image using a two-dimensional target detection model to obtain a secondary category target detection result corresponding to the two-dimensional space;

[0058] The processing module is used to perform adaptive space conversion processing and category alignment processing on the target detection result to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space.

[0059] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the obstacle recognition method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0060] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the obstacle recognition method of the first aspect or any corresponding embodiment thereof.

[0061] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the obstacle identification method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0063] Figure 1 is a flow chart of an obstacle identification method according to an embodiment of the present invention;

[0064] Figure 2 is a flow chart of another obstacle identification method according to an embodiment of the present invention;

[0065] Figure 3 is a schematic diagram of a coordinate system according to an embodiment of the present invention;

[0066] Figure 4 is a schematic diagram of segmenting an image according to an embodiment of the present invention;

[0067] Figure 5 is a flow chart of another obstacle identification method according to an embodiment of the present invention;

[0068] Figure 6 is a flow chart of another obstacle identification method according to an embodiment of the present invention;

[0069] Figure 7 is a schematic diagram of an obstacle recognition system according to an embodiment of the present invention;

[0070] Figure 8 is a structural block diagram of an obstacle recognition device according to an embodiment of the present invention;

[0071] Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0073] Obstacle recognition is an important part of the autonomous driving process. At present, one way to realize obstacle recognition is to identify obstacles based on deep learning technology, which mainly includes data collection and annotation, model training, model deployment and other links: Among them, data collection and annotation mainly involves obtaining a large amount of image data from various sensors, and annotating the categories, locations and other information of typical obstacles (such as vehicles, pedestrians and bicycles). Model training mainly uses the collected data to train the deep learning model, and continuously optimizes the model performance by adjusting the model parameters. The model deployment link deploys the model that has passed the performance evaluation to the autonomous driving vehicle for use. However, in this method, only typical obstacles that have been labeled can be detected more accurately, and it is difficult to identify typical obstacles that are not labeled in the training data and atypical obstacles (such as billboards, road construction areas, potholes, gravel, clothing, domestic garbage, etc.). And due to the contradiction between the diversity of non-standard obstacle categories and the scarcity of relevant road data, as well as time, cost and other constraints, it is extremely difficult to expand the existing autonomous driving perception system's recognition ability for non-standard obstacles by obtaining sufficient training data and using the traditional obstacle recognition method of "data collection and annotation-model training-model deployment". At present, another implementation method of obstacle recognition is to judge the existence of obstacles based on the local height difference of each area of ​​the road under the top view. This method can only make a preliminary judgment on the existence of typical obstacles, and cannot accurately identify the categories of typical obstacles and atypical obstacles, nor can it accurately locate their position and other information. Therefore, this method has great limitations in practical applications. Based on this, the present invention provides an obstacle recognition method, which divides a two-dimensional road condition image to obtain a two-dimensional segmented image that meets the image requirements of an existing two-dimensional target detection model, and uses a two-dimensional target detection model to perform target detection processing on the segmented image to obtain a secondary category target detection result corresponding to the two-dimensional space; and performs adaptive space conversion processing and category alignment processing on the target detection result to obtain a primary category target obstacle recognition result corresponding to the three-dimensional space. Therefore, by using the two-dimensional target detection model to perform target detection processing, it is ensured that the secondary category target detection results corresponding to the two-dimensional space can include various general categories; by performing spatial conversion on the secondary category target detection results corresponding to the two-dimensional space, it is ensured that the obstacle recognition results after conversion can meet the three-dimensional space detection requirements in the process of autonomous driving; by performing category alignment processing, the conversion of the general categories of existing two-dimensional target detection to the special categories of autonomous driving is realized. In other words, without the need for new data collection, model training, and model deployment, accurate detection of various categories of obstacles in autonomous driving is achieved.

[0074] According to an embodiment of the present invention, an obstacle identification method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0075] In this embodiment, an obstacle recognition method is provided, which can be used in computer devices, such as mobile phones, tablet computers, desktop computers, servers, etc. Figure 1 is a flow chart of an obstacle identification method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0076] Step S101 , segmenting the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images.

[0077] In some embodiments, during the automatic driving process, the vehicle may collect a two-dimensional road condition image through a camera provided in the vehicle, and send an obstacle recognition request to the computer device according to the collected two-dimensional road condition image. When the computer device receives the obstacle recognition request, it obtains the two-dimensional road condition image to be processed from the obstacle recognition request, and performs segmentation processing on the two-dimensional road condition image to be processed based on an adaptive bounding box conversion method to obtain a plurality of two-dimensional segmented images.

[0078] Step S102, using a two-dimensional target detection model to perform target detection processing on the two-dimensional segmented image, and obtain a secondary category target detection result corresponding to the two-dimensional space.

[0079] Among them, the two-dimensional target detection model can be any existing target detection model, which is used to detect objects of the secondary category. The secondary category includes a general category, which contains thousands of categories, such as water cups, telephones, pens, houses, trees, trucks, cars, buses, children, elderly people, etc. The two-dimensional target detection model can be a two-dimensional target detection model for a single object, that is, each time the target detection process is performed, the most important object in the image can be detected. The two-dimensional target detection model can also be a two-dimensional target detection model for multiple objects, that is, each time the target detection process is performed, multiple objects in the image can be detected. In other words, in the obstacle detection method provided by the present invention, there is no need to perform data collection, model training and other processing, and any existing target detection model can be used.

[0080] Step S103 , adaptively perform space conversion processing and category alignment processing on the target detection result to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within the first range and the second range.

[0081] Considering that in the obstacle detection process of autonomous driving, there are usually detection requirements for three-dimensional space and special categories, wherein the special categories may include vehicles, pedestrians, bicycles, and others; the first-level category includes the special category. Based on this, the present invention performs adaptive space conversion processing and category alignment processing on the two-dimensional target detection results to obtain the target obstacle recognition results corresponding to the three-dimensional space and the first-level category. Among them, the target obstacle recognition results include obstacle recognition results within the first range and the second range. The first range may include typical obstacles, corresponding to categories such as vehicles, pedestrians, and bicycles in the special category. The second range may include atypical obstacles, corresponding to other categories in the special category. Other categories in the special category may include various general categories that cannot be aligned to special categories such as vehicles, pedestrians, and bicycles. For example, atypical obstacles such as "billboards, household garbage", etc. are general categories that cannot be aligned to special categories such as vehicles, pedestrians, and bicycles.

[0082] In the obstacle recognition method provided in this embodiment, by segmenting the two-dimensional road condition image, a two-dimensional segmented image that meets the image requirements of the existing two-dimensional target detection model is obtained, and the segmented image is processed by the two-dimensional target detection model to obtain the secondary category target detection result corresponding to the two-dimensional space; and the target detection result is adaptively processed by spatial conversion and category alignment to obtain the primary category target obstacle recognition result corresponding to the three-dimensional space. Therefore, by using the two-dimensional target detection model to perform target detection processing, it is ensured that the secondary category target detection result corresponding to the two-dimensional space can include various general categories; by performing spatial conversion on the secondary category target detection result corresponding to the two-dimensional space, it is ensured that the converted obstacle recognition result can meet the three-dimensional space detection requirements in the process of autonomous driving; by performing category alignment processing, the conversion of the general category of the existing two-dimensional target detection to the special category of autonomous driving is realized. In other words, without the need for new data collection, model training, and model deployment, accurate detection of obstacles of various categories in autonomous driving is achieved.

[0083] In this embodiment, an obstacle recognition method is provided, which can be used in the above-mentioned mobile terminals, such as mobile phones, tablet computers, desktop computers, servers, etc. Figure 2 is a flow chart of an obstacle identification method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0084] Step S201 , segmenting the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images.

[0085] In some implementations, step S201 may include the following steps S2011 to S2013:

[0086] Step S2011: construct multiple first three-dimensional bounding boxes in the three-dimensional space according to preset recognition parameters.

[0087] In order to effectively distinguish each first three-dimensional bounding box, the present invention generates a corresponding index for each first three-dimensional bounding box, and constructs the first three-dimensional bounding box according to the index. Specifically, in some embodiments, step S2011 may include the following steps a1 to a3:

[0088] Step a1: determining indexes of a plurality of first three-dimensional bounding boxes to be constructed according to preset recognition parameters.

[0089] Among them, the recognition parameters may include a first recognition range and a target size of a first three-dimensional bounding box. Accordingly, step a1 may include: initializing an initial index and determining the initial index as a current index; determining whether the current index satisfies an update condition based on the first recognition range and the target size; if the update condition is satisfied, updating the current index to obtain a new index, and determining the new index as the current index, and executing the aforementioned update condition determination operation; and repeating in this way until it is determined that the update condition is not satisfied, thereby obtaining multiple indexes of the first three-dimensional bounding boxes to be constructed.

[0090] The first recognition range may include a first sub-recognition range in the first direction and a second sub-recognition range in the second direction. The target size includes a first size corresponding to the first direction, a second size corresponding to the second direction, and a third size corresponding to the third direction. That is, the target size includes l, , ;in, The first size, For the second size, The index may include a first index value corresponding to the first direction and a second index value corresponding to the second direction. The first direction may be the x-axis direction in the three-dimensional coordinate system corresponding to the three-dimensional space; the second direction may be the y-axis direction in the three-dimensional coordinate system corresponding to the three-dimensional space; and the third direction may be the z-axis direction in the three-dimensional coordinate system corresponding to the three-dimensional space. The first sub-recognition range may be , i.e. the minimum and maximum values ​​in the x-axis direction. The second sub-recognition range can be , i.e., the minimum and maximum values ​​in the y-axis direction. i represents the first index value, j represents the second index value, and the initial index may be i=0, j=0. Correspondingly, the above-mentioned determination of whether the current index meets the update condition according to the first recognition range and the target size may include:

[0091] According to the second sub-identification range and the second size, determine whether the second index value of the current index satisfies the first sub-update condition; if the first sub-update condition is satisfied, determine that the current index satisfies the update condition; if the first sub-update condition is not satisfied, set the second index value in the current index to the initial second index value, and update the first index value in the current index to obtain a new index; according to the first sub-identification range and the first size, determine whether the first index value of the new index satisfies the second sub-update condition; if the second sub-update condition is satisfied, determine that the current index satisfies the update condition; if the second sub-update condition is not satisfied, determine that the current index does not satisfy the update condition.

[0092] Wherein, determining whether the second index value of the current index satisfies the first sub-update condition according to the second sub-identification range and the second size may include: updating the second index value of the current index to obtain a new second index value; determining the first data according to the new second index value and the second size, and determining whether the first data is located in the second sub-identification range; if the first data is located in the second sub-identification range, determining that the second index value satisfies the first sub-update condition; if the first data is not located in the second sub-identification range, determining that the second index value does not satisfy the first sub-update condition. Wherein, updating the second index value of the current index may be expressed as , that is, the second index value is sequentially increased by 1. The first data is determined according to the new second index value and the second size, and the new second index value and the second size are multiplied and the product is determined as the first data. That is, if the updated satisfy , it is determined that the second index value satisfies the first sub-update condition.

[0093] Further, the above-mentioned determination of whether the first index value of the new index satisfies the second sub-update condition according to a sub-identification range and a first size may include: updating the first index value of the new index to obtain a new first index value; determining the second data according to the new first index value and the first size, and determining whether the second data is located in the first sub-identification range; if the second data is located in the first sub-identification range, determining that the first index value of the new index satisfies the second sub-update condition; if the second data is not located in the first sub-identification range, determining that the first index value of the new index does not satisfy the second sub-update condition. Among them, the update processing of the first index value of the new index to obtain the new first index value can be expressed as , that is, the second index value is sequentially increased by 1. The second data is determined according to the new first index value and the first size, and the new second index value and the second size are multiplied and the product is determined as the second data. That is, if the updated i satisfies , it is determined that the first index value of the new index satisfies the second sub-update condition.

[0094] As an example, the first sub-recognition range may be , the second sub-recognition range can be , the first size of the target size is 1 cm, and the second size is 1 cm; the initial index is i=0, j=0. The initial index is determined as the current index, and the second index value j is updated to j=0+1=1. Since the first data 1 obtained by multiplying the updated second index value 1 by the second size is within the second sub-recognition range, the second index value satisfies the first sub-update condition, and it can be determined that the current index i=0, j=0 satisfies the update condition, and the updated index is i=0, j=1. At this time, the first update of the index is completed. Afterwards, the updated index i=0, j=1 is determined as the current index, and the second index value j is updated to j=1+1=2. Since the first data 2 obtained by multiplying the updated second index value 2 by the second size is within the second sub-recognition range, the second index value satisfies the first sub-update condition, and it can be determined that the current index i=0, j=1 satisfies the update condition, and the updated index is i=0, j=2. At this time, the second update of the index is completed. By analogy, until the current index is i=0, j=15, the second index value j is updated to j=15+1=16. Since the first data 16 obtained by multiplying the updated second index value 16 by the second size is not within the second sub-identification range, the second index value does not meet the first sub-update condition, and the second index value is set to the initial second index value 0, and the first index value is updated to i=0+1=1 to obtain a new index i=1, j=0. Since the second data 1 obtained by multiplying the first index value 1 by the first size in the new index is within the first sub-identification range, the first index value meets the second sub-update condition, and it can be determined that the current index i=0, j=15 meets the update condition, and the updated index is i=1, j=0, and another update of the index is completed. In the next update, the current index is determined to be i=1, j=0. At this time, according to the above method, it can be determined that the second index value meets the first sub-update condition, that is, the current index i=1, j=0 meets the update condition, and the updated index is i=1, j=1. By analogy, until the current index is i=1, j=15, it is determined that the second index value does not meet the first update condition. According to the above method, it can be determined that the first index value meets the first update condition, that is, the current index is i=1, j=15, which meets the update condition, and the updated index is i=2, j=0. By analogy, until the second index value of the current index does not meet the first sub-update condition, and the first index value of the current index does not meet the second sub-update condition, it is determined that the current index does not meet the update condition.

[0095] It should be noted that after each index is obtained, step a2 may be executed to determine the first world coordinates of the multiple corner points of the first three-dimensional bounding box corresponding to the index in the three-dimensional space. Alternatively, step a2 may be executed after all indexes are obtained, so as to determine the first world coordinates of the multiple corner points of the first three-dimensional bounding box corresponding to each index in step a2.

[0096] Therefore, by updating the index, the uniqueness of the index is guaranteed, thereby ensuring the accuracy of the first three-dimensional bounding box constructed based on the index.

[0097] Step a2: determining first world coordinates of multiple corner points of the first three-dimensional bounding box in the three-dimensional space according to the index.

[0098] In some embodiments, step a2 may include the following steps a21 and a22:

[0099] Step a21 : for each first three-dimensional bounding box, determine the second world coordinates of the center point of the first three-dimensional bounding box according to the target size and the index of the first three-dimensional bounding box.

[0100] In some embodiments, the coordinates of the center point of the first three-dimensional bounding box in the x-axis direction can be determined according to the following formula 1, the coordinates of the center point of the first three-dimensional bounding box in the y-axis direction can be determined according to the following formula 2, and the coordinates of the center point of the first three-dimensional bounding box in the z-axis direction can be determined according to the following formula 3.

[0101] Formula 1: ;

[0102] Formula 2: ;

[0103] Formula 3: ;

[0104] in, Represents the coordinate of the center point of the first three-dimensional bounding box in the x-axis direction, Represents the coordinate of the center point of the first three-dimensional bounding box in the y-axis direction; Represents the coordinate of the center point of the first three-dimensional bounding box in the z-axis direction; is the minimum value in the first sub-identification range; is the first index value in the index, is the first size among the target sizes; The minimum value in the second sub-identification range; is the second index value in the index; is the second size in the target size; The third dimension in the target size.

[0105] Step a22, determining first world coordinates of multiple corner points of the first three-dimensional bounding box in the three-dimensional space according to the second world coordinates and the target size.

[0106] In order to accurately construct the first three-dimensional bounding box, the first world coordinates of the eight corner points of the first three-dimensional bounding box in the three-dimensional space can be determined according to the second world coordinates and the target size. represents the first world coordinates of the eight corner points in three-dimensional space, then ,in, Represents the first of the eight corner points The first world coordinates of the eight corner points of the first three-dimensional bounding box in the three-dimensional space can be determined according to the following formula 4.

[0107] Formula 4: ;

[0108] Step a3: construct multiple first three-dimensional bounding boxes in the three-dimensional space according to the first world coordinates.

[0109] Therefore, by determining the second world coordinates of the center point of the first three-dimensional bounding box, determining the first world coordinates of the eight corner points of the first three-dimensional bounding box based on the second world coordinates and the index, and constructing the first three-dimensional bounding box according to the first world coordinates, the accuracy of the first three-dimensional bounding box is guaranteed.

[0110] Step S2012: project the first three-dimensional bounding box into the two-dimensional road condition image to obtain a plurality of first two-dimensional bounding boxes.

[0111] In some implementations, step S2012 may include the following steps b1 to b3:

[0112] Step b1: for each first three-dimensional bounding box, using a preset conversion matrix, convert each first world coordinate of the first three-dimensional bounding box into a first pixel coordinate in the two-dimensional road condition image.

[0113] like Figure 3 As shown, this embodiment involves three coordinate systems, including a three-dimensional coordinate system xyz corresponding to the three-dimensional space, a first pixel coordinate system corresponding to the two-dimensional road condition image in the two-dimensional space , the second pixel coordinate system corresponding to the segmented image in two-dimensional space .

[0114] In some implementations, the first world coordinate of the first three-dimensional bounding box may be converted to the first pixel coordinate in the two-dimensional road condition image according to the following formula 5. Formula 5:

[0115]

[0116] in, represents the first pixel coordinate of the kth corner point in the two-dimensional road condition image; Represents the coordinate value of the u axis in the first pixel coordinate, Represents the coordinate value of the v axis in the first pixel coordinate; Represents the preset transformation matrix; represents the first world coordinate of the kth corner point; Represents the x-axis coordinate value of the k-th corner point in the first world coordinates. Represents the y-axis coordinate value of the k-th corner point in the first world coordinate system. The coordinate value of the z-axis in the first world coordinates of the k-th corner point. The specific form of the preset conversion matrix can be set as needed in actual applications, and is not specifically limited in the present invention.

[0117] Step b2: determining the second pixel coordinates of the diagonal line of the corresponding first two-dimensional bounding box according to the first pixel coordinates.

[0118] Wherein, the first pixel coordinate includes a first coordinate value and a second coordinate value, the first coordinate value is the coordinate value of the u-axis, and the second coordinate value is the coordinate value of the v-axis. Accordingly, step b2 may include: determining the minimum first coordinate value and the maximum first coordinate value among the first coordinate values; determining the minimum second coordinate value and the maximum second coordinate value among the second coordinate values; determining the minimum first coordinate value and the minimum second coordinate value as the second pixel coordinate of the first vertex of the diagonal line of the first two-dimensional bounding box; determining the maximum first coordinate value and the maximum second coordinate value as the second pixel coordinate of the second vertex of the diagonal line of the first two-dimensional bounding box.

[0119] That is, the second pixel coordinate of the diagonal of the first two-dimensional bounding box is expressed as , then we have the following formula six:

[0120] Formula 6: ;

[0121] in, represents the second pixel coordinate of the diagonal of the first two-dimensional bounding box, represents the first vertex of the diagonal of the first 2D bounding box, a second vertex representing a diagonal of the first two-dimensional bounding box; Represents the u-axis coordinate value of the first vertex, Represents the v-axis coordinate value of the first vertex; Represents the u-axis coordinate value of the second vertex, Indicates the v-axis coordinate value of the second vertex; Indicates the minimum first coordinate value, that is, the minimum coordinate value of the u-axis; Indicates the minimum second coordinate value, that is, the minimum coordinate value of the v-axis; Indicates the maximum first coordinate value, that is, the maximum coordinate value of the u-axis; Indicates the maximum second coordinate value, that is, the maximum coordinate value of the v-axis.

[0122] Step b3: generating a first two-dimensional bounding box according to the second pixel coordinates.

[0123] It is understandable that in a two-dimensional space, a unique two-dimensional bounding box can be determined according to the coordinates of the diagonal line. Therefore, a corresponding first two-dimensional bounding box can be generated according to each second pixel coordinate. Thus, by determining the second pixel coordinates of the diagonal line of the first two-dimensional bounding box and generating the first two-dimensional bounding box based on the second pixel coordinates, it is ensured that the obtained first two-dimensional bounding box complies with the camera perspective principle.

[0124] Step S2013: dividing the two-dimensional road condition image into a plurality of two-dimensional segmented images according to the first two-dimensional boundary frame.

[0125] The schematic diagram of the segmentation process of the above two-dimensional segmented image is as follows Figure 4 As shown, for the two first three-dimensional bounding boxes at a far distance and a near distance in the three-dimensional space, they are first mapped to the pixel coordinate system corresponding to the two-dimensional road condition image, and then a first two-dimensional bounding box that conforms to the camera perspective principle is generated. Finally, a segmentation process is performed according to the first two-dimensional bounding box to obtain a corresponding two-dimensional segmented image.

[0126] Step S202: the target detection model performs target detection processing on the two-dimensional segmented image to obtain a secondary category target detection result corresponding to the two-dimensional space.

[0127] Step S203, the measurement results are subjected to adaptive space conversion processing and category alignment processing to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within the first range and the second range.

[0128] For details of step S202 and step S203, see Figure 1 Step S102 and step S103 of the illustrated embodiment will not be described in detail here.

[0129] In this embodiment, the target size in the recognition parameters matches the image requirements corresponding to the two-dimensional target detection model. For example, if the two-dimensional target detection model is a single-object target detection model, the target size can be set smaller accordingly; if the two-dimensional target detection model is a multi-object target detection model, the target size can be set larger accordingly. Thus, by constructing multiple first three-dimensional bounding boxes in three-dimensional space according to preset recognition parameters, and projecting the first three-dimensional bounding boxes into the two-dimensional road condition image, multiple first two-dimensional bounding boxes are obtained; and, according to the first two-dimensional bounding boxes, the two-dimensional road condition image is segmented into multiple two-dimensional segmented images. It can ensure that the two-dimensional segmented images meet the image requirements corresponding to the two-dimensional target detection model, and realize accurate segmentation of the two-dimensional segmented images.

[0130] In this embodiment, an obstacle recognition method is provided, which can be used in the above-mentioned mobile terminal, such as a mobile phone, a tablet computer, etc. Figure 5 is a flow chart of an obstacle identification method according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0131] Step S501 , segmenting the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images.

[0132] The specific implementation of step S501 can refer to the relevant description in the previous text, and the repeated parts will not be repeated here.

[0133] Step S502, using a two-dimensional object detection model to perform object detection processing on each two-dimensional segmented image, to obtain a secondary category object detection result corresponding to the two-dimensional space.

[0134] In some implementations, step S502 may include the following steps S5021 to S5023:

[0135] Step S5021, performing size alignment processing on each two-dimensional segmented image to obtain a target two-dimensional segmented image;

[0136] In order to make each two-dimensional segmented graph meet the size requirements of the two-dimensional target detection model for the input image, in this embodiment, each two-dimensional segmented image is size-aligned. Specifically, step S5021 may include: generating an initial image according to a preset size; determining a first size of the two-dimensional segmented image; determining a target color value of each pixel of the initial image according to the first size, the preset size, and the color value of each pixel of the two-dimensional segmented image; generating a target two-dimensional segmented image according to the initial image and the target color value.

[0137] More specifically, for each two-dimensional segmented image, an initial image of a preset size with empty color values ​​of each pixel is generated; the first size of the two-dimensional segmented image is determined according to the second pixel coordinate of the diagonal of the first two-dimensional boundary box of the two-dimensional switching image; the target color value of each pixel of the initial image is determined according to the following formula 7 based on the first size, the preset size and the color value of each pixel of the two-dimensional segmented image; the target color value is filled into the initial image to obtain the target two-dimensional segmented image. Among them, the target segmented image is represented as ; The two-dimensional segmented image is represented as ; The preset size is expressed as , that is, the initial image includes pixel points; the pixel position in the target segmentation image is expressed as ; In the target segmentation image, the pixel position The corresponding color value, that is, the R, G, and B three-channel value is expressed as ; The first dimension of the two-dimensional segmented image is expressed as ; 2D segmented image The pixel positions of ; Pixel position in the 2D segmented image The corresponding color value, that is, the R, G, and B three-channel value is expressed as , then we have the following formula seven.

[0138] Formula 7: ;

[0139] Among them, floor is the floor function, which means rounding down.

[0140] Step S5022, dividing the target two-dimensional segmented image into multiple image sets;

[0141] The number of images included in the target image set can be preset, and the target two-dimensional segmented image is randomly divided into multiple image sets according to the number of images. It should be noted that when the target two-dimensional segmented image is not an integer multiple of the number of images, the preset images can be added to the image set with insufficient number of images.

[0142] Step S5023, for each image set, use the two-dimensional target detection model to perform target detection processing on each target two-dimensional segmented image in the image set, and obtain the secondary category target detection result corresponding to each target two-dimensional segmented image in the image set in the two-dimensional space.

[0143] Specifically, for each image set, the two-dimensional segmented images of each target in the image set are input into the two-dimensional target detection model for target detection processing, and the secondary category target detection results corresponding to the two-dimensional segmented images of each target in the image set in the two-dimensional space are obtained.

[0144] Taking the two-dimensional target detection model as a single object recognition model for explanation, the target two-dimensional segmented image includes at least one object, and the target object is the most important object among the objects included in the target two-dimensional segmented image. The object can be any entity, such as a truck, a cat, a house, a big tree, etc. For example, a target two-dimensional segmented image includes a complete truck, a corner of a house, and some branches and leaves of a big tree. Then the complete truck is the target object included in the target two-dimensional segmented image. The target detection result includes the third pixel coordinate of the diagonal of the second two-dimensional bounding box of the target object in the target two-dimensional segmented image, and the secondary category information to which the target object belongs. The secondary category information includes the aforementioned general categories. The diagonal of the second two-dimensional bounding box can be expressed as , the third pixel coordinate of the diagonal of the second 2D bounding box can be expressed as .in, represents the first vertex of the diagonal of the second 2D bounding box, represents the third pixel coordinate of the first vertex; represents the second vertex of the diagonal of the second 2D bounding box, Indicates the third pixel coordinate of the second vertex.

[0145] Step S503 , adaptively perform space conversion processing and category alignment processing on the target detection result to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within the first range and the second range.

[0146] In this embodiment, during the target detection process, by aligning the size of the two-dimensional segmented images, it is ensured that the obtained target two-dimensional segmented images can adapt to the size requirements of the two-dimensional target detection model for the input image, thereby performing effective target detection. By dividing each target two-dimensional segmented image into multiple image sets, each target two-dimensional segmented image in the corresponding image set is subjected to parallel target detection processing during each target detection process, which greatly improves the efficiency of target detection.

[0147] In this embodiment, an obstacle recognition method is provided, which can be used in the above-mentioned mobile terminal, such as a mobile phone, a tablet computer, etc. Figure 6 is a flow chart of an obstacle identification method according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0148] Step S601, segmenting the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images;

[0149] Step S602, using a two-dimensional object detection model to perform object detection processing on the two-dimensional segmented image to obtain a secondary category object detection result corresponding to the two-dimensional space;

[0150] For the specific implementation of step S601 and step S602, please refer to the relevant description above, and the repeated parts will not be repeated here.

[0151] Step S603 , adaptively perform space conversion processing and category alignment processing on the target detection result to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within the first range and the second range.

[0152] In some implementations, step S603 may include the following steps S6031 to S6034:

[0153] Step S6031, obtaining point cloud data corresponding to the two-dimensional road condition image;

[0154] Specifically, while the vehicle's camera captures a two-dimensional road image, the laser radar can also collect N point cloud data corresponding to the two-dimensional road image. The point cloud data can be represented as , where N is an integer greater than 1. The fourth world coordinate of the nth point cloud data in the three-dimensional space can be expressed as .

[0155] Step S6032: Determine the third world coordinates of the diagonal of the second three-dimensional detection box of the target object in the three-dimensional space according to the third pixel coordinates in the secondary category target detection result and the acquired point cloud data.

[0156] In some implementations, step S6032 may include the following steps c1 to c3:

[0157] Step c1, performing size restoration processing on the second two-dimensional bounding box according to the third pixel coordinates in the secondary category target detection result to obtain the fourth pixel coordinates of the diagonal of the second two-dimensional bounding box in the two-dimensional segmented image.

[0158] Specifically, for each secondary category target detection result, according to the third pixel coordinates of the diagonal of the second two-dimensional bounding box of the target object included in the secondary category target detection result, the second two-dimensional bounding box is resized according to the following formula eight to obtain the fourth pixel coordinates of the diagonal of the second two-dimensional bounding box in the segmented image.

[0159] Formula 8:

[0160] ;

[0161] in, represents the diagonal line of the second two-dimensional bounding box after size restoration in the two-dimensional segmented image; Represents diagonal The first vertex of A fourth pixel coordinate representing the first vertex; Represents diagonal The second vertex of A fourth pixel coordinate representing the second vertex; Represents the floor function, rounded down. For the meaning of other symbols, please refer to the relevant descriptions above.

[0162] Thus, restoration of the second two-dimensional bounding box from the target two-dimensional segmented image to the original two-dimensional segmented image is achieved.

[0163] Step c2: performing translation processing on the fourth pixel coordinate according to the second pixel coordinate of the diagonal line of the first two-dimensional bounding box to obtain the fifth pixel coordinate of the diagonal line of the second two-dimensional bounding box in the two-dimensional road condition image.

[0164] Specifically, based on the following formula 9, the fourth pixel coordinate can be translated according to the second pixel coordinate of the diagonal of the first two-dimensional bounding box to obtain the fifth pixel coordinate of the diagonal of the second two-dimensional bounding box in the two-dimensional road condition image.

[0165] Formula 9: ;

[0166] in, represents the diagonal line of the second two-dimensional bounding box after translation in the two-dimensional road condition image, Represents diagonal The first vertex of Represents diagonal The meaning of other symbols can be found in the previous description, and the repeated parts will not be repeated here.

[0167] Step c3, determining the third world coordinates of the diagonal of the second three-dimensional detection frame of the obstacle in the three-dimensional space according to the fifth pixel coordinates and the point cloud data.

[0168] Specifically, for the fourth world coordinate of each point cloud data, the fourth world coordinate is converted into a sixth pixel coordinate in the two-dimensional road condition image using a preset transformation matrix; the candidate sixth pixel coordinates located within the second identification range corresponding to the fifth pixel coordinate are determined in the sixth pixel coordinates; the target sixth pixel coordinates that meet the preset conditions in the candidate sixth pixel coordinates are identified; and based on the fourth world coordinates corresponding to the target sixth pixel coordinates, the third world coordinates of the diagonal of the second three-dimensional detection frame of the obstacle in the three-dimensional space are determined.

[0169] More specifically, for each fourth world coordinate, the fourth world coordinate is converted into the sixth pixel coordinate in the two-dimensional road condition image using a preset conversion matrix based on the following formula 10; the sixth pixel coordinate is matched with the second recognition range corresponding to the fifth pixel coordinate, and if it is determined that the sixth pixel coordinate is within the second recognition range corresponding to the fifth pixel coordinate, the sixth pixel coordinate is determined as a candidate sixth pixel coordinate; and the target sixth pixel coordinate that meets the preset conditions in the candidate sixth pixel coordinate is identified; according to the fourth world coordinate corresponding to the target sixth pixel coordinate, the third world coordinate of the diagonal of the second three-dimensional detection frame of the obstacle in the three-dimensional space is determined. Formula 10:

[0170]

[0171] in, Representing point cloud data The sixth pixel coordinate in the two-dimensional road condition image, represents the u-axis coordinate value of the sixth pixel coordinate, Represents the v-axis coordinate value of the sixth pixel coordinate. The meanings of other symbols can be found in the above descriptions, and the repeated parts will not be repeated here.

[0172] Furthermore, the above-mentioned identification of the target sixth pixel coordinates that meet the preset conditions in the candidate sixth pixel coordinates may include: determining the first standard deviation of each candidate sixth pixel coordinate; for each candidate sixth pixel coordinate, determining the second standard deviation of each candidate sixth pixel coordinate other than the candidate sixth pixel coordinate; if it is determined that the difference between the first standard deviation and the second standard deviation is less than the difference threshold, then determining the candidate sixth pixel coordinate as the target sixth pixel coordinate that meets the preset conditions. The method for determining the standard deviation may refer to the relevant technology, and will not be described in detail in the present invention.

[0173] Step S6033, performing category alignment processing on the secondary category information in the secondary category target detection result to obtain primary category information.

[0174] Among them, the secondary category information in the target detection result may be the aforementioned passing category information, and the primary category information may be dedicated category information for autonomous driving. In some embodiments, the primary category information may include categories such as vehicles, pedestrians, bicycles, and others. In order to achieve accurate category alignment, the first association relationship between the secondary category information and the primary category information may be preset. Accordingly, step S6033 may include: for each secondary category information, obtaining the associated primary category information from the first association relationship between the secondary category information and the primary category information.

[0175] In some embodiments, the first association relationship includes secondary category information "truck, car, jeep, passenger car, van", etc., which are associated with primary category information "vehicle"; secondary category information "children, elderly, middle-aged people", etc., which are associated with primary category information "pedestrian"; secondary category information "children's bicycle, tandem bicycle", etc., which are associated with primary category information "bicycle"; and secondary category information other than "vehicle", "pedestrian", and "bicycle" (such as water cup, big tree, cat, billboard, domestic garbage, pothole, etc.) are all associated with primary category information "other". Accordingly, when the secondary category information in a target side result is a truck, the primary category information obtained by category alignment is a vehicle; when the secondary category information in a target side result is a child, the primary category information obtained by category alignment is a pedestrian; when the secondary category information in a target side result is a billboard, the primary category information obtained by category alignment is other.

[0176] It can be seen that the primary category information in the present invention includes both typical obstacles such as vehicles and pedestrians, and non-typical obstacles such as billboards and domestic garbage, thereby achieving accurate identification of obstacles of various categories.

[0177] Step S6034, generating a first-level category target obstacle recognition result corresponding to the three-dimensional space according to the third world coordinates and the first-level category information.

[0178] Specifically, for each first-level category information, determine the target range to which the first-level category information belongs in the first range and the second range; if the target range is the first range, attribute the first-level category information and the third world coordinates corresponding to the first-level category information to the first recognition result set; if the target range is the second range, attribute the first-level category information and the third world coordinates corresponding to the first-level category information to the second recognition result set. Determine the first recognition result set and the second recognition result set as the first-level category target obstacle recognition results corresponding to the three-dimensional space.

[0179] In some implementations, in order to accurately determine the target range, a second association relationship between the primary category information and the first range and the second range may be pre-set. Accordingly, the above-mentioned determination of the target range to which the primary category information belongs in the first range and the second range may include: for each primary category information, obtaining an associated range from the second association relationship between the primary category information and the first range and the second range; and determining the obtained range as the target range to which the primary category information belongs.

[0180] In some embodiments, the second association relationship may include: the first-level category information "vehicle, pedestrian, bicycle" is associated with the "first range" and the first-level category information "other" is associated with the "second range". Accordingly, when a certain first-level category information is a pedestrian, the target range to which the first-level category information belongs is determined to be the first range; when a certain first-level category information is other, the target range to which the first-level category information belongs is determined to be the second range. In other words, the first recognition result set includes the recognition results of each typical obstacle, and the second recognition result set includes the recognition results of each atypical obstacle.

[0181] In this embodiment, based on the point cloud data corresponding to the two-dimensional road condition image, the second two-dimensional bounding box of the target object in the target detection result is converted into the three-dimensional space corresponding to the automatic driving. By presetting the first association relationship and the second association relationship, the conversion of the common secondary category information in the target detection result into the primary category information dedicated to the automatic driving is realized. It can be seen that only the existing two-dimensional target detection model is used, without the need for data collection, model training and other operations, and the accurate recognition of the category, position, size, etc. of obstacles in the automatic driving process is realized.

[0182] In some embodiments, an obstacle recognition system may be deployed in the computer device, such as Figure 7 As shown, the system includes an adaptive image segmentation subsystem, a segmented image recognition subsystem, a domain-adaptive space transformation and a category alignment subsystem.

[0183] Among them, the adaptive image segmentation subsystem may include:

[0184] The three-dimensional bounding box construction module is used to obtain a first three-dimensional bounding box set.

[0185] The index updating module is used to obtain the index of the first three-dimensional bounding box, and send an index updating completion signal to the segmentation module after obtaining each index.

[0186] The adaptive pixel bounding box generation module is used to generate a first two-dimensional bounding box corresponding to the corresponding first three-dimensional bounding box according to the index.

[0187] The segmentation module is used to obtain the corresponding two-dimensional segmented image according to the updated index when receiving the index update completion signal sent by the index update module; save the two-dimensional segmented image and the index correspondingly, and send a segmentation completion message to the index update module.

[0188] The adaptive image segmentation subsystem performs data processing in the above manner and outputs a two-dimensional segmentation image pool.

[0189] The segmented image recognition subsystem includes:

[0190] The segmented image reading module is used to read the index and its corresponding two-dimensional segmented image from the two-dimensional segmented image pool.

[0191] The size alignment module is used to perform size alignment processing on each two-dimensional segmented image read by the segmented image reading module to obtain a set corresponding to the target two-dimensional segmented image.

[0192] A set partitioning module, used for partitioning the target two-dimensional segmented image into multiple image sets;

[0193] The general category target detection module is used to perform target detection processing on the target two-dimensional segmented images in the image set to obtain a set of secondary category target detection results corresponding to the two-dimensional space.

[0194] The size restoration module is used to restore the size of the second two-dimensional bounding box in the set of target detection results to obtain a set of recognition results after size restoration.

[0195] The segmented image recognition subsystem performs data processing in the above manner and outputs the detection result after size restoration in the pixel coordinate system corresponding to the two-dimensional segmented image.

[0196] Domain adaptation space transformation and category alignment subsystem, including:

[0197] A pixel coordinate domain conversion module, used to obtain a set corresponding to the fifth pixel coordinates of the diagonal line of each second two-dimensional boundary box in the two-dimensional road condition image according to the detection result after size restoration;

[0198] The spatial domain conversion module is used to convert the set to obtain a set corresponding to the third world coordinates of the diagonal of the second three-dimensional detection frame of each obstacle in the three-dimensional space.

[0199] The category corresponding module is used to obtain a first recognition result set corresponding to the first range and a second recognition result set corresponding to the second range.

[0200] After that, the traditional path planning and decision-making algorithm for autonomous driving can be called to perform subsequent task processing based on the first set of recognition results; and the special condition emergency obstacle avoidance algorithm can be called to perform subsequent task processing based on the second set of recognition results.

[0201] It should be pointed out that the specific operation process of each module in the obstacle recognition system can be found in the relevant description above, and the repeated parts will not be repeated here.

[0202] The obstacle recognition system in this embodiment uses a two-dimensional target detection model to perform target detection processing, ensuring that the secondary category target detection results corresponding to the two-dimensional space can include various general categories; by performing spatial conversion on the secondary category target detection results corresponding to the two-dimensional space, it is ensured that the converted obstacle recognition results can meet the three-dimensional space detection requirements in the process of autonomous driving; by performing category alignment processing, the conversion of the general category of existing two-dimensional target detection to the special category of autonomous driving is realized. In other words, accurate detection of various categories of obstacles in autonomous driving is achieved without the need for new data collection, model training, and model deployment.

[0203] In this embodiment, an obstacle identification device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0204] This embodiment provides an obstacle recognition device, such as Figure 8 As shown, including:

[0205] A segmentation module 801 is used to segment the two-dimensional road condition image to be processed to obtain a plurality of two-dimensional segmented images;

[0206] The detection module 802 is used to perform target detection processing on the two-dimensional segmented image using a two-dimensional target detection model to obtain a secondary category target detection result corresponding to the two-dimensional space;

[0207] The processing module 803 is used to perform adaptive space conversion processing and category alignment processing on the target detection result to obtain the first-level category target obstacle recognition result corresponding to the three-dimensional space.

[0208] In some optional implementations, the segmentation module 801 includes:

[0209] A construction unit, configured to construct a plurality of first three-dimensional bounding boxes in a three-dimensional space according to preset recognition parameters;

[0210] A projection unit, configured to project the first three-dimensional bounding box into the two-dimensional road condition image to obtain a plurality of first two-dimensional bounding boxes;

[0211] The segmentation unit is used to segment the two-dimensional road condition image into a plurality of two-dimensional segmented images according to the first two-dimensional boundary frame.

[0212] In some optional embodiments, the building block includes:

[0213] A first determining subunit, configured to determine indexes of a plurality of first three-dimensional bounding boxes to be constructed according to preset recognition parameters;

[0214] A second determining subunit, configured to determine first world coordinates of a plurality of corner points of the first three-dimensional bounding box in the three-dimensional space according to the index;

[0215] The construction subunit is used to construct a plurality of first three-dimensional bounding boxes in the three-dimensional space according to the first world coordinates.

[0216] In some optional implementations, the recognition parameters include a first recognition range and a target size of a first three-dimensional bounding box; correspondingly, the first determination subunit is specifically configured to:

[0217] Initialize the initial index and determine the initial index as the current index;

[0218] Determining whether the current index satisfies an update condition according to the first recognition range and the target size;

[0219] If the update condition is met, the current index is updated to obtain a new index, and the new index is determined as the current index, and the update condition determination operation is performed;

[0220] This cycle is repeated until it is determined that the update condition is not satisfied, and the indexes of multiple first three-dimensional bounding boxes to be constructed are obtained.

[0221] In some optional implementations, the second determining subunit is specifically configured to:

[0222] For each first three-dimensional bounding box, determine a second world coordinate of a center point of the first three-dimensional bounding box according to the target size and the index of the first three-dimensional bounding box;

[0223] According to the second world coordinates and the target size, first world coordinates of multiple corner points of the first three-dimensional bounding box in the three-dimensional space are determined.

[0224] In some optional implementations, the first identification range includes a first sub-identification range in the first direction and a second sub-identification range in the second direction; the target size includes a first size corresponding to the first direction and a second size corresponding to the second direction; the index includes a first index value corresponding to the first direction and a second index value corresponding to the second direction; correspondingly, the first determination subunit is further configured to include:

[0225] Determine, according to the second sub-identification range and the second size, whether the second index value of the current index satisfies the first sub-update condition;

[0226] If the first sub-update condition is met, it is determined that the current index meets the update condition; if the first sub-update condition is not met, the second index value in the current index is set to the initial second index value, and the first index value in the current index is updated to obtain a new index;

[0227] determining, according to a sub-identification range and a first size, whether a first index value of a new index satisfies a second sub-update condition;

[0228] If the second sub-update condition is satisfied, it is determined that the current index satisfies the update condition; if the second sub-update condition is not satisfied, it is determined that the current index does not satisfy the update condition.

[0229] In some optional implementations, according to the second sub-identification range and the second size, the first determining subunit is further configured to include:

[0230] Updating the second index value of the current index to obtain a new second index value;

[0231] determining the first data according to the new second index value and the second size, and determining whether the first data is within the second sub-identification range;

[0232] If the first data is within the second sub-identification range, determining that the second index value satisfies the first sub-update condition;

[0233] If the first data is not located within the second sub-identification range, it is determined that the second index value does not satisfy the first sub-update condition.

[0234] In some optional implementations, the first determining subunit is further specifically configured to:

[0235] Updating the first index value of the new index to obtain a new first index value;

[0236] determining second data according to the new first index value and the first size, and determining whether the second data is located within the first sub-identification range;

[0237] If the second data is within the first sub-identification range, determining that the first index value of the new index satisfies the second sub-update condition;

[0238] If the second data is not located within the first sub-identification range, it is determined that the first index value of the new index does not satisfy the second sub-update condition.

[0239] In some optional embodiments, the projection unit includes:

[0240] A conversion subunit, for converting each first three-dimensional bounding box into a first pixel coordinate in the two-dimensional road condition image by using a preset conversion matrix for each first three-dimensional bounding box;

[0241] A third determining subunit, configured to determine, according to the first pixel coordinates, a second pixel coordinate of a diagonal line of the corresponding first two-dimensional bounding box;

[0242] The generating subunit is used to generate a first two-dimensional bounding box according to the second pixel coordinates.

[0243] In some optional implementations, the first pixel coordinate includes a first coordinate value and a second coordinate value; and the third determining subunit is specifically configured to:

[0244] Determine a minimum first coordinate value and a maximum first coordinate value among the first coordinate values;

[0245] Determine a minimum second coordinate value and a maximum second coordinate value among the second coordinate values;

[0246] Determine the minimum first coordinate value and the minimum second coordinate value as the second pixel coordinate of the first vertex of the diagonal line of the first two-dimensional bounding box;

[0247] The maximum first coordinate value and the maximum second coordinate value are determined as the second pixel coordinates of the second vertex of the diagonal line of the first two-dimensional bounding box.

[0248] In some optional implementations, the detection module 802 includes:

[0249] An alignment unit, used for performing size alignment processing on the two-dimensional segmented image to obtain a target two-dimensional segmented image;

[0250] A division unit, used for dividing the target two-dimensional segmented image into a plurality of image sets;

[0251] The detection unit is used to perform target detection processing on each target two-dimensional segmented image in the image set using a two-dimensional target detection model for each image set, and obtain the secondary category target detection result corresponding to each target two-dimensional segmented image in the image set in the two-dimensional space.

[0252] In some optional implementations, the alignment unit is specifically used to:

[0253] Generate an initial image according to the preset size;

[0254] Determine a first size of the two-dimensional segmented image;

[0255] Determine a target color value of each pixel of the initial image according to the first size, the preset size, and the color value of each pixel of the two-dimensional segmented image;

[0256] Generate a two-dimensional segmented image based on the initial image and the target color value.

[0257] In some optional implementations, the target detection result includes the third pixel coordinate of the diagonal of the second two-dimensional bounding box of the target object and the secondary category information to which the target object belongs, and the target object is an object in the two-dimensional segmented image. Correspondingly, the processing module 803 includes:

[0258] An acquisition unit, used for acquiring point cloud data corresponding to the two-dimensional road condition image;

[0259] A determination unit, configured to determine a third world coordinate of a diagonal line of a second three-dimensional detection frame of the target object in the three-dimensional space according to the third pixel coordinates and the point cloud data;

[0260] An alignment unit, used for performing category alignment processing on the secondary category information to obtain primary category information;

[0261] The generating unit is used to generate the first-level category target obstacle recognition result corresponding to the three-dimensional space according to the third world coordinates and the first-level category information.

[0262] In some optional implementations, the determining unit includes:

[0263] a restoration subunit, configured to perform size restoration processing on the second two-dimensional bounding box according to the third pixel coordinates, to obtain fourth pixel coordinates of a diagonal line of the second two-dimensional bounding box in the two-dimensional segmented image;

[0264] A translation subunit, configured to translate the fourth pixel coordinate according to the second pixel coordinate of the diagonal line of the first two-dimensional bounding box to obtain the fifth pixel coordinate of the diagonal line of the second two-dimensional bounding box in the two-dimensional road condition image;

[0265] The fourth determining subunit is used to determine the third world coordinates of the diagonal of the second three-dimensional detection box of the obstacle in the three-dimensional space according to the fifth pixel coordinates and the point cloud data.

[0266] In some optional implementations, the fourth determining subunit is specifically configured to:

[0267] For each fourth world coordinate, convert the fourth world coordinate into a sixth pixel coordinate in the two-dimensional road condition image using a preset conversion matrix;

[0268] determining, among the sixth pixel coordinates, candidate sixth pixel coordinates that are within the second identification range corresponding to the fifth pixel coordinate;

[0269] Identifying a target sixth pixel coordinate that satisfies a preset condition among the candidate sixth pixel coordinates;

[0270] According to the fourth world coordinate corresponding to the sixth pixel coordinate of the target, the third world coordinate of the diagonal of the second three-dimensional detection frame of the obstacle in the three-dimensional space is determined.

[0271] In some optional implementations, the fourth determining subunit is further specifically configured to:

[0272] Determining a first standard deviation of each candidate sixth pixel coordinate;

[0273] For each candidate sixth pixel coordinate, determining a second standard deviation of each candidate sixth pixel coordinate other than the candidate sixth pixel coordinate;

[0274] If it is determined that the difference value between the first standard deviation and the second standard deviation is less than the difference threshold, the candidate sixth pixel coordinate is determined as the target sixth pixel coordinate that meets the preset condition.

[0275] In some optional implementations, the generating unit is specifically used for:

[0276] For each first-level category information, determine the target range to which the first-level category information belongs in the first range and the second range;

[0277] If the target range is the first range, the first-level category information and the third world coordinates corresponding to the first-level category information are attributed to the first recognition result set;

[0278] If the target range is the second range, the primary category information and the third world coordinates corresponding to the primary category information are attributed to the second recognition result set.

[0279] The first recognition result set and the second recognition result set are determined as the first-level category target obstacle recognition results corresponding to the three-dimensional space.

[0280] In some optional implementations, the alignment unit is specifically used to:

[0281] For each secondary category information, obtaining associated primary category information from the first association relationship between the secondary category information and the primary category information;

[0282] Determine the target scope to which the primary category information belongs in the first and second scopes, including:

[0283] For each first-level category information, an associated range is obtained from the second association relationship between the first-level category information and the first range and the second range; and the obtained range is determined as the target range to which the first-level category information belongs.

[0284] The obstacle recognition device provided in this embodiment obtains a two-dimensional segmented image that meets the image requirements of the existing two-dimensional target detection model by segmenting the two-dimensional road condition image, and uses the two-dimensional target detection model to perform target detection processing on the segmented image to obtain the secondary category target detection result corresponding to the two-dimensional space; and performs adaptive spatial conversion processing and category alignment processing on the target detection result to obtain the primary category target obstacle recognition result corresponding to the three-dimensional space. Therefore, by using the two-dimensional target detection model to perform target detection processing, it is ensured that the secondary category target detection result corresponding to the two-dimensional space can include various general categories; by performing spatial conversion on the secondary category target detection result corresponding to the two-dimensional space, it is ensured that the converted obstacle recognition result can meet the three-dimensional space detection requirements in the process of autonomous driving; by performing category alignment processing, the conversion of the general category of the existing two-dimensional target detection to the special category of autonomous driving is realized. In other words, without the need for new data collection, model training, and model deployment, accurate detection of various categories of obstacles in autonomous driving is achieved.

[0285] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0286] The obstacle recognition device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0287] The embodiment of the present invention also provides a computer device having the above Figure 8 The obstacle recognition device shown.

[0288] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.

[0289] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0290] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0291] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0292] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0293] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0294] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0295] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0296] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0297] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. An obstacle recognition method, It is characterized in that The method comprises: According to a preset first recognition range and target sizes of a plurality of first three-dimensional bounding boxes to be constructed, an initial index is updated to obtain an index of each of the first three-dimensional bounding boxes; constructing the first three-dimensional bounding box in three-dimensional space according to the index; Constructing a plurality of first three-dimensional bounding boxes in the three-dimensional space according to preset recognition parameters, and segmenting the two-dimensional road condition image to be processed according to the first three-dimensional bounding boxes to obtain a plurality of two-dimensional segmented images; The two-dimensional segmented image is subjected to target detection processing by using a two-dimensional target detection model to obtain a secondary category target detection result corresponding to the two-dimensional space, wherein the two-dimensional segmented image is subjected to target detection processing by using a two-dimensional target detection model to obtain a secondary category target detection result corresponding to the two-dimensional space, including: Performing size alignment processing on each two-dimensional segmented image to obtain a target two-dimensional segmented image; Presetting the number of images included in the target image set, and randomly dividing the target two-dimensional segmented image into a plurality of image sets according to the number of images; Inputting each of the two-dimensional segmented images into a two-dimensional target detection model for target detection processing, and obtaining a secondary category target detection result corresponding to each of the two-dimensional segmented images in a two-dimensional space; The target detection result is adaptively processed by space conversion and category alignment to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space; the target obstacle recognition result includes obstacle recognition results within the first range and the second range.

2. The method according to claim 1, It is characterized in that The two-dimensional road condition image to be processed is segmented according to the first three-dimensional boundary frame to obtain a plurality of two-dimensional segmented images, including: Projecting the first three-dimensional bounding box onto the two-dimensional road condition image to obtain a plurality of first two-dimensional bounding boxes; The two-dimensional road condition image is segmented into a plurality of two-dimensional segmented images according to the first two-dimensional boundary frame.

3. The method according to claim 1, It is characterized in that The step of constructing the first three-dimensional bounding box in the three-dimensional space according to the index includes: Determine, according to the index, first world coordinates of a plurality of corner points of the first three-dimensional bounding box in the three-dimensional space; A plurality of first three-dimensional bounding boxes are constructed in the three-dimensional space according to the first world coordinates.

4. The method according to claim 3, It is characterized in that The updating process of the initial index according to the preset first recognition range and the target sizes of the plurality of first three-dimensional bounding boxes to be constructed to obtain the index of each of the first three-dimensional bounding boxes includes: Initializing an initial index, and determining the initial index as a current index; Determining whether the current index satisfies an update condition according to the first recognition range and the target size; If the update condition is met, the current index is updated to obtain a new index, the new index is determined as the current index, and the determination operation of the update condition is performed; This cycle is repeated until it is determined that the update condition is not satisfied, and the index of each of the first three-dimensional bounding boxes is obtained.

5. The method according to claim 4, It is characterized in that Determining first world coordinates of a plurality of corner points of the first three-dimensional bounding box in the three-dimensional space according to the index includes: For each of the first three-dimensional bounding boxes, determining a second world coordinate of a center point of the first three-dimensional bounding box according to the target size and an index of the first three-dimensional bounding box; The first world coordinates of the plurality of corner points of the first three-dimensional bounding box in the three-dimensional space are determined according to the second world coordinates and the target size.

6. The method according to claim 4, It is characterized in that The first recognition range includes a first sub-recognition range in a first direction and a second sub-recognition range in a second direction; the target size includes a first size corresponding to the first direction and a second size corresponding to the second direction; the index includes a first index value corresponding to the first direction and a second index value corresponding to the second direction; and determining whether the current index satisfies an update condition according to the first recognition range and the target size includes: determining, according to the second sub-identification range and the second size, whether the second index value of the current index satisfies a first sub-update condition; If the first sub-update condition is satisfied, it is determined that the current index satisfies the update condition; if the first sub-update condition is not satisfied, the second index value in the current index is set to the initial second index value, and the first index value in the current index is updated to obtain a new index; determining, according to the first sub-identification range and the first size, whether a first index value of the new index satisfies a second sub-update condition; If the second sub-update condition is satisfied, it is determined that the current index satisfies the update condition; if the second sub-update condition is not satisfied, it is determined that the current index does not satisfy the update condition.

7. The method according to claim 6, It is characterized in that The determining, according to the second sub-identification range and the second size, whether the second index value of the current index satisfies the first sub-update condition includes: Updating the second index value of the current index to obtain a new second index value; determining first data according to the new second index value and the second size, and determining whether the first data is located within the second sub-identification range; If the first data is within the second sub-identification range, determining that the second index value satisfies the first sub-update condition; If the first data is not within the second sub-identification range, it is determined that the second index value does not satisfy the first sub-update condition.

8. The method according to claim 6, It is characterized in that The determining, according to the sub-identification range and the first size, whether the first index value of the new index satisfies the second sub-update condition includes: Updating the first index value of the new index to obtain a new first index value; determining second data according to the new first index value and the first size, and determining whether the second data is located within the first sub-identification range; If the second data is within the first sub-identification range, determining that the first index value of the new index satisfies the second sub-update condition; If the second data is not within the first sub-identification range, it is determined that the first index value of the new index does not satisfy the second sub-update condition.

9. The method according to claim 3, It is characterized in that The step of projecting the first three-dimensional bounding box onto the two-dimensional road condition image to obtain a plurality of first two-dimensional bounding boxes includes: For each of the first three-dimensional bounding boxes, convert each of the first world coordinates of the first three-dimensional bounding box into a first pixel coordinate in the two-dimensional road condition image using a preset conversion matrix; Determining, according to the first pixel coordinates, a second pixel coordinate of a diagonal line of a corresponding first two-dimensional bounding box; The first two-dimensional bounding box is generated according to the second pixel coordinates.

10. The method according to claim 9, It is characterized in that The first pixel coordinates include a first coordinate value and a second coordinate value; and determining the second pixel coordinates of the diagonal line of the corresponding first two-dimensional bounding box according to the first pixel coordinates includes: Determine a minimum first coordinate value and a maximum first coordinate value among the first coordinate values; Determine a minimum second coordinate value and a maximum second coordinate value among the second coordinate values; Determine the minimum first coordinate value and the minimum second coordinate value as the second pixel coordinate of the first vertex of the diagonal line of the first two-dimensional bounding box; The maximum first coordinate value and the maximum second coordinate value are determined as second pixel coordinates of a second vertex of a diagonal line of the first two-dimensional bounding box.

11. The method according to claim 2, It is characterized in that The using of the two-dimensional target detection model to perform target detection processing on the two-dimensional segmented image to obtain a secondary category target detection result corresponding to the two-dimensional space includes: Performing size alignment processing on the two-dimensional segmented image to obtain a target two-dimensional segmented image; Dividing the target two-dimensional segmented image into a plurality of image sets; For each of the image sets, a two-dimensional target detection model is used to perform target detection processing on each target two-dimensional segmented image in the image set to obtain a secondary category target detection result corresponding to each target two-dimensional segmented image in the image set in the two-dimensional space.

12. The method according to claim 11, It is characterized in that The step of performing size alignment processing on the two-dimensional segmented image to obtain a target two-dimensional segmented image includes: Generate an initial image according to the preset size; Determining a first size of the two-dimensional segmented image; Determining a target color value of each pixel of the initial image according to the first size, the preset size, and the color value of each pixel of the two-dimensional segmented image; A target two-dimensional segmented image is generated according to the initial image and the target color value.

13. The method according to claim 11, It is characterized in that The target detection result includes the third pixel coordinate of the diagonal of the second two-dimensional bounding box of the target object and the secondary category information to which the target object belongs, and the target object is an object in the two-dimensional segmented image; the adaptive spatial conversion processing and category alignment processing are performed on the target detection result to obtain the primary category target obstacle recognition result corresponding to the three-dimensional space, including: Acquire point cloud data corresponding to the two-dimensional road condition image; Determine, according to the third pixel coordinates and the point cloud data, a third world coordinate of a diagonal line of a second three-dimensional detection frame of the target object in the three-dimensional space; Performing category alignment processing on the secondary category information to obtain primary category information; A first-level category target obstacle recognition result corresponding to the three-dimensional space is generated according to the third world coordinates and the first-level category information.

14. The method according to claim 13, It is characterized in that The determining, according to the third pixel coordinates and the point cloud data, a third world coordinate of a diagonal line of a second three-dimensional detection frame of the obstacle in the three-dimensional space comprises: performing a size restoration process on the second two-dimensional bounding box according to the third pixel coordinates to obtain fourth pixel coordinates of a diagonal line of the second two-dimensional bounding box in the two-dimensional segmented image; According to the second pixel coordinate of the diagonal line of the first two-dimensional bounding box, the fourth pixel coordinate is translated to obtain the fifth pixel coordinate of the diagonal line of the second two-dimensional bounding box in the two-dimensional road condition image; Determine a third world coordinate of a diagonal line of a second three-dimensional detection frame of the obstacle in the three-dimensional space according to the fifth pixel coordinate and the point cloud data.

15. The method according to claim 14, It is characterized in that The point cloud data includes a plurality of fourth world coordinates; and determining the third world coordinates of the diagonal of the second three-dimensional detection frame of the obstacle in the three-dimensional space according to the fifth pixel coordinates and the point cloud data includes: For each of the fourth world coordinates, convert the fourth world coordinate into a sixth pixel coordinate in the two-dimensional road condition image using a preset conversion matrix; determining, among the sixth pixel coordinates, candidate sixth pixel coordinates that are within the second identification range corresponding to the fifth pixel coordinate; Identifying a target sixth pixel coordinate that meets a preset condition among the candidate sixth pixel coordinates; Determine a third world coordinate of a diagonal line of a second three-dimensional detection frame of the obstacle in the three-dimensional space according to a fourth world coordinate corresponding to a sixth pixel coordinate of the target.

16. The method according to claim 15, It is characterized in that The identifying a target sixth pixel coordinate that meets a preset condition among the candidate sixth pixel coordinates includes: Determining a first standard deviation of each of the candidate sixth pixel coordinates; For each of the candidate sixth pixel coordinates, determining a second standard deviation of each candidate sixth pixel coordinate other than the candidate sixth pixel coordinate; If it is determined that the difference between the first standard deviation and the second standard deviation is less than a difference threshold, the candidate sixth pixel coordinate is determined as a target sixth pixel coordinate that meets a preset condition.

17. The method according to claim 13, It is characterized in that The step of generating a first-level category target obstacle recognition result corresponding to the three-dimensional space according to the third world coordinate and the first-level category information includes: For each piece of the first-level category information, determine the target range to which the first-level category information belongs in the first range and the second range; If the target range is the first range, the first-level category information and the third world coordinates corresponding to the first-level category information are attributed to the first recognition result set; If the target range is the second range, the first-level category information and the third world coordinates corresponding to the first-level category information are attributed to the second recognition result set; The first recognition result set and the second recognition result set are determined as first-level category target obstacle recognition results corresponding to the three-dimensional space.

18. The method according to claim 17, It is characterized in that The performing category alignment processing on the secondary category information to obtain the primary category information includes: For each secondary category information, obtaining associated primary category information from the first association relationship between the secondary category information and the primary category information; The determining a target range to which the primary category information belongs in the first range and the second range includes: For each of the first-level category information, an associated range is obtained from the second association relationship between the first-level category information and the first range and the second range; and the obtained range is determined as the target range to which the first-level category information belongs.

19. An obstacle recognition device, It is characterized in that The device comprises: A segmentation module is used to update the initial index according to a preset first recognition range and a target size of a plurality of first three-dimensional bounding boxes to be constructed, to obtain an index of each of the first three-dimensional bounding boxes; construct the first three-dimensional bounding box in a three-dimensional space according to the index; construct a plurality of first three-dimensional bounding boxes in a three-dimensional space according to preset recognition parameters, and segment the two-dimensional road condition image to be processed according to the first three-dimensional bounding boxes to obtain a plurality of two-dimensional segmented images; A detection module is used to perform target detection processing on the two-dimensional segmented image using a two-dimensional target detection model to obtain a secondary category target detection result corresponding to the two-dimensional space, wherein the use of the two-dimensional target detection model to perform target detection processing on the two-dimensional segmented image to obtain a secondary category target detection result corresponding to the two-dimensional space includes: performing size alignment processing on each two-dimensional segmented image to obtain a target two-dimensional segmented image; presetting the number of images included in a target image set, and randomly dividing the target two-dimensional segmented image into multiple image sets according to the number of images; inputting each of the two-dimensional segmented images into a two-dimensional target detection model for target detection processing to obtain a secondary category target detection result corresponding to each of the two-dimensional segmented images in the two-dimensional space; The processing module is used to perform adaptive space conversion processing and category alignment processing on the target detection result to obtain a first-level category target obstacle recognition result corresponding to the three-dimensional space.

20. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the obstacle recognition method according to any one of claims 1 to 18 by executing the computer instructions.

21. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the obstacle recognition method according to any one of claims 1 to 18.

22. A computer program product, It is characterized in that The invention comprises computer instructions, wherein the computer instructions are used to make a computer execute the obstacle recognition method according to any one of claims 1 to 18.