An edge detection model, method and storage medium based on target detection

By adopting an edge detection model based on target detection in the autonomous driving system, multi-branch convolution operations and feature fusion are used to generate a bottom edge height map, which solves the shortcomings of traditional edge detection algorithms in terms of anti-interference and noise processing, and achieves Accurate detection and distance measurement of target object edges in autonomous driving systems.

CN110176017BInactive Publication Date: 2024-08-27ZONGMU TECH SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910158347.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-01
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional edge detection algorithms have deficiencies in anti-interference and noise processing, resulting in blurred image edges and inability to effectively extract them at multiple scales, affecting the trajectory prediction and body control of autonomous vehicles.

Method used

An edge detection model based on target detection is adopted, and the instance segmentation result of a specific target category of the input image is obtained through the target detection module. Multi-branch convolution operation and feature fusion are used to generate a bottom edge height map, and the target detection frame is obtained through camera calibration parameter conversion. relative positional relationship.

Benefits of technology

It improves the accuracy and anti-interference ability of image edge detection, can effectively extract edges at multiple scales, and enhances the target object detection and distance measurement capabilities of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110176017B
    Figure CN110176017B
Patent Text Reader

Abstract

The present invention provides an edge detection model, method and storage medium based on target detection. The instance segmentation result of a specific target category of an input image is obtained through a target detection module. A convolution operation is repeatedly performed on a feature map with multiple branches, and the multi-branch convolution operation results are merged, and finally a full connection expansion is performed to output a bottom edge height map. The feature information of each pixel point in the bottom edge height map is compared with the feature information of the pixel points in the column in the original feature map to obtain the corresponding relationship between the pixel points in a single column of the bottom edge height map and the pixel points in the column of the original feature map, and the corresponding position relationship between the pixel points in the bottom edge height map in the original feature map is obtained. The lower edge contour of the instance in the target detection frame is obtained by the corresponding position relationship, and the relative position relationship is obtained by matrix conversion between the target detection lower edge contour and the camera calibration parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automotive electronic technology, and in particular to an edge detection model, method and storage medium based on target detection. Background Art

[0002] Images are an important source of information for people to obtain from the objective world. Image information mainly comes from its edges and contours. The so-called edge refers to the collection of pixels whose surrounding pixel grayscale changes sharply. It exists between the target, background and area. Image edge detection is an important content and step in image processing.

[0003] In recent years, with the increasing demand for autonomous driving, autonomous parking systems have become a topic of in-depth research. However, during the parking process, obtaining the bottom edges of targets such as vehicles, pedestrians, and obstacles in the current driving area, and then calculating the bottom edge distance between the unmanned vehicle and other targets, plays an important role in vehicle trajectory prediction and body control.

[0004] Traditional edge detection algorithms such as differential operator method and optimal operator method use the maximum value of gradient or the zero-crossing value of second-order derivative to obtain the edge of the image. Although these algorithms have good real-time performance, they have poor anti-interference performance and cannot effectively overcome the influence of noise, resulting in blurred edges after image denoising. They cannot extract image edges at multiple scales, resulting in poor positioning. Summary of the invention

[0005] In order to solve the above and other potential technical problems, the present invention provides an edge detection model, method and storage medium based on target detection, obtains the instance segmentation result of a specific target category of an input image through a target detection module, repeatedly performs convolution operations with multiple branches on a feature map, merges the results of the multi-branch convolution operations, and finally performs a full connection expansion to output a bottom edge height map; compares the feature information of each pixel point in the bottom edge height map with the feature information of the column of pixels in the original feature map, obtains the correspondence between the single column of pixels in the bottom edge height map and the column of pixels in the original feature map, obtains the corresponding position relationship between each pixel point in the bottom edge height map in the original feature map, obtains the lower edge contour of the instance in the target detection frame through the corresponding position relationship, and obtains the relative position relationship between the target detection lower edge contour and the camera calibration parameters through matrix conversion.

[0006] A method for training a lower edge detection model for target detection comprises the following steps:

[0007] Acquire a sample image, wherein the sample image is annotated with an instance segmentation result, and the instance segmentation result includes a target detection box;

[0008] Inputting the sample image into a pre-established initial neural network model;

[0009] The sample image is used to train the initial neural network model, firstly a bottom edge height map of the target detection feature is obtained, and then the target bottom edge detection model is obtained by converting the height map;

[0010] Compare the result output by the target lower edge detection model during the execution process with each of the target lower edge detection annotation lines to obtain a comparison result;

[0011] The parameters in the target lower edge detection model are adjusted according to the comparison result so that the loss function of the target lower edge detection model is minimized.

[0012] Furthermore, the target lower edge detection frame includes the following elements:

[0013] A. Segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection frame;

[0014] B. Instance segmentation results of specific categories after semantic segmentation;

[0015] C. The lower edge contour of the target in each instance segmentation result;

[0016] D. The contact points with the ground in the edge contour line under the segmentation results of each instance.

[0017] A lower edge detection method for target detection comprises the following steps:

[0018] S01: Input an image, and obtain an instance segmentation result of a specific target category of the input image through a target detection module, wherein the instance segmentation result includes a target detection frame and a feature map of the target detection frame;

[0019] S02: Input the instance segmentation result into the bottom edge detection module, repeatedly perform convolution operations on the feature map with multiple branches, merge the results of the multi-branch convolution operations, and finally perform full connection expansion to output the bottom edge height map;

[0020] S03: Compare the feature information of each pixel in the bottom edge height map with the feature information of the pixel column in the original feature map to obtain the correspondence between the pixel columns in the bottom edge height map and the pixel columns in the original feature map, obtain the corresponding position relationship between each pixel in the bottom edge height map in the original feature map, and obtain the lower edge contour of the instance in the target detection frame using the corresponding position relationship.

[0021] Furthermore, it also includes step S04: extracting the pixel point at the lowest position relative to the ground in the lower edge contour of the instance in the target detection frame, judging that the pixel point is the contact point between the object shown in the target detection frame and the ground, using the calibration parameters of the body camera to obtain the projection of the body camera on the ground, and obtaining the relative position relationship between the body and the target detection frame through coordinate system conversion.

[0022] Furthermore, the method further includes step S021: a feature fusion step, wherein the feature fusion step is used to fuse the multiple convolutional layer feature maps extracted separately when extracting the feature map in step S01, and obtain a feature map of the fused features, and use the feature map of the fused features to replace the original feature map.

[0023] Furthermore, the feature fusion module uses the ROI Align algorithm to obtain the corresponding feature regions of each detected target in the target detection result on the multiple feature maps temporarily saved in (2), and then merges the multiple feature regions to obtain the 576*32*6 fusion feature of the detected target.

[0024] Furthermore, in step S02, convolution operations are repeatedly performed on the feature map with multiple branches, and the results of the multiple branch convolution operations are merged, and finally a full connection expansion is performed to output a bottom edge height map, wherein the multiple branches use two branch convolution operations in a preferred embodiment. The bottom edge detection module repeatedly performs a series of 1x1 convolution operations on two branches on the 576*32*6 fusion features of each detected target obtained by the target detection module, and then merges them, and finally a full connection expansion is performed to obtain a 1*96 bottom edge height map of the detected target.

[0025] Furthermore, it also includes S041: before converting the relative position relationship between the main body and the target detection frame, it also includes merging each detected target frame in the target detection result and the bottom edge height map of the detected target to obtain a merged target bottom edge detection map.

[0026] Furthermore, when converting the relative position relationship between the main body and the target detection frame, the conversion relationship uses the main body camera calibration parameter coordinates to map the ground contact point coordinates and the target detection frame and the ground contact point coordinates to obtain the relative position relationship through a matrix transformation relationship.

[0027] Furthermore, the target lower edge detection frame includes the following elements:

[0028] A segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection box;

[0029] B. Instance segmentation results of specific categories after semantic segmentation;

[0030] C. The lower edge contour of the target in each instance segmentation result;

[0031] D. The contact points with the ground in the lower edge contour of each instance segmentation result.

[0032] A lower edge detection model for target detection includes the following parts:

[0033] The target detection module is used to segment the parts with different semantics in the captured image to form a segmentation result, and then perform instance segmentation on the segmentation result to obtain each instance with different semantics, and mark each instance in the form of a target detection box;

[0034] A feature extraction module, wherein the feature extraction module is used to extract features of a target image in each instance target detection frame to form a feature map;

[0035] A bottom edge height map extraction module, which is used to repeatedly perform convolution operations on the feature map with multiple branches, then merge the results of the multi-branch convolution operations, and finally perform a full connection to expand the bottom edge height map of the target;

[0036] A lower edge extraction module is used to compare the feature information of each pixel point in the bottom edge height map with the feature information of the pixel point column in the original feature map, obtain the correspondence between the pixel points in a single column of the bottom edge height map and the pixel points in the column of the original feature map, obtain the corresponding position relationship between each pixel point in the bottom edge height map in the original feature map, and obtain the lower edge contour of the instance in the target detection frame with the corresponding position relationship.

[0037] Furthermore, the feature extraction module includes but is not limited to extracting features of a specific convolutional layer in the target detection frame.

[0038] Furthermore, the feature extraction module includes extracting features of multiple convolutional layers in the target detection frame respectively, and also includes a feature fusion module, which is used to fuse the features of the multiple convolutional layers extracted respectively, and obtain a feature map of the fused features, and use the feature map of the fused features to replace the original feature map.

[0039] Furthermore, when the bottom edge height map extraction module repeatedly performs convolution operations on the feature map with multiple branches, the dimension number of the convolution kernel of each convolution operation is not specific, but the convolution kernel size (hk, wk) is specific to hk equal to 1, wk equal to 1.

[0040] Furthermore, the targets of the target lower edge detection frame include movable objects and stationary objects. The movable objects include pedestrians, devices held by pedestrians that touch the ground, and mobile devices including but not limited to wheelchairs, balance bikes, bicycles, carts, motorcycles, and motor vehicles; the stationary objects include various ground obstacles including signs, roadblocks, trees, fences, and pillars.

[0041] Furthermore, the target lower edge detection frame includes the following elements:

[0042] A segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection box;

[0043] B. Instance segmentation results of specific categories after semantic segmentation;

[0044] C. The lower edge contour of the target in each instance segmentation result;

[0045] D. The contact points with the ground in the lower edge contour of each instance segmentation result.

[0046] Furthermore, the feature extraction module includes a preliminary feature extraction part and a complex feature extraction part. The preliminary feature extraction part and the complex feature extraction part serve as two branches and can work simultaneously. The two branches are used for feature extraction, that is, preliminary feature extraction is first performed through a basic network, and then complex feature extraction is performed through a special network. Image features at different stages in the preliminary feature extraction and complex feature extraction will be temporarily saved.

[0047] Furthermore, the preliminary feature extraction part branch content in the feature extraction module can call the preliminary feature extraction result of the feature extraction part in the target detection module.

[0048] Furthermore, the feature extraction module uses the Resnet network to perform preliminary feature extraction on the captured image, and the RRC network then performs more complex feature extraction. The image feature maps at different stages of the Resnet network and RRC network processing will be temporarily saved, and finally the result with the target detection box will be output.

[0049] Furthermore, the target detection module also includes a feature extraction part. The feature extraction part of the target detection module can also use two branches to perform feature extraction, that is, first perform preliminary feature extraction through the basic network, and then perform complex feature extraction through the special network. The image features at different stages of the preliminary feature extraction and complex feature extraction will be temporarily saved.

[0050] A relative position conversion method based on target height map extraction comprises the following steps:

[0051] S01: The target detection module segments the captured image with different semantics to form a segmentation result, and then performs instance segmentation on the segmentation result to obtain various instances in different semantics, and annotates each instance in the form of a target detection frame, extracts the features of the target image in each instance target detection frame, and forms a feature map; by repeatedly performing convolution operations on the feature map with multiple branches, and then merging the results of the multi-branch convolution operations, a fully connected bottom edge height map of the expanded target is finally performed, and the feature information of each pixel in the bottom edge height map is compared with the feature information of the column of pixels in the original feature map, and the corresponding relationship between the single column of pixels in the bottom edge height map and the column of pixels in the original feature map is obtained, and the corresponding position relationship of each pixel in the bottom edge height map in the original feature map is obtained, and the lower edge contour of the instance in the target detection frame is obtained by the corresponding position relationship;

[0052] S02: Extract the pixel point at the lowest position relative to the ground in the lower edge contour of the instance in the target detection frame, determine that the pixel point is the contact point between the object shown in the target detection frame and the ground, use the calibration parameters of the body camera to obtain the projection of the body camera on the ground, and obtain the relative position relationship between the body and the target detection frame through coordinate system conversion.

[0053] As described above, the present invention has the following beneficial effects:

[0054] (1) The target detection module uses the RRC network to enhance the capture of the global context information of the target object and can achieve good detection of objects of different sizes.

[0055] (2) The feature fusion module performs multi-scale feature fusion on the detection box of each detected object and its corresponding feature maps at multiple different stages, making the fused features more representative of the detected object.

[0056] (3) The bottom edge detection module makes extensive use of dual-branch 1x1 convolution operations to improve image accuracy without affecting the time consumption.

[0057] (4) The bottom edge detection image of the object in the top view output by the front fisheye to top view module can realize the accurate distance measurement of the detected target. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 Shown is a flow chart of the present invention.

[0060] Figure 2 Shown is a schematic diagram of the bottom edge height map network structure of the present invention.

[0061] Figure 3 Shown is a schematic diagram of an image captured by the present invention.

[0062] Figure 4 Shown is a schematic diagram of an example detection result of a target detection module in an image captured by the present invention.

[0063] Figure 5 Shown is a schematic diagram of the bottom edge detection result output by the bottom edge detection module of the present invention.

[0064] Figure 6 Shown is the feature value of each pixel in the feature map before converting the feature map into the bottom edge height map in one embodiment of the present invention.

[0065] Figure 7 Display as Figure 6 Schematic diagram of the bottom edge height map obtained in .

[0066] Figure 8 Shown is a schematic diagram of the relative coordinate position relationship between the camera calibration origin and the target detection frame in the top view after matrix transformation. DETAILED DESCRIPTION

[0067] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0068] It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change of the proportion relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effects and purposes that can be achieved by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. The change or adjustment of their relative relationship should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.

[0069] See also Figures 1 to 8 ,

[0070] A method for training a lower edge detection model for target detection comprises the following steps:

[0071] Acquire a sample image, wherein the sample image is annotated with an instance segmentation result, and the instance segmentation result includes a target detection box;

[0072] Inputting the sample image into a pre-established initial neural network model;

[0073] The sample image is used to train the initial neural network model, firstly a bottom edge height map of the target detection feature is obtained, and then the target bottom edge detection model is obtained by converting the height map;

[0074] Compare the result output by the target lower edge detection model during the execution process with each of the target lower edge detection annotation lines to obtain a comparison result;

[0075] The parameters in the target lower edge detection model are adjusted according to the comparison result so that the loss function of the target lower edge detection model is minimized.

[0076] Furthermore, the target lower edge detection frame includes the following elements:

[0077] E. Segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection frame;

[0078] F. Instance segmentation results of specific categories after semantic segmentation;

[0079] G. The lower edge contour of the target in each instance segmentation result;

[0080] H. The contact points with the ground in the edge contour line of each instance segmentation result.

[0081] A lower edge detection method for target detection comprises the following steps:

[0082] S01: Input an image, and obtain an instance segmentation result of a specific target category of the input image through a target detection module, wherein the instance segmentation result includes a target detection frame and a feature map of the target detection frame;

[0083] S02: Input the instance segmentation result into the bottom edge detection module, repeatedly perform convolution operations on the feature map with multiple branches, merge the results of the multi-branch convolution operations, and finally perform full connection expansion to output the bottom edge height map;

[0084] S03: Compare the feature information of each pixel in the bottom edge height map with the feature information of the pixel column in the original feature map to obtain the correspondence between the pixel columns in the bottom edge height map and the pixel columns in the original feature map, obtain the corresponding position relationship between each pixel in the bottom edge height map in the original feature map, and obtain the lower edge contour of the instance in the target detection frame using the corresponding position relationship.

[0085] Furthermore, it also includes step S04: extracting the pixel point at the lowest position relative to the ground in the lower edge contour of the instance in the target detection frame, judging that the pixel point is the contact point between the object shown in the target detection frame and the ground, using the calibration parameters of the body camera to obtain the projection of the body camera on the ground, and obtaining the relative position relationship between the body and the target detection frame through coordinate system conversion.

[0086] Furthermore, the method further includes step S021: a feature fusion step, wherein the feature fusion step is used to fuse the multiple convolutional layer feature maps extracted separately when extracting the feature map in step S01, and obtain a feature map of the fused features, and use the feature map of the fused features to replace the original feature map.

[0087] Furthermore, the feature fusion module uses the ROI Align algorithm to obtain the corresponding feature regions of each detected target in the target detection result on the multiple feature maps temporarily saved in (2), and then merges the multiple feature regions to obtain the 576*32*6 fusion feature of the detected target.

[0088] Furthermore, in step S02, convolution operations are repeatedly performed on the feature map with multiple branches, and the results of the multiple branch convolution operations are merged, and finally a full connection expansion is performed to output a bottom edge height map, wherein the multiple branches use two branch convolution operations in a preferred embodiment. The bottom edge detection module repeatedly performs a series of 1x1 convolution operations on two branches on the 576*32*6 fusion features of each detected target obtained by the target detection module, and then merges them, and finally a full connection expansion is performed to obtain a 1*96 bottom edge height map of the detected target.

[0089] Furthermore, it also includes S041: before converting the relative position relationship between the main body and the target detection frame, it also includes merging each detected target frame in the target detection result and the bottom edge height map of the detected target to obtain a merged target bottom edge detection map.

[0090] Furthermore, when converting the relative position relationship between the main body and the target detection frame, the conversion relationship uses the main body camera calibration parameter coordinates to map the ground contact point coordinates and the target detection frame and the ground contact point coordinates to obtain the relative position relationship through a matrix transformation relationship.

[0091] Furthermore, the target lower edge detection frame includes the following elements:

[0092] A segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection box;

[0093] B. Instance segmentation results of specific categories after semantic segmentation;

[0094] C. The lower edge contour of the target in each instance segmentation result;

[0095] D. The contact points with the ground in the lower edge contour of each instance segmentation result.

[0096] A lower edge detection model for target detection includes the following parts:

[0097] The target detection module is used to segment the parts with different semantics in the captured image to form a segmentation result, and then perform instance segmentation on the segmentation result to obtain each instance with different semantics, and mark each instance in the form of a target detection box;

[0098] A feature extraction module, wherein the feature extraction module is used to extract features of a target image in each instance target detection frame to form a feature map;

[0099] A bottom edge height map extraction module, which is used to repeatedly perform convolution operations on the feature map with multiple branches, then merge the results of the multi-branch convolution operations, and finally perform a full connection to expand the bottom edge height map of the target;

[0100] A lower edge extraction module is used to compare the feature information of each pixel point in the bottom edge height map with the feature information of the pixel point column in the original feature map, obtain the correspondence between the pixel points in a single column of the bottom edge height map and the pixel points in the column of the original feature map, obtain the corresponding position relationship between each pixel point in the bottom edge height map in the original feature map, and obtain the lower edge contour of the instance in the target detection frame with the corresponding position relationship.

[0101] Furthermore, the feature extraction module includes but is not limited to extracting features of a specific convolutional layer in the target detection frame.

[0102] Furthermore, the feature extraction module includes extracting features of multiple convolutional layers in the target detection frame respectively, and also includes a feature fusion module, which is used to fuse the features of the multiple convolutional layers extracted respectively, and obtain a feature map of the fused features, and use the feature map of the fused features to replace the original feature map.

[0103] Furthermore, when the bottom edge height map extraction module repeatedly performs convolution operations on the feature map with multiple branches, the dimension number of the convolution kernel of each convolution operation is not specific, but the convolution kernel size (hk, wk) is specific to hk equal to 1, wk equal to 1.

[0104] Furthermore, the targets of the target lower edge detection frame include movable objects and stationary objects. The movable objects include pedestrians, devices held by pedestrians that touch the ground, and mobile devices including but not limited to wheelchairs, balance bikes, bicycles, carts, motorcycles, and motor vehicles; the stationary objects include various ground obstacles including signs, roadblocks, trees, fences, and pillars.

[0105] Furthermore, the target lower edge detection frame includes the following elements:

[0106] A segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection box;

[0107] B. Instance segmentation results of specific categories after semantic segmentation;

[0108] C. The lower edge contour of the target in each instance segmentation result;

[0109] D. The contact points with the ground in the lower edge contour of each instance segmentation result.

[0110] Furthermore, the feature extraction module includes a preliminary feature extraction part and a complex feature extraction part. The preliminary feature extraction part and the complex feature extraction part serve as two branches and can work simultaneously. The two branches are used for feature extraction, that is, preliminary feature extraction is first performed through a basic network, and then complex feature extraction is performed through a special network. Image features at different stages in the preliminary feature extraction and complex feature extraction will be temporarily saved.

[0111] Furthermore, the preliminary feature extraction part branch content in the feature extraction module can call the preliminary feature extraction result of the feature extraction part in the target detection module.

[0112] Furthermore, the feature extraction module uses the Resnet network to perform preliminary feature extraction on the captured image, and the RRC network then performs more complex feature extraction. The image feature maps at different stages of the Resnet network and RRC network processing will be temporarily saved, and finally the result with the target detection box will be output.

[0113] Furthermore, the target detection module also includes a feature extraction part. The feature extraction part of the target detection module can also use two branches to perform feature extraction, that is, first perform preliminary feature extraction through the basic network, and then perform complex feature extraction through the special network. The image features at different stages of the preliminary feature extraction and complex feature extraction will be temporarily saved.

[0114] A relative position conversion method based on target height map extraction comprises the following steps:

[0115] S01: The target detection module segments the captured image with different semantics to form a segmentation result, and then performs instance segmentation on the segmentation result to obtain various instances in different semantics, and annotates each instance in the form of a target detection frame, extracts the features of the target image in each instance target detection frame, and forms a feature map; by repeatedly performing convolution operations on the feature map with multiple branches, and then merging the results of the multi-branch convolution operations, a fully connected bottom edge height map of the expanded target is finally performed, and the feature information of each pixel in the bottom edge height map is compared with the feature information of the column of pixels in the original feature map, and the corresponding relationship between the single column of pixels in the bottom edge height map and the column of pixels in the original feature map is obtained, and the corresponding position relationship of each pixel in the bottom edge height map in the original feature map is obtained, and the lower edge contour of the instance in the target detection frame is obtained by the corresponding position relationship;

[0116] S02: Extract the pixel point at the lowest position relative to the ground in the lower edge contour of the instance in the target detection frame, determine that the pixel point is the contact point between the object shown in the target detection frame and the ground, use the calibration parameters of the body camera to obtain the projection of the body camera on the ground, and obtain the relative position relationship between the body and the target detection frame through coordinate system conversion.

[0117] As a preferred embodiment, this embodiment also provides a terminal device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including independent servers, or server clusters composed of multiple servers) that can execute programs. The terminal device of this embodiment includes at least but is not limited to: a memory and a processor that can communicate with each other through a system bus. It should be pointed out that the terminal device has component memory and processor, but it should be understood that it is not required to implement all the components shown, and the lower edge detection method of target detection that can be replaced can implement more or fewer components.

[0118] As a preferred embodiment, the memory (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device 20. In other embodiments, the memory can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory is generally used to store the operating system and various application software installed on the computer device, such as the lower edge detection program code of the target detection in the embodiment, etc. In addition, the memory can also be used to temporarily store various types of data that have been output or are to be output.

[0119] The processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chips in some embodiments. The processor is generally used to control the overall operation of a computer device. In the present embodiment, the processor is used to run the program code stored in the memory or process data, such as the detection program of operation, to realize the function of the lower edge detection model of target detection in the embodiment.

[0120] A computer-readable storage medium stores a computer program, wherein the program implements the steps in the above method when executed by a processor.

[0121] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program realizes the corresponding function when executed by the processor. The computer-readable storage medium of this embodiment is used to store a lower edge detection program for target detection, and when executed by the processor, the lower edge detection method of target detection in the embodiment is realized.

[0122] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. An edge detection method for target detection, characterized in that: The following steps are involved: Acquire a sample image, wherein the sample image is annotated with an instance segmentation result, wherein the instance segmentation result includes a target detection box and a corresponding feature map; Inputting the sample image into a pre-established initial neural network model; The initial neural network model is trained using the sample image to obtain a bottom edge height map representing target detection features, and the bottom edge height map is input into a target bottom edge detection model; a result output by the target bottom edge detection model during execution is compared with each target bottom edge detection annotation line; Obtaining comparison results; Adjusting parameters in the target lower edge detection model according to the comparison result so that the loss function of the target lower edge detection model is minimized; The edge detection method for target detection further comprises the following steps: S01: Input an image and obtain instance segmentation results of specific target categories of the input image through the target detection module; S02: Input the instance segmentation result into the bottom edge height map module, repeatedly perform convolution operation on the feature map with multiple branches, merge the multi-branch convolution operation results, and finally perform full connection expansion to output the bottom edge height map; wherein, after repeatedly performing 1x1 convolution operation on multiple branches and merging them, the branches are input into the fully connected layer of the bottom edge height map extraction module to obtain a bottom edge height map with a height dimension of 1; S03: Compare the feature information of each pixel in the bottom edge height map with the feature information of the pixel column in the corresponding feature map to obtain the correspondence between the pixel columns in the bottom edge height map and the pixel columns in the corresponding feature map, obtain the corresponding position relationship between each pixel in the bottom edge height map and the corresponding feature map, and obtain the lower edge contour of the instance in the target detection frame based on the corresponding position relationship; S04: Extract the pixel point at the lowest position relative to the ground in the lower edge contour of the instance in the target detection frame, determine that the pixel point is the contact point between the object shown in the target detection frame and the ground, use the calibration parameters of the body camera to obtain the projection of the body camera on the ground, and obtain the relative position relationship between the body and the target detection frame through coordinate system conversion.

2. The edge detection method for target detection according to claim 1, characterized in that: The method further includes step S021: a feature fusion step, wherein the feature fusion step is used to fuse the multiple convolutional layer feature maps extracted separately when extracting the feature map in step S01, and obtain a feature map of fused features, and use the feature map of fused features to replace the original feature map.

3. The edge detection method for target detection according to claim 1, characterized in that: It also includes step S041: before converting the relative position relationship between the main body and the target detection frame, it also includes merging each detected target frame in the target detection result and the bottom edge height map of the detected target to obtain a merged target bottom edge detection map.

4. The edge detection method for target detection according to claim 3, characterized in that: The target lower edge detection frame includes the following elements: A segmentation captures different semantic parts in the image and obtains the category elements of the semantic segmentation in the target detection box; B. Instance segmentation results of specific categories after semantic segmentation; C. The lower edge contour of the target in each instance segmentation result; D. The contact points with the ground in the lower edge contour of each instance segmentation result.

5. An edge detection device for target detection, characterized in that: Includes the following sections: The target detection module is used to segment the parts with different semantics in the captured image to form a segmentation result, and then perform instance segmentation on the segmentation result to obtain various instances with different semantics, and mark each instance in the form of a target detection frame; wherein the segmentation result after the semantic segmentation is divided into regions according to specific categories so as to achieve instance segmentation of the segmentation result to obtain various instances with different semantics; A feature extraction module, wherein the feature extraction module is used to extract features of a target image in each instance target detection frame to form a feature map; A bottom edge height map extraction module, the bottom edge height map extraction module is used to repeatedly perform convolution operations on the feature map with multiple branches, and then merge the results of the multi-branch convolution operations, and finally fully connect to expand the bottom edge height map of the target; by repeatedly performing 1x1 convolution operations on multiple branches and then merging them, the branches are input into the fully connected layer of the bottom edge height map extraction module to obtain a bottom edge height map with a height dimension of 1; a lower edge extraction module, the lower edge extraction module is used to compare the feature information of each pixel point in the bottom edge height map with the feature information of the column of pixels in the original feature map, obtain the correspondence between the single column of pixels in the bottom edge height map and the column of pixels in the original feature map, obtain the corresponding position relationship of each pixel point in the bottom edge height map in the original feature map, and obtain the lower edge contour of the instance in the target detection frame with the corresponding position relationship.

6. The edge detection device for target detection according to claim 5, characterized in that: The feature extraction module includes but is not limited to extracting features of a specific convolutional layer in the target detection frame.

7. The edge detection device for target detection according to claim 5, characterized in that: When the bottom edge height map extraction module repeatedly performs convolution operations on the feature map with multiple branches, the dimension number of the convolution kernel of each convolution operation is not specific, but the convolution kernel size (hk, wk) is specific to hk equal to 1, wk equal to 1.

8. The edge detection device for target detection according to claim 7, characterized in that: The feature extraction module includes a preliminary feature extraction part and a complex feature extraction part. The preliminary feature extraction part and the complex feature extraction part serve as two branches and can work simultaneously. The two branches are used for feature extraction, that is, preliminary feature extraction is first performed through a basic network, and then complex feature extraction is performed through a special network. Image features at different stages in the preliminary feature extraction and complex feature extraction will be temporarily saved.

9. The edge detection device for target detection according to any one of claims 5 to 8, characterized in that: The targets of the target lower edge detection frame include movable objects and stationary objects. The movable objects include pedestrians, devices held by pedestrians that touch the ground, including but not limited to mobile devices such as wheelchairs, balance bikes, bicycles, carts, motorcycles, and motor vehicles; the stationary objects include various ground obstacles such as signs, roadblocks, trees, fences, and pillars.

10. A relative position conversion method based on target height map extraction, characterized in that: The following steps are involved: S01: The target detection module segments the captured image into parts with different semantics to form a segmentation result, and then performs instance segmentation on the segmentation result to obtain various instances with different semantics, and marks each instance in the form of a target detection frame, and extracts the features of the target image in each instance target detection frame to form a feature map; by repeatedly performing convolution operations on the feature map with multiple branches, and then merging the results of the multi-branch convolution operations, a fully connected bottom edge height map of the target is finally expanded, and the feature information of each pixel in the bottom edge height map is compared with the feature information of the column of pixels in the original feature map to obtain the correspondence between the single column of pixels in the bottom edge height map and the column of pixels in the original feature map, and the corresponding position relationship of each pixel in the bottom edge height map in the original feature map is obtained, and the lower edge contour of the instance in the target detection frame is obtained by the corresponding position relationship; S02: extracting the pixel point at the lowest position relative to the ground in the lower edge contour of the instance in the target detection frame, determining that the pixel point is the contact point between the object shown in the target detection frame and the ground, using the calibration parameters of the body camera to obtain the projection of the body camera on the ground, and obtaining the relative position relationship between the body and the target detection frame through coordinate system conversion; The step of performing instance segmentation on the segmentation result to obtain various instances in different semantics includes dividing the segmentation result after semantic segmentation into regions according to specific categories so as to perform instance segmentation on the segmentation result to obtain various instances in different semantics; Among them, by repeatedly performing convolution operations with multiple branches on the feature map, and then merging the results of the multi-branch convolution operations, the bottom edge height map of the target is finally fully connected and expanded, including repeatedly performing 1x1 convolution operations on multiple branches, merging them, and then inputting them into the fully connected layer of the bottom edge height map extraction module to obtain a bottom edge height map with a height dimension of 1.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the method according to any one of claims 1 to 4 are implemented.