Target course angle identification method and device, electronic equipment and storage medium
By using a model to identify targets and heading angles in the autonomous driving system, the time-consuming problem in the existing technology is solved, and the efficiency of real-time identification of heading angles of moving targets is improved.
Patent Information
- Application Number
- CN202310423137.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing technology, two independent models are used to perform target recognition and heading recognition respectively, resulting in heading recognition taking a long time and failing to meet real-time requirements.
A model is used to process the target image. By determining the target image and inputting it into the target heading angle recognition model, the moving target is identified and its heading angle is classified, so as to determine the heading angle of each moving target. The model includes sampling images based on multiple sampling rates, fusion feature extraction and enhancement, and using the yolov3 algorithm model for feature extraction and classification.
The recognition time for obtaining the heading angle of a moving target is shortened, the recognition efficiency is improved, and the requirements for real-time recognition are met.
Smart Images

Figure CN118823722A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a method, device, electronic device and storage medium for identifying a target heading angle. Background Art
[0002] In recent years, in order to accelerate the road testing and mass production of autonomous vehicles, vehicles are equipped with multiple sensors including laser radar, ultrasonic radar, cameras, etc., aiming to provide road perception capabilities for the vehicle. Among them, the camera provides visual perception capabilities for the autonomous driving system, and provides reliable status basis for downstream decision-making and control through image data collection and analysis. There are usually different types of targets on the road, such as "motor vehicles", "non-motor vehicles", "pedestrians" and "special obstacles". Autonomous vehicles need to accurately and timely identify these traffic obstacle targets and accurately determine their driving direction in order to provide accurate and reliable information to downstream decision-making and control, and ensure that the vehicle is safe, stable and compliant on the road. In the current related technologies, an independent target recognition algorithm is first used to identify different types of obstacle targets such as "motor vehicles", "non-motor vehicles", "pedestrians" and "special obstacles", and then the obstacle targets are input into an independent heading recognition algorithm to identify the heading angles of different obstacles, which leads to a long time for heading recognition and cannot meet the real-time requirements. Summary of the invention
[0003] The embodiments of the present application provide a target heading angle recognition method, device, electronic device and storage medium, which can achieve the effect of identifying a moving target and obtaining the heading angle of the moving target through one model, and solve the problem in the related art that target recognition and heading recognition are performed separately by two independent models, resulting in a long time-consuming heading recognition.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a target heading angle recognition method is provided, the method comprising: determining a target image, the target image containing at least one mobile target; inputting the target image into a target heading angle recognition model, the target heading angle recognition model being used to identify the mobile target from the target image, and classifying the heading angles of the identified mobile targets to obtain a heading angle classification result corresponding to each of the mobile targets; and determining the heading angle corresponding to each of the mobile targets according to the heading angle classification result.
[0006] In some examples, identifying the mobile target from the target image includes: sampling the target image based on multiple preset sampling rates to obtain sampling features corresponding to each of the downsampling rates; fusing and enhancing the multiple sampling features to obtain multiple fused features; and performing target recognition based on each of the fused features to obtain the mobile target corresponding to each of the fused features.
[0007] In some examples, before classifying the heading angles of the identified mobile targets and obtaining the heading angle classification results corresponding to each of the mobile targets, the method further includes: obtaining the target heading angle value, dividing the target heading angle value into angle range values, and obtaining heading angle classifications, each heading angle classification corresponding to one of the angle range values; and adding the heading angle classifications to the detection head of the target heading angle recognition model.
[0008] In some examples, the heading angles of the identified mobile targets are classified to obtain a heading angle classification result corresponding to each of the mobile targets, including: based on the target heading angle recognition model to which the heading angle classification is added, the heading angles of the mobile targets corresponding to each of the fusion features are respectively identified to obtain the heading angle classification result corresponding to each of the mobile targets.
[0009] In some examples, the heading angle corresponding to each of the mobile targets is determined based on the heading angle classification results, including: if the mobile targets corresponding to different fusion features are the same, respectively obtaining the confidence scores corresponding to each of the heading angle classification results; using the heading angle classification result with the highest confidence score as the heading angle classification result uniquely corresponding to the mobile target; and using the heading angle classification result uniquely corresponding to each of the mobile targets as the heading angle corresponding to the mobile target.
[0010] In some examples, after determining the heading angle corresponding to each of the mobile targets according to the heading angle classification result, the method further includes: inputting the heading angle corresponding to each of the mobile targets into a decision control model, so that the decision control model makes an automatic driving route decision based on the current driving route and the heading angle corresponding to each of the mobile targets.
[0011] According to one aspect of an embodiment of the present application, a target heading angle recognition device is provided, the device comprising: an image module, the image module being used to determine a target image, the target image containing at least one moving target; an input module, the input module being used to input the target image into a target heading angle recognition model, the target heading angle recognition model being used to identify the moving target from the target image, and classify the heading angles of the identified moving targets to obtain a heading angle classification result corresponding to each of the moving targets; and a determination module, the determination module being used to determine the heading angle corresponding to each of the moving targets based on the heading angle classification result.
[0012] In some examples, the input module is also used to sample the target image based on multiple preset sampling rates to obtain sampling features corresponding to each sampling rate; fuse and enhance the multiple sampling features to obtain multiple fusion features; perform target recognition based on each fusion feature to obtain the moving target corresponding to each fusion feature.
[0013] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an electronic device, comprising one or more processors; a storage device for storing one or more computer programs, when the one or more computer programs are executed by the one or more processors, the electronic device implements the method as described above.
[0014] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of an electronic device, the electronic device executes the method as described above.
[0015] According to one aspect of the embodiments of the present application, the embodiments of the present application provide a computer program product, the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device performs the methods provided in the above embodiments.
[0016] In the technical solution provided in the embodiment of the present application, the target heading angle recognition method includes: determining a target image, wherein the target image contains at least one mobile target; inputting the target image into a target heading angle recognition model, wherein the target heading angle recognition model is used to identify the mobile target from the target image, and classify the heading angle of the identified mobile target to obtain a heading angle classification result corresponding to each mobile target; and determining the heading angle corresponding to each mobile target according to the heading angle classification result. Among them, the target image is input into the target heading angle recognition model, wherein the target heading angle recognition model can identify the mobile target in the target image, and classify the heading angle of the mobile target to obtain a classification result, thereby determining the heading angle corresponding to each mobile target, thereby achieving the effect of identifying the mobile target and obtaining the heading angle of the mobile target with one model, shortening the time for obtaining the heading angle recognition of the mobile target, and solving the problem in the related art that the heading recognition is time-consuming due to two independent models for target recognition and heading recognition respectively.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 is a basic flow chart of a method for identifying a target heading angle shown in an exemplary embodiment of the first embodiment of the present application;
[0020] Figure 2 is a basic flow chart of a method for identifying a target heading angle shown in an exemplary embodiment of the first embodiment of the present application;
[0021] Figure 3 is a basic flow chart of a method for identifying a target heading angle shown in an exemplary embodiment of the first embodiment of the present application;
[0022] Figure 4 is a basic flow chart of a method for identifying a target heading angle shown in an exemplary embodiment of the first embodiment of the present application;
[0023] Figure 5 is a basic flow chart of a method for identifying a target heading angle shown in an exemplary embodiment of the first embodiment of the present application;
[0024] Figure 6 It is a basic structural diagram of a target heading angle recognition model shown in an exemplary embodiment of the second embodiment of the present application;
[0025] Figure 7 is a basic schematic diagram of a detection head output result shown in an exemplary embodiment of the second embodiment of the present application;
[0026] Figure 8 It is a basic schematic diagram of output channel parameters when a heading angle classification function is not added, as shown in an exemplary embodiment of the second embodiment of the present application;
[0027] Fig. 9 is a schematic diagram showing an exemplary embodiment of the second embodiment of the present application, in which a target heading angle is divided into 8 equal parts;
[0028] Fig.10 It is a basic schematic diagram of outputting channel parameters after adding heading angle classification, shown in an exemplary embodiment of the second embodiment of the present application;
[0029] Fig.11 is a schematic diagram of a target heading angle recognition device shown in an exemplary embodiment of the third embodiment of the present application;
[0030] Fig.12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all contents and operations, nor must they be executed in the order described. For example, some operations may be decomposed, while some operations may be combined or partially combined, so the actual execution order may change according to actual conditions.
[0034] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.
[0035] Embodiment 1
[0036] In order to solve the above technical problems, the present application embodiment provides a method for identifying a target heading angle, such as Figure 1 As shown, the method includes:
[0037] S101, determining a target image, wherein the target image includes at least one moving target;
[0038] S102, inputting the target image into a target heading angle recognition model, wherein the target heading angle recognition model is used to recognize the moving target from the target image, and classify the heading angles of the recognized moving targets to obtain a heading angle classification result corresponding to each moving target;
[0039] S103: Determine the heading angle corresponding to each of the moving targets according to the heading angle classification result.
[0040] It can be understood that the target heading angle identification method provided in this embodiment can be applied to a terminal and / or a server, and the terminal can be implemented in various forms. For example, the terminal described in this embodiment can include a fixed terminal such as a mobile phone, a tablet computer, a laptop computer, a PDA, a desktop computer, a workstation, etc.
[0041] It can be understood that the above-mentioned terminals and / or servers can control the movement of mobile tools, wherein the mobile tools can be all devices with mobile capabilities, including vehicles with automatic driving or intelligent driving (including vehicles with manned functions (such as cars, buses, large buses, minibuses, etc.), vehicles with cargo functions (such as ordinary trucks, vans, trailers, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks, special structure trucks), special vehicles (such as logistics distribution vehicles, automatic guided transport vehicles AGV, patrol cars, cranes, cranes, excavators, bulldozers, forklifts, rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor washing vehicles, sprinkler trucks, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.), vehicles with entertainment functions (such as entertainment vehicles, playground automatic driving devices, balance cars, etc.), rescue vehicles (such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.)) and robots (such as sweeping robots, food delivery robots, etc.), etc.
[0042] It can be understood that, in some examples, the mobile tool is provided with a control module, and the target heading angle identification method provided in this embodiment can be directly applied to the control module, and then directly applied to the mobile tool.
[0043] In some examples of this embodiment, the target image is a real-time image captured by a shooting device containing at least one moving target, wherein the moving targets include but are not limited to different types of targets such as "motor vehicle", "non-motor vehicle", "pedestrian" and "special obstacle". The target image can contain multiple moving targets, and the multiple moving targets can be the same or different. For example, the target image contains three motor vehicles and two pedestrians; the shooting device includes but is not limited to a camera; for example, a camera is provided on an autonomous driving vehicle, and a real-time image containing at least one moving target captured by the camera of the autonomous driving vehicle in real time is used as the target image.
[0044] Continuing with the above example, determining the target image includes: judging whether the current real-time image contains at least one moving target; if the current real-time image contains at least one moving target, the current real-time image is used as the target image; if the real-time image does not contain any moving target, the current real-time image is not used as the target image.
[0045] In some examples, the real-time image may be directly used as the target image without determining whether it contains a moving target.
[0046] It can be understood that the basic structure of the above-mentioned target heading angle recognition model can be flexibly set by relevant personnel. This example does not limit the basic structure of the above-mentioned target heading angle recognition model. Specifically, for example, the above-mentioned target heading angle recognition model adopts the yolov3 algorithm model as the basic structure.
[0047] Among them, the target image is input into the target heading angle recognition model, and the target heading angle recognition model can identify the moving target in the target image, and classify the heading angle of the moving target to obtain the classification result, so as to determine the heading angle corresponding to each moving target, thereby realizing the effect of identifying the moving target and obtaining the heading angle of the moving target with one model, shortening the time for obtaining the heading angle recognition of the moving target, and solving the problem in the related technology that the target recognition and heading recognition are performed respectively by two independent models, resulting in a long time-consuming heading recognition.
[0048] In some examples of this embodiment, Figure 2 As shown, step S102 of identifying the moving target from the target image can be expanded into the following schemes, which are as follows:
[0049] S201, sampling the target image based on a plurality of preset sampling rates, and obtaining sampling features corresponding to each of the sampling rates;
[0050] S202, fusing and enhancing the plurality of sampling features to obtain a plurality of fused features;
[0051] S203: Perform target recognition based on each of the fused features to obtain the moving target corresponding to each of the fused features.
[0052] Among them, sampling the target image includes: upsampling the target image, or downsampling the target image, wherein the upsampling method includes but is not limited to deconvolution (Deconvolution, also known as transposed convolution), unpooling method, bilinear interpolation (various interpolation algorithms); the downsampling method includes but is not limited to convolution.
[0053] Following the above example, take the target heading angle recognition model using the yolov3 algorithm model as the basic structure as an example, wherein the image is input into the yolov3 model with the added target heading angle recognition function, and the original input image is subjected to feature extraction through the Backbone feature extraction network. Specifically, Backbone extracts features of the target image by downsampling, and each downsampling obtains features of 1 / 2 of the original image or upper feature resolution (width and height). The features of the original image resolution 1 / 2, 1 / 4, 1 / 8, 1 / 16 and 1 / 32 are obtained respectively. Finally, the 1 / 8, 1 / 16 and 1 / 32 downsampled features are used for subsequent target detection and heading angle recognition. It can be understood that the above feature extraction network can be flexibly set by relevant personnel, and the present embodiment is not limited to sampling the target image through the above Backbone feature extraction network.
[0054] It can be understood that in the process of convolutional neural network, the deeper the number of network layers, the stronger the characteristic information of the target, and the better the model predicts the target, but at the same time, the position information of the target will become weaker and weaker, and in the continuous convolution process, the information of small targets is easily lost. Therefore, predictions of different scales are required. Therefore, in step S202, it is necessary to perform multi-scale fusion of multiple sampling features to obtain multiple fusion features. In some examples, multiple sampling features are fused and enhanced to obtain multiple fusion features, wherein the number of fusion features is the same as the number of the above-mentioned sampling features, that is, if there are N sampling features, the N sampling features are fused and enhanced to obtain N fusion features;
[0055] Continuing with the above example, take the target heading angle recognition model using the yolov3 algorithm model as the basic structure as an example, in which the target heading angle recognition model fuses and enhances multiple sampling features through the pan structure.
[0056] In some examples of this embodiment, step S203 performs target recognition based on each of the fused features to obtain the moving target corresponding to each of the fused features, wherein each fused feature will detect the corresponding moving target, and the moving targets detected by multiple fused features may be the same. For example, there are motor vehicle A and pedestrian B in the target image. At this time, after feature extraction and fusion of the target image, three fused features are obtained. In some examples, when target recognition is performed on the three fused features, motor vehicle A and pedestrian B may be detected; in some examples, when target recognition is performed on at least one fused feature, motor vehicle A can be detected, and when target recognition is performed on at least one fused feature, pedestrian B can be detected.
[0057] Continuing with the above example, take the target heading angle recognition model using the yolov3 algorithm model as the basic structure as an example, wherein the target heading angle recognition model uses the head detection head to perform target recognition on the fused features to obtain the moving target corresponding to each of the fused features, wherein each detection head corresponds to a fusion feature, specifically, the three sampling features are fused and enhanced to obtain three fused features, and then three detection heads are used to perform target detection on the three fused features respectively to obtain the moving target identified by each fused feature, wherein for each detection head, a tensor with a width of w, a height of h, and c channels is output, wherein w and h are the resolutions of the feature maps obtained by downsampling the resolution of the original image, and the c channels form a vector, which represents the coordinates and classification results of the detected targets.
[0058] In some examples of this embodiment, Figure 3 As shown, before step S202 classifies the heading angles of the identified mobile targets and obtains the heading angle classification results corresponding to each mobile target, the method further includes:
[0059] S301, obtaining a target heading angle value, dividing the target heading angle value into angle range values, and obtaining heading angle classifications, each of the heading angle classifications corresponding to one of the angle range values;
[0060] S302: Add the heading angle classification to the detection head of the target heading angle recognition model.
[0061] The present invention divides the target heading angle value into angle range values to obtain heading angle classifications, each of which corresponds to an angle range value, and adds the heading angle classifications to the detection head of the target heading angle recognition model, thereby converting the heading angle regression problem into an N-classification problem;
[0062] Specifically, for example, the target heading angle value is 360 degrees with itself as the center and extending outward. Taking the heading including eight directions of front, back, left, right, left front, left back, right front and right back as an example, 360 degrees are divided into 8 equal parts, and each equal part has a range of 45 degrees, wherein each equal part corresponds to a direction, and one direction is a heading angle classification. It can be understood that, among others, the present embodiment does not limit the heading to the above eight directions. For example, the heading can also be four directions of up, down, left and right. After the heading angle classification, the heading angle classification is added to the target heading angle recognition model, so that the target heading angle recognition model can identify the heading angle classification corresponding to each mobile target after performing target recognition based on each of the fusion features and obtaining the moving target corresponding to each of the fusion features.
[0063] Among them, taking the target heading angle recognition model using the yolov3 algorithm model as the basic structure as an example, the target heading angle recognition model performs target recognition on the fusion feature through the head detection head, and after obtaining the heading angle classification, the heading angle classification is added to the detection head, so that the detection head performs target recognition based on each of the fusion features, and after obtaining the moving target corresponding to each of the fusion features, it can identify the heading angle classification corresponding to each mobile target.
[0064] In some examples of this embodiment, Figure 4 As shown, the heading angles of the identified mobile targets are classified, and the classification results of the heading angles corresponding to each mobile target can be expanded to:
[0065] S401. Based on the target heading angle recognition model to which the heading angle classification is added, the heading angle of the moving target corresponding to each of the fusion features is recognized respectively to obtain the heading angle classification result corresponding to each of the moving targets.
[0066] It can be understood that if there are multiple fusion features, target recognition is performed on each fusion feature separately, and the mobile target corresponding to each fusion feature is obtained separately. Then, when performing heading angle recognition, it is necessary to perform heading angle recognition on the mobile target corresponding to each fusion feature separately, and then obtain the heading angle classification result of the mobile target corresponding to the fusion feature.
[0067] Continuing from the above example, the target heading angle recognition model adopts the yolov3 algorithm model as the basic structure as an example, wherein the target heading angle recognition model uses the head detection head to perform target recognition on the fusion feature, obtains the mobile target corresponding to each fusion feature, and then identifies the heading angle classification corresponding to each mobile target. Specifically, taking the target image containing two mobile targets as an example, the target image is input into the target heading angle recognition model, the target heading angle recognition model samples the target image, and fuses and enhances the sampled features to obtain three fusion features. At this time, the detection head in the target heading angle recognition model performs target recognition on the three fusion features respectively, obtains the mobile target corresponding to each fusion feature, and performs heading angle recognition on the mobile target corresponding to each fusion feature, thereby obtaining the heading angle classification results of the mobile targets corresponding to the three fusion features.
[0068] In some examples of this embodiment, Figure 5 As shown, step S103, determining the heading angle corresponding to each of the moving targets according to the heading angle classification result can be expanded to:
[0069] S501, if the moving targets corresponding to different fusion features are the same, respectively obtain the confidence score corresponding to each heading angle classification result;
[0070] S502, taking the heading angle classification result with the highest confidence score as the heading angle classification result uniquely corresponding to the mobile target;
[0071] S503: Using the classification result of the heading angle uniquely corresponding to each of the moving targets as the heading angle corresponding to the moving target.
[0072] Among them, it can be understood that different fusion features may identify the same moving target, and respectively perform heading angle recognition on the same moving target, thereby obtaining heading angle recognition results of multiple identical moving targets. Specifically, for example, the target image contains motor vehicle A and pedestrian B. At this time, after feature extraction and fusion addition of the target image, three fusion features are obtained, and the three fusion features are respectively recorded as X, Y, and Z. When the three fusion features are used for target recognition, motor vehicle A and pedestrian B are detected. At this time, it is necessary to perform heading recognition on motor vehicle A and pedestrian B identified by each fusion feature, and obtain the heading angle classification result corresponding to motor vehicle A and pedestrian B under each fusion feature, that is, the heading angle classification result of motor vehicle A and pedestrian B under the X fusion feature, the heading angle classification result of motor vehicle A and pedestrian B under the Y fusion feature, and the heading angle classification result of motor vehicle A and pedestrian B under the Z fusion feature. At this time, the moving targets motor vehicle A and pedestrian B correspond to three heading classification results respectively;
[0073] Continuing with the above example, when the target heading angle recognition model recognizes the heading angle classification result corresponding to the moving target, it will give the confidence score of the heading angle classification result. Therefore, after recognizing multiple identical moving targets, the confidence scores corresponding to the heading angle classification results corresponding to the identical moving targets can be obtained respectively; for example, the confidence score of the heading angle classification result of motor vehicle A and the confidence score of the heading angle classification result of pedestrian B under the X fusion feature are obtained, the confidence score of the heading angle classification result of motor vehicle A and the confidence score of the heading angle classification result of pedestrian B under the Y fusion feature are obtained, and the confidence score of the heading angle classification result of motor vehicle A and the confidence score of the heading angle classification result of pedestrian B under the Z fusion feature are obtained;
[0074] Among them, the heading angle classification result with the highest confidence score is used as the heading angle classification result uniquely corresponding to the mobile target. Specifically, if the confidence score of the heading angle classification result of motor vehicle A under the X fusion feature is higher than the confidence score of the heading angle classification result of motor vehicle A under the Y fusion feature, and higher than the confidence score of the heading angle classification result of motor vehicle A under the Z fusion feature, then the heading angle classification result of motor vehicle A under the X fusion feature is used as the only heading angle classification result of motor vehicle A, and finally the only heading angle is classified as the heading angle corresponding to motor vehicle A.
[0075] It can be understood that in some examples, before obtaining the confidence score corresponding to each of the heading angle classification results, the method also includes: determining whether the heading angle classification results corresponding to the same mobile targets are the same; if they are different, entering the above steps to obtain the confidence score corresponding to each of the heading angle classification results; if they are the same, directly selecting the heading angle classification result corresponding to the mobile target corresponding to any fusion feature as the heading angle corresponding to the mobile target.
[0076] Continuing with the above example, for example, the confidence score of the heading angle classification result of motor vehicle A under the X fusion feature is obtained, the confidence score of the heading angle classification result of motor vehicle A under the Y fusion feature is obtained, and the confidence score of the heading angle classification result of motor vehicle A under the Z fusion feature is obtained. At this time, if the three heading angle classification results are the same, any heading angle classification result can be used as the heading angle of motor vehicle A. Otherwise, the above steps are entered to respectively obtain the confidence score corresponding to each of the heading angle classification results.
[0077] In some examples of this embodiment, after determining the heading angle corresponding to each of the mobile targets according to the heading angle classification result, the method further includes: inputting the heading angle corresponding to each of the mobile targets into a decision control model, so that the decision control model makes an automatic driving route decision based on the current driving route and the heading angle corresponding to each of the mobile targets.
[0078] The target heading angle recognition method provided in this example includes: determining a target image, wherein the target image contains at least one mobile target; inputting the target image into a target heading angle recognition model, wherein the target heading angle recognition model is used to identify the mobile target from the target image, and classify the heading angles of the identified mobile targets to obtain a heading angle classification result corresponding to each mobile target; and determining the heading angle corresponding to each mobile target according to the heading angle classification result. Among them, the target image is input into the target heading angle recognition model, wherein the target heading angle recognition model can identify the mobile target in the target image, and classify the heading angles of the mobile targets to obtain a classification result, thereby determining the heading angle corresponding to each mobile target, thereby achieving the effect of identifying the mobile target and obtaining the heading angle of the mobile target with one model, shortening the time for obtaining the heading angle recognition of the mobile target, and solving the problem in the related art that the heading recognition is time-consuming due to two independent models for target recognition and heading recognition respectively.
[0079] Embodiment 2
[0080] In order to better understand the present invention, this example provides a more specific example for illustration, wherein this example provides a target heading angle recognition model. In this example, the target heading angle recognition model adopts the yolov3 algorithm model as the basic structure, wherein, Figure 6 As shown, Figure 6 The following is the basic structure of the target heading angle recognition model provided in this example;
[0081] First, the target image is determined, and then the target image is input into the target heading angle recognition model. The target heading angle recognition model passes through the backbone extraction network, and then uses the pan structure to fuse and enhance the 1 / 8, 1 / 16 and 1 / 32 downsampled features output by the backbone. Finally, three head detection heads are used to perform target detection on the three enhanced features. For each detection head, a tensor with a width of w, a height of h, and c channels is output, such as Figure 7 As shown in the figure. Where w and h are the resolutions of the feature maps obtained by downsampling the resolution of the original image. The c channels form a vector, which represents the coordinates and classification results of the detected target. The specific meaning of each of the c channels is as follows: Figure 8 shown.
[0082] In this example, the target heading angle of 360 degrees is divided into 8 equal parts as 8 categories, and the heading angle regression problem is converted into an 8-category problem, such as Fig. 9 shown.
[0083] The present invention expands the function of the detection head of yolov3 and adds 8 classifications of vehicle heading to the detection head. The detection head outputs c channels of the vector as follows: Fig.10 For any target, the output vector includes 4-dimensional target coordinates, 1-dimensional positive and negative sample scores, n-dimensional target classification confidence scores, and 8-dimensional target heading angle classification scores.
[0084] It can be understood that in the model training stage, the training of the target heading angle 8 classification task is the same as the target type recognition classification task, and the cross entropy loss is used for training.
[0085] This example converts the vehicle heading angle regression task into a coarse-grained 8-classification task, and embeds the heading angle classification task into the detection algorithm based on the target heading angle recognition model and by expanding the detection head of the detection algorithm of the target heading angle recognition model. While realizing target detection, the target heading angle classification algorithm is realized. Due to the adoption of the above method, the realization of the target heading angle recognition algorithm only adds a small amount of calculation, and the algorithm reasoning process hardly increases the time consumption. It brings the beneficial effect of realizing target heading recognition and ensuring the feasibility of algorithm reasoning.
[0086] Embodiment 3
[0087] Based on the same technical concept, this embodiment also provides a device, such as Fig.11 As shown, the device comprises:
[0088] An image module 1, wherein the image module 1 is used to determine a target image, wherein the target image contains at least one moving target;
[0089] An input module 2, wherein the input module 2 is used to input the target image into a target heading angle recognition model, wherein the target heading angle recognition model is used to recognize the moving target from the target image, and classify the heading angles of the recognized moving targets to obtain a heading angle classification result corresponding to each moving target;
[0090] The determination module 3 is used to determine the heading angle corresponding to each of the moving targets according to the heading angle classification result.
[0091] Among them, the input module is also used to: sample the target image based on multiple preset sampling rates to obtain sampling features corresponding to each sampling rate; fuse and enhance multiple sampling features to obtain multiple fusion features; perform target recognition based on each fusion feature to obtain the moving target corresponding to each fusion feature.
[0092] Among them, before classifying the heading angles of the identified mobile targets and obtaining the heading angle classification results corresponding to each of the mobile targets, the method also includes: obtaining the target heading angle value, dividing the target heading angle value into angle range values, and obtaining heading angle classifications, each heading angle classification corresponding to one of the angle range values; and using the target heading angle recognition model to classify the heading angle types.
[0093] Among them, the heading angles of the identified mobile targets are classified to obtain the heading angle classification results corresponding to each of the mobile targets, including: based on the target heading angle recognition model with the heading angle classification added, the heading angles of the mobile targets corresponding to each of the fusion features are respectively recognized to obtain the heading angle classification results corresponding to each of the mobile targets.
[0094] Among them, the heading angle corresponding to each of the mobile targets is determined according to the heading angle classification result, including: if the mobile targets corresponding to different fusion features are the same, respectively obtaining the confidence scores corresponding to each of the heading angle classification results; taking the heading angle classification result with the highest confidence score as the heading angle classification result uniquely corresponding to the mobile target; taking the heading angle classification result uniquely corresponding to each of the mobile targets as the heading angle corresponding to the mobile target.
[0095] Among them, after determining the heading angle corresponding to each of the mobile targets according to the heading angle classification result, the method also includes: inputting the heading angle corresponding to each of the mobile targets into a decision control model, so that the decision control model makes an automatic driving route decision based on the current driving route and the heading angle corresponding to each of the mobile targets.
[0096] It should be understood that each template combination of the target heading angle identification device provided in this embodiment can implement each step of the above-mentioned target heading angle identification method and achieve the same technical effect as each step of the target heading angle identification method, which will not be repeated here.
[0097] Embodiment 4
[0098] An embodiment of the present application also provides an electronic device, comprising one or more processors and a storage device, wherein the storage device is used to store one or more computer programs, and when the one or more computer programs are executed by one or more processors, the electronic device implements the target heading angle identification method as described above.
[0099] Fig.12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0100] It should be noted that Fig.12 The computer system 1800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0101] like Fig.12 As shown, the computer system 1800 includes a processor (Central Processing Unit, CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (Read-Only Memory, ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (Random Access Memory, RAM) 1803, such as executing the method in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (Input / Output, I / O) interface 1805 is also connected to bus 1804.
[0102] In some embodiments, the following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed, so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0103] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a processor (CPU) 1801, various functions defined in the system of the present application are executed.
[0104] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0105] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and a computer program.
[0106] The units or modules involved in the embodiments described in this application may be implemented by software or hardware, and the units or modules described may also be set in a processor. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.
[0107] Another aspect of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the target heading angle recognition method as described above when the computer program is executed by a processor. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0108] Another aspect of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device performs the target heading angle identification method as described above in the above embodiments.
[0109] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0110] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0111] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person of ordinary skill in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A method for identifying a target heading angle, characterized in that: The method comprises: Determine a target image, wherein the target image includes at least one moving target; Inputting the target image into a target heading angle recognition model, the target heading angle recognition model is used to identify the moving target from the target image, and classify the heading angles of the identified moving targets to obtain a heading angle classification result corresponding to each moving target; The heading angle corresponding to each of the moving targets is determined according to the heading angle classification result.
2. The method according to claim 1, characterized in that Identifying the moving target from the target image includes: Sampling the target image based on a plurality of preset sampling rates, and obtaining sampling features corresponding to each of the sampling rates; Fusing and enhancing the plurality of sampling features to obtain a plurality of fused features; Target recognition is performed based on each of the fused features to obtain the moving target corresponding to each of the fused features.
3. The method according to claim 1, characterized in that Before classifying the identified heading angles of the mobile targets to obtain the heading angle classification results corresponding to each mobile target, the method further includes: Obtaining a target heading angle value, dividing the target heading angle value into an angle range value, and obtaining a heading angle classification, each heading angle classification corresponding to one of the angle range values; The heading angle classification is added to the detection head of the target heading angle recognition model.
4. The method according to claim 3, characterized in that: Classifying the heading angles of the identified mobile targets to obtain a heading angle classification result corresponding to each mobile target, including: Based on the target heading angle recognition model with the heading angle classification added, the heading angle recognition is performed on the moving target corresponding to each of the fusion features to obtain the heading angle classification result corresponding to each of the moving targets.
5. The method according to claim 2, characterized in that: Determining the heading angle corresponding to each of the moving targets according to the heading angle classification result includes: If the moving targets corresponding to different fusion features are the same, respectively obtaining the confidence score corresponding to each heading angle classification result; The heading angle classification result with the highest confidence score is used as the heading angle classification result uniquely corresponding to the moving target; The classification result of the heading angle uniquely corresponding to each of the moving targets is used as the heading angle corresponding to the moving target.
6. The method according to claim 1, characterized in that After determining the heading angle corresponding to each of the moving targets according to the heading angle classification result, the method further includes: The heading angle corresponding to each of the mobile targets is input into a decision control model, so that the decision control model makes an automatic driving route decision based on the current driving route and the heading angle corresponding to each of the mobile targets.
7. A target heading angle recognition device, characterized in that: The device comprises: An image module, the image module is used to determine a target image, wherein the target image contains at least one moving target; An input module, the input module is used to input the target image into a target heading angle recognition model, the target heading angle recognition model is used to identify the moving target from the target image, and classify the heading angles of the identified moving targets to obtain a heading angle classification result corresponding to each moving target; A determination module is used to determine the heading angle corresponding to each of the moving targets according to the heading angle classification result.
8. The device according to claim 7, characterized in that The input module is also used to sample the target image based on a plurality of preset sampling rates, and obtain sampling features corresponding to each sampling rate respectively; and fuse and enhance the plurality of sampling features to obtain a plurality of fused features; Target recognition is performed based on each of the fused features to obtain the moving target corresponding to each of the fused features.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle-mounted visual real-time multi-target course angle estimation method and device
CN111291786A
Classification method combining multi-target tracking and pedestrian angle identification
CN113435319A
Course angle prediction method and device of target vehicle, electronic equipment and storage medium
CN114973198A
Target detection positioning method and device for roadside scene, electronic equipment and storage medium
CN115471819A
Method for Detecting Moving Objects in the Surroundings of a Vehicle, and Motor Vehicle
US20230094836A1
