Road target detection method, device and storage medium
Through the road target detection method based on the center point, the target center point and size are directly estimated and the NMS operation is omitted, which solves the problem of low target detection efficiency in the existing technology and achieves a more efficient detection process and resource saving.
Patent Information
- Application Number
- CN202011583087.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-28
AI Technical Summary
The efficiency of existing target detection algorithms is low, mainly due to the need to perform NMS operations to screen multiple target frames, resulting in a waste of time and low detection efficiency.
The road target detection method based on the center point is used to obtain historical road image data for preprocessing and anchor point calculation, and the CNN network is used to directly estimate the target center point and size, omitting the NMS operation and improving detection efficiency.
It simplifies the target detection process, reduces the time-consuming post-detection processing, saves hardware resources, and improves detection efficiency while ensuring detection performance.
Smart Images

Figure CN112613434B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a road target detection method, device and storage medium, and belongs to the technical field of ADAS. Background Art
[0002] With the enhancement of people's safety awareness, customers' requirements for driving comfort and the improvement of safety requirements of the European New Car Assessment Program (NCAP), the advanced driver assistance system (ADAS) industry has developed rapidly. The ADAS system does not directly control the vehicle, but provides the driver with relevant information such as the vehicle's operating status and the vehicle's surrounding environment, reminding the driver to pay attention to potential dangers, thereby improving driving safety. The ADAS system evaluates danger through processing technologies such as target detection, recognition and tracking. Among them, target detection technology is its foundation and the most important part. The detection technology can obtain road information in real time through the on-board camera, quickly analyze and locate the categories and location information of various obstacles on the road, so as to provide accurate danger analysis for subsequent modules, and can promptly remind the driver or directly intervene in the vehicle reasonably when danger comes.
[0003] In recent years, target (vehicles, pedestrians, two-wheelers, triangular cones, etc.) detection algorithms mainly use deep neural network technology to slide complex arranged possible BBoxes (i.e. anchor points) on the image, and then directly classify the boxes to obtain potential target boxes. Since there may be many target boxes of various sizes on the same target, additional post-processing (NMS) is required to screen multiple target boxes of the same target in order to find the accurate category and position of each target. This processing method wastes a lot of time and has low target detection efficiency. Summary of the invention
[0004] In order to solve the problem of low efficiency of target detection in the prior art, the present invention proposes a road target detection method, device and storage medium, which use the target center point to represent the target object, convert the target detection into center point estimation, and directly obtain the position of the target center point and the target width and height information, thereby omitting the NMS operation and improving the target detection efficiency.
[0005] In order to solve the above technical problems, the present invention adopts the following technical means:
[0006] In a first aspect, the present invention proposes a road target detection method based on a center point, comprising the following steps:
[0007] Obtain historical road image data and perform image preprocessing;
[0008] Anchor point calculation and Gaussian scattering kernel encoding are performed based on the preprocessed road image to obtain a training sample set of the road image;
[0009] Use the training sample set to train the pre-built CNN network to obtain a trained CNN network model;
[0010] Use the trained CNN network model to process the road image to be detected, and obtain the key point heat map and target size regression value of the road image to be detected;
[0011] The road object detection results are obtained based on the key point heat map and the object size regression value.
[0012] In combination with the first aspect, further, the specific operations of the image preprocessing are as follows:
[0013] Acquire historical road image data, wherein the historical road image data includes a plurality of historical road images and a target category corresponding to each historical road image;
[0014] Performing data annotation on the historical road images, determining the annotation frame of each historical road image, and obtaining annotated images;
[0015] Perform data augmentation on the annotated image to obtain the preprocessed road image.
[0016] In combination with the first aspect, further, for any pre-processed road image, the specific operations of anchor point calculation and Gaussian scattering kernel encoding are as follows:
[0017] The image coordinate system is established with the lower left corner of the preprocessed road image as the coordinate origin;
[0018] Calculate the coordinates of the real key points based on the annotation box of the preprocessed road image:
[0019]
[0020] Among them, P represents the coordinates of the real key points, P x is the horizontal coordinate of the real key point, P y is the ordinate of the real key point, (x1, y1) is the coordinate of the pixel point in the upper left corner of the annotation box, and (x2, y2) is the coordinate of the pixel point in the lower right corner of the annotation box;
[0021] Obtaining the target perception center area according to the annotation box of the preprocessed road image;
[0022] Based on the coordinates of the real key points, the Gaussian scattering kernel is used to calculate the category labels of all pixels in the target perception center area:
[0023]
[0024] in, represents the category label of the i-th pixel in the target perception center area, (x i ,y i ) is the coordinate of the i-th pixel in the target perception center area, δ p is the size standard deviation of the target perception center area, i = 1, 2, ..., n, and n is the number of pixels in the target perception center area.
[0025] Combined with the first aspect, the specific operations of CNN network training are as follows:
[0026] (1) Obtain the pre-built CNN network and initialize the network parameters;
[0027] (2) Using the CNN network to downsample each image training sample in the training sample set to obtain the corresponding downsampled image;
[0028] (3) For each downsampled image, the key point coordinates of the downsampled image and the pixel category label of the downsampled image are calculated according to the downsampled factor of the CNN network. The calculation formula of the key point coordinates of the downsampled image is as follows:
[0029]
[0030] in, represents the coordinates of the key points of the downsampled image, P represents the coordinates of the real key points in the image training sample, and R is the downsampling factor;
[0031] (4) Based on the target categories in the historical road image data, the key point coordinates of the downsampled image, and the pixel category labels, the network loss is calculated using the loss function of the CNN network, and the network parameters of the CNN network are updated through loss reverse propagation;
[0032] (5) Repeat steps (2) to (4) until the network loss converges and a trained CNN network model is obtained.
[0033] In combination with the first aspect, further, the process of obtaining the key point heat map and the target size regression value is as follows:
[0034] Obtaining an image of the road to be detected according to the video of the road to be detected;
[0035] The trained CNN network model is used to process the road image to be detected, and the road target feature map of each target in the road image to be detected is obtained. The key point heat map corresponding to each target category is obtained through forward propagation, and the key point heat map includes all targets under the target category.
[0036] The target size regression value, i.e., the width and height of the target, is obtained according to the peak point of the road target feature map.
[0037] In combination with the first aspect, further, the process of obtaining the road target detection result is as follows:
[0038] The target center point coordinates of each target are extracted from the key point heat map through maximum pooling, and the target category is obtained;
[0039] Generate a target frame on the road image to be detected according to the target center point coordinates and the corresponding target size regression value;
[0040] Associate the target category and target frame of each target, and output the road image to be detected containing the target category and target frame as the road target detection result.
[0041] In a second aspect, the present invention proposes a road target detection device based on a center point, comprising:
[0042] The image processing module is used to obtain historical road image data and perform image preprocessing on the one hand, and to obtain the image of the road to be detected based on the video of the road to be detected on the other hand;
[0043] An image encoding module is used to perform anchor point calculation and Gaussian scattering kernel encoding on the preprocessed road image to obtain a training sample set of the road image;
[0044] A model training module is used to train the pre-built CNN network according to the training sample set of the image coding module to obtain a trained CNN network model;
[0045] The target detection module is used to process the road image to be detected using the trained CNN network model, obtain the heat map and target size regression value of the target key points of the road image to be detected, and generate the target box and target category on the road image to be detected to obtain the road target detection result.
[0046] In a third aspect, the present invention provides a center point-based road object detection device, including a processor and a storage medium;
[0047] The storage medium is used to store instructions;
[0048] The processor is used to operate according to the instructions to execute the steps of the method described in the first aspect of the present invention.
[0049] In a fourth aspect, the present invention proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect of the present invention.
[0050] The following advantages can be obtained by using the above technical means:
[0051] The present invention proposes a road target detection method, device and storage medium, which draws on the idea of semantic segmentation, uses the target center point to represent the target object, uses the Gaussian scattering kernel to classify the target area, and converts the target object detection problem into the estimation problem of a key point in the image. The present invention constructs and trains a CNN network that can directly obtain the target center point. In the target detection process, the key point heat map corresponding to each target category is obtained through forward propagation, and then the maximum pooling is used to directly decode and extract the target center points of multiple targets of the same category from the key point heat map, and the width and height information of the target is predicted in combination with the peak point position of the feature map, so as to directly obtain the target category and target frame in the road image or video. The present invention omits the NMS operation, simplifies the target detection operation, greatly reduces the time consumption of the detection post-processing module, and can effectively save hardware resources and improve detection efficiency while ensuring the target detection performance, truly achieving end-to-end detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of the steps of a road target detection method based on a center point of the present invention;
[0053] Figure 2 A schematic diagram of real key points in an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of Gaussian distribution of category labels in the target perception center area in an embodiment of the present invention;
[0055] Figure 4 Schematic diagram of a road target detection result in an embodiment of the present invention;
[0056] Figure 5 The present invention is a schematic structural diagram of a road target detection device based on a center point.
[0057] In the figure, 1 is the image processing module, 2 is the image encoding module, 3 is the model training module, and 4 is the target detection module. DETAILED DESCRIPTION
[0058] The technical solution of the present invention is further described below in conjunction with the accompanying drawings:
[0059] The present invention proposes a road target detection method based on center point, such as Figure 1 As shown, the specific steps include:
[0060] Step 1: Obtain historical road image data and perform image preprocessing; the specific operations are as follows:
[0061] Step 101, using a vehicle-mounted camera (such as a driving recorder) to record and store road videos around the vehicle in real time, obtaining historical road video data from the storage data of the vehicle-mounted camera, and then converting the historical road video data into historical road image data, wherein the historical road image data mainly includes multiple historical road images and target categories corresponding to each historical road image, the target category can be a car, a pedestrian, a bicycle, etc., the target category corresponding to the historical road image is an accurate detection result of manual recognition or software recognition, which will be used as a standard for subsequent network training.
[0062] Step 102: annotate the historical road images, determine the annotation box of each historical road image, and obtain an annotated image with the annotation box drawn. The number of annotation boxes in the annotated image is consistent with the number of target objects in the historical road image, one target object corresponds to one annotation box, and the size of the annotation box is consistent with the size of the target object, for example, each pedestrian will have a pedestrian annotation box, and each car will have a car annotation box.
[0063] Step 103: perform data augmentation processing on the annotated image to obtain a pre-processed road image; the data augmentation processing includes operations such as image cropping and image flipping.
[0064] Step 2: Anchor point calculation and Gaussian scattering kernel encoding are performed based on the preprocessed road image to obtain a training sample set of the road image.
[0065] For any preprocessed road image, the specific operations of anchor point calculation and Gaussian scattering kernel encoding are as follows:
[0066] Step 201 : Taking the lower left corner of the preprocessed road image as the coordinate origin, an image coordinate system is established, and the coordinates of the annotation box are obtained according to the annotation box drawn in the preprocessing process.
[0067] Step 202: Calculate the coordinates of the real key point of the preprocessed road image based on the annotation box. The real key point is the real center point of the target object, such as Figure 2 As shown, the calculation formula for the coordinates of the real key points is as follows:
[0068]
[0069] Among them, P represents the coordinates of the real key points, P x is the horizontal coordinate of the real key point, P y is the ordinate of the real key point, (x1, y1) is the coordinate of the pixel point in the upper left corner of the annotation box, and (x2, y2) is the coordinate of the pixel point in the lower right corner of the annotation box.
[0070] Step 203: Obtain the target perception center area according to the annotation box of the preprocessed road image. The target perception center area is a box further scaled on the basis of the annotation box, which is closer to the characteristic area of the target object. For example, for a car, the annotation box will frame the entire car, but the target perception center area may only frame the license plate area. In each preprocessed road image, the number of target perception center areas is consistent with the number of annotation boxes, and they correspond to each other. The calculation formula of the target perception center area is as follows:
[0071]
[0072] in, Indicates the coordinates of the upper left corner of the target perception center area, It represents the coordinate of the lower right corner of the target perception center area. The parameter a is related to the size of the annotation box. When the width of the annotation box is greater than 100 pixels, a=5, otherwise a=3.
[0073] Step 204: In order to highlight the central pixel of the target, the present invention sets the category label of the real key point to Y P is 1, and then based on the coordinates of the real key points, the Gaussian scattering kernel is used to calculate the category labels of all pixels in the target perception center area. The specific formula is as follows:
[0074]
[0075] in, represents the category label of the i-th pixel in the target perception center area, (x i ,y i ) is the coordinate of the i-th pixel in the target perception center area, δ p is the standard deviation of the size of the target perception center area, δ p The value of is related to the width and height of the preprocessed road image, i = 1, 2, ..., n, where n is the number of pixels in the target perception center area.
[0076] In the embodiment of the present invention, the category label of the real key point in the target perception center area is the largest, and the category labels of the pixels around the real key point gradually diffuse and become smaller, such as Figure 3 shown.
[0077] By calculating the category label for each preprocessed road image, a road image with the category label, namely, a training sample, can be obtained, and the training samples are used to form a training sample set.
[0078] Step 3: Use the training sample set to train the pre-built CNN network to obtain the trained CNN network model. The specific operations are as follows:
[0079] (1) Obtain a pre-built CNN network and initialize network parameters. The CNN network in the present invention can use DenseNet.
[0080] (2) Use the CNN network to downsample each image training sample in the training sample set to obtain the corresponding downsampled image.
[0081] (3) During the downsampling process, for each downsampled image, the key point coordinates of the downsampled image and the pixel category labels of the downsampled image need to be calculated according to the downsampling factor of the CNN network. The calculation formula for the key point coordinates of the downsampled image is as follows:
[0082]
[0083] in, Represents the coordinates of the key points of the downsampled image, and R is the downsampling factor.
[0084] The calculation formula for the pixel category label of the downsampled image is as follows:
[0085]
[0086] in, represents the category label of the jth pixel in the downsampled image, (x j ,y j ) is the coordinate of the jth pixel in the downsampled image, W and H are the width and height of the road image respectively, c is the target category, are the coordinates of the key points of the downsampled image, j = 1, 2, …, m, and m is the number of pixels in the downsampled image.
[0087] (4) Based on the target categories in the historical road image data, the key point coordinates of the downsampled image, and the pixel category labels, the network loss is calculated using the loss function of the CNN network, and the network parameters of the CNN network are updated through loss backpropagation. Because the category labels of the key points in the downsampled image are approximately the category labels of other points, the loss function can ensure that the losses of other points around the key points are attenuated losses, which is beneficial to model training; when the loss is backpropagated, by adjusting the training weights of the key points and other points, the key points can be more prominent in the final output feature map, which is beneficial to the subsequent use of maximum pooling to find the position of the key points.
[0088] (5) Repeat steps (2) to (4) until the network loss converges and a trained CNN network model is obtained.
[0089] Step 4: Use the trained CNN network model to process the road image to be detected to obtain the key point heat map and target size regression value of the road image to be detected. The specific operations are as follows:
[0090] Step 401: Obtain an image of the road to be detected based on the road video to be detected, where the road video to be detected is a road video captured in real time by a vehicle-mounted camera device.
[0091] Step 402: Use the trained CNN network model to process the road image to be detected. On the one hand, a road target feature map of each target in the road image to be detected can be obtained (one target object corresponds to one feature map). On the other hand, a key point heat map corresponding to each target category can be obtained through forward transmission. The key point heat map is related to the target category, including all targets under the target category. For example, there are 2 cars and 1 pedestrian in a road image to be detected. After the CNN network model processes the image, 3 road target feature maps will be obtained, and 2 key point heat maps will be obtained at the same time, one of which is a car key point heat map containing 2 cars, and the other is a pedestrian key point heat map containing 1 pedestrian.
[0092] Step 403: Obtain the target size regression value according to the peak point of the road target feature map. The peak point position of the road target feature map has predicted the width and height information of the target, so the width and height of the target can be directly obtained.
[0093] Step 5: Obtain the road target detection result based on the key point heat map and target size regression value. The specific operations are as follows:
[0094] Step 501, extract the target center point coordinates of each target from the key point heat map through maximum pooling, and obtain the target category; the key point heat map may include multiple targets, and after decoding, the coordinates of each target in the road image to be detected will be obtained. In addition, the category of the target object decoded from the key point heat map is the target category corresponding to the key point heat map.
[0095] Step 502: Generate a target frame on the road image to be detected according to the target center point coordinates and the corresponding target size regression value, take the target center point coordinates as the center point, determine the boundary of the target frame in the road image to be detected according to the width and height information of the target, and finally complete the target frame drawing.
[0096] Step 503: associate the target category and target frame of each target, and output the road image to be detected containing the target category and target frame as the road target detection result. Figure 4 Schematic diagram of the road target detection result in an embodiment of the present invention.
[0097] The present invention also proposes a road target detection device based on a center point, such as Figure 5As shown, it mainly includes an image processing module 1, an image encoding module 2, a model training module 3 and a target detection module 4, wherein the image processing module is used to obtain historical road image data and perform image preprocessing on the one hand, and to obtain the road image to be detected based on the road video to be detected on the other hand; the image encoding module is mainly used to perform anchor point calculation and Gaussian scattering kernel encoding on the preprocessed road image to obtain a training sample set of the road image; the model training module is mainly used to train the pre-constructed CNN network according to the training sample set of the image encoding module to obtain a trained CNN network model; the target detection module is mainly used to use the trained CNN network model to process the road image to be detected, obtain the heat map of the target key points and the target size regression value of the road image to be detected, and generate the target box and target category on the road image to be detected to obtain the road target detection result.
[0098] The present invention also proposes a center point-based road target detection device, comprising a processor and a storage medium; wherein the storage medium is used to store instructions; and the processor is used to operate according to the instructions to execute the steps of the road target detection method of the present invention.
[0099] The present invention also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the road target detection method of the present invention are implemented.
[0100] The present invention uses the center point of the target object to represent the entire target object. Compared with the detection method in the prior art that uses a box to represent the target object, the present invention converts the target object detection problem into an estimation problem of a key point in the image. Since only one point is involved, the detection operation is simpler and no screening is required after detection, which can greatly reduce the detection time. While ensuring the target detection performance, it effectively saves hardware resources and improves the target detection efficiency.
[0101] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0102] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0103] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0105] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A road target detection method based on center point, characterized in that: The steps include: Obtain historical road image data and perform image preprocessing; Anchor point calculation and Gaussian scattering kernel encoding are performed based on the preprocessed road image to obtain a training sample set of the road image; The pre-built CNN network is trained using the training sample set to obtain a trained CNN network model. The specific operations of CNN network training are as follows: (1) Obtain the pre-built CNN network and initialize the network parameters; (2) Use the CNN network to downsample each image training sample in the training sample set to obtain the corresponding downsampled image; (3) For each downsampled image, the key point coordinates of the downsampled image and the pixel category label of the downsampled image are calculated according to the downsampling factor of the CNN network. The calculation formula of the key point coordinates of the downsampled image is as follows: ; in, represents the coordinates of the key points of the downsampled image, represents the coordinates of the real key points in the image training sample, is the downsampling factor; (4) Based on the target categories in the historical road image data, the key point coordinates of the downsampled image, and the pixel category labels, the network loss is calculated using the loss function of the CNN network, and the network parameters of the CNN network are updated through loss reverse propagation; (5) Repeat steps (2) to (4) until the network loss converges and a trained CNN network model is obtained; The trained CNN network model is used to process the road image to be detected to obtain the key point heat map and target size regression value of the road image to be detected; the process of obtaining the key point heat map and target size regression value is as follows: Obtaining an image of the road to be detected according to the video of the road to be detected; The trained CNN network model is used to process the road image to be detected, and the road target feature map of each target in the road image to be detected is obtained. The key point heat map corresponding to each target category is obtained through forward propagation, and the key point heat map includes all targets under the target category. The target size regression value, i.e., the width and height of the target, is obtained according to the peak point of the road target feature map; the road target detection result is obtained according to the key point heat map and the target size regression value; the process of obtaining the road target detection result is as follows: The target center point coordinates of each target are extracted from the key point heat map through maximum pooling, and the target category is obtained; Generate a target frame on the road image to be detected according to the target center point coordinates and the corresponding target size regression value; Associate the target category and target frame of each target, and output the road image to be detected containing the target category and target frame as the road target detection result.
2. A road target detection method based on center point according to claim 1, characterized in that: The specific operations of the image preprocessing are as follows: Acquire historical road image data, wherein the historical road image data includes a plurality of historical road images and a target category corresponding to each historical road image; Performing data annotation on the historical road images, determining the annotation frame of each historical road image, and obtaining annotated images; Perform data augmentation on the annotated image to obtain the preprocessed road image.
3. The method for detecting a road target based on a center point according to claim 2, characterized in that: For any preprocessed road image, the specific operations of anchor point calculation and Gaussian scattering kernel encoding are as follows: The image coordinate system is established with the lower left corner of the preprocessed road image as the coordinate origin; Calculate the coordinates of the real key points based on the annotation box of the preprocessed road image: ; in, represents the coordinates of the real key points, is the horizontal coordinate of the real key point, is the ordinate of the real key point, is the coordinate of the pixel point in the upper left corner of the annotation box, The coordinates of the pixel point at the lower right corner of the annotation box; Obtaining the target perception center area according to the annotation box of the preprocessed road image; Based on the coordinates of the real key points, the Gaussian scattering kernel is used to calculate the category labels of all pixels in the target perception center area: ; in, represents the category label of the i-th pixel in the target perception center area, , is the coordinate of the i-th pixel in the target perception center area, is the standard deviation of the size of the target perception center area, , is the number of pixels in the target perception center area.
4. A road target detection device based on a center point, characterized in that: include: The image processing module is used to obtain historical road image data and perform image preprocessing on the one hand, and to obtain the image of the road to be detected based on the video of the road to be detected on the other hand; An image encoding module is used to perform anchor point calculation and Gaussian scattering kernel encoding on the preprocessed road image to obtain a training sample set of the road image; The model training module is used to train the pre-built CNN network according to the training sample set of the image coding module to obtain a trained CNN network model; the specific operations of CNN network training are as follows: (1) Obtain the pre-built CNN network and initialize the network parameters; (2) Use the CNN network to downsample each image training sample in the training sample set to obtain the corresponding downsampled image; (3) For each downsampled image, the key point coordinates of the downsampled image and the pixel category label of the downsampled image are calculated according to the downsampling factor of the CNN network. The calculation formula of the key point coordinates of the downsampled image is as follows: ; in, represents the coordinates of the key points of the downsampled image, represents the coordinates of the real key points in the image training sample, is the downsampling factor; (4) Based on the target categories in the historical road image data, the key point coordinates of the downsampled image, and the pixel category labels, the network loss is calculated using the loss function of the CNN network, and the network parameters of the CNN network are updated through loss reverse propagation; (5) Repeat steps (2) to (4) until the network loss converges and a trained CNN network model is obtained; The target detection module is used to process the road image to be detected using the trained CNN network model, obtain the heat map of the target key points and the target size regression value of the road image to be detected, and generate the target box and target category on the road image to be detected to obtain the road target detection result; The process of obtaining the key point heat map and target size regression value is as follows: Obtaining an image of the road to be detected according to the video of the road to be detected; The trained CNN network model is used to process the road image to be detected, and the road target feature map of each target in the road image to be detected is obtained. The key point heat map corresponding to each target category is obtained through forward propagation, and the key point heat map includes all targets under the target category. Obtain the target size regression value, i.e., the width and height of the target, according to the peak point of the road target feature map; The process of obtaining the road target detection result is as follows: The target center point coordinates of each target are extracted from the key point heat map through maximum pooling, and the target category is obtained; Generate a target frame on the road image to be detected according to the target center point coordinates and the corresponding target size regression value; Associate the target category and target frame of each target, and output the road image to be detected containing the target category and target frame as the road target detection result.
5. A road target detection device based on a center point, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 4.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Conductor target electromagnetic scattering simulation method based on NURBS (Non-Uniform Rational B-Splines) curved surface modeling
CN106156431A
Method for detecting SAR image cluster target based on target number posteriority
CN107742113A
Video target detection method based on improved self-adaptive anchor point R-CNN
CN111832479A
Medical processing apparatus
EP3683771A1
Cited By
Road target detection method and device and storage medium
CN120747920A
