Method, device and electronic device for marking drivable area

By determining the target data set from multiple data sets to be annotated and optimizing the initial annotation model, combined with user interactive instructions and image processing technology, the problem of slow speed and low accuracy in annotating drivable areas in autonomous driving is solved, achieving high efficiency. , accurate labeling results.

CN112348122BActive Publication Date: 2024-10-29SUZHOU ZHITU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011413328.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-03
Publication Date
2024-10-29
Estimated Expiration
2040-12-03

AI Technical Summary

Technical Problem

Existing drivable area labeling methods in autonomous driving have problems such as slow labeling speed and low accuracy. In particular, methods based on manual and existing automated labeling software require a lot of manpower investment and are redundant, and fail to effectively utilize manual interactive instructions.

Method used

By determining the target data set from multiple preset data sets to be labeled, the initial labeling model is used to output the labeling results, and the labeling results are adjusted according to the preset drivable area determination rules to form a training set to optimize the initial labeling model until all to-be-labeled data sets are The annotated data set is annotated. This method combines user interactive instructions and image processing technology to gradually improve the accuracy of the annotation model.

Benefits of technology

It improves the efficiency and accuracy of drivable area labeling, reduces manpower investment, achieves high-quality labeling results by continuously optimizing the labeling model, and reduces the burden of subsequent labeling quality inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112348122B_ABST
    Figure CN112348122B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and electronic device for labeling a drivable area. First, a target data set is determined from a plurality of preset data sets to be labeled; the target data set and a preset interactive instruction are input into an initial labeling model, and a labeling result indicating the location of the drivable area corresponding to the target data set is output; the labeling result is adjusted according to the drivable area determination rule; the adjusted labeling result and the target data set form a training set, and the initial labeling model is trained by the training set to obtain a trained initial labeling model; the initial labeling model is replaced with the trained initial labeling model, and the step of determining the target data set from a plurality of data sets to be labeled is continued until each data set to be labeled is labeled. This method does not require a large amount of manpower, and improves the labeling efficiency; at the same time, this method labels images by continuously optimizing the labeling model, and improves the accuracy of model labeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a method, device and electronic equipment for marking a drivable area. Background Art

[0002] With the great success of deep learning in the field of image recognition, autonomous driving perception technology based on deep learning has become a current research hotspot. Compared with traditional image processing methods, autonomous driving perception technology based on deep learning has great advantages in environmental adaptability, robustness, and accuracy. However, supervised deep learning perception algorithms require a large amount of labeled data for training. Faced with the increasing demand for data, how to obtain a large amount of high-quality labeled data has become a problem that needs to be solved urgently.

[0003] The annotation of the drivable area in autonomous driving mainly involves annotating the boundary range of the drivable area in the image, and the annotation personnel need to have a certain professional understanding of road traffic scenes, such as the boundary range of the drivable area of ​​the road. In related technologies, there are two main methods for annotating the drivable area. One is to annotate the boundary of the drivable area in a purely manual way. This method has a slow annotation speed and is difficult to guarantee the annotation quality. The other method is an automatic annotation method based on image processing algorithms or pre-trained models. Although this method reduces the annotation difficulty and improves the annotation speed to a certain extent, the accuracy of the drivable area annotation task is not high, and a large amount of manpower is still required to manually adjust the annotation results. Summary of the invention

[0004] The object of the present invention is to provide a method, device and electronic device for marking a drivable area, so as to improve the marking speed and marking accuracy of the drivable area.

[0005] In a first aspect, the present invention provides a method for labeling a drivable area, the method comprising: determining a target data set from a plurality of preset data sets to be labeled; wherein each data set to be labeled contains a plurality of images to be labeled; inputting the target data set and a preset interaction instruction into an initial labeling model, and outputting a labeling result corresponding to the target data set; the labeling result is used to indicate the location of the drivable area; adjusting the labeling result according to a preset drivable area determination rule; forming a training set with the adjusted labeling result and the target data set, training an initial labeling model with the training set, and obtaining a trained initial labeling model; replacing the initial labeling model with the trained initial labeling model, and continuing to execute the step of determining the target data set from the plurality of data sets to be labeled, until each of the plurality of data sets to be labeled is labeled.

[0006] In an optional embodiment, the above-mentioned multiple data sets to be labeled are obtained in the following manner: by using a preset camera, multiple images containing scenes of a drivable area are collected; preprocessing is performed on each collected image to obtain multiple images to be labeled; wherein the preprocessing includes: one or more of image cropping, white balancing, denoising, histogram equalization, and normalization; and multiple images to be labeled are divided to obtain multiple data sets to be labeled.

[0007] In an optional embodiment, the above-mentioned step of inputting the target data set and preset interaction instructions into the initial annotation model and outputting the annotation results corresponding to the target data set includes: determining the target image based on the target data set; receiving the interaction instructions for the target image input by the user, inputting the interaction instructions and the target image into the initial annotation model, and obtaining the annotation results of the target image; continuing to execute the step of determining the target image based on the target data set until all images to be annotated in the target data set are annotated; wherein the interaction instructions include the drivable area in the target image indicated by the user.

[0008] In an optional embodiment, after the step of receiving the interaction instruction input by the user for the target image, the method further includes: converting the interaction instruction into a vector of a specified size or a matrix of a specified size so as to be suitable for reception by the initial annotation model.

[0009] In an optional embodiment, the step of adjusting the annotation results according to a preset drivable area determination rule includes: converting the annotation results into a binary image; the binary image contains multiple connected domains; filtering out the connected domains of the upper half of the binary image in the specified area; performing a closing operation on the filtered binary image to remove the hole areas in the middle of each connected domain in the filtered binary image; from the connected domains of the binary image after removing the holes, selecting the connected domain containing the largest number of pixels as the drivable area; and determining the binary image containing the selected drivable area as the adjusted annotation result.

[0010] In an optional embodiment, the above-mentioned annotation result is an image with two channels; the two channels are respectively a drivable area channel and a non-drivable area channel; the above-mentioned step of converting the annotation result into a binary image includes: for each pixel point in the image corresponding to the annotation result, performing the following operations: determining whether the channel value of the drivable area channel corresponding to the current pixel point is greater than the channel value of the non-drivable area channel; if greater, setting the pixel value of the current pixel point to the first value; if less than or equal to, setting the pixel value of the current pixel point to the second value.

[0011] In an optional embodiment, after the step of determining the binary image containing the selected drivable area as the adjusted marking result, the method further includes: using lane line position information to correct the adjusted marking result to obtain the final marking result; or, using millimeter wave radar detection information to correct the adjusted marking result to obtain the final marking result.

[0012] In an optional embodiment, before the step of determining the target data set from a plurality of preset data sets to be annotated, the method further includes: obtaining a sample set; wherein the sample set includes a plurality of samples, each sample includes a sample image, and a binary image corresponding to the sample image and annotated with a drivable area; based on the sample set and preset simulation instructions, training a first model to obtain a trained first model; and determining the trained first model as an initial annotation model.

[0013] In a second aspect, the present invention provides a device for labeling a drivable area, the device comprising: a data set determination module, used to determine a target data set from a plurality of preset data sets to be labeled; wherein each data set to be labeled contains a plurality of images to be labeled; a data input module, used to input the target data set and a preset interaction instruction into an initial labeling model, and output a labeling result corresponding to the target data set; the labeling result is used to indicate the location of the drivable area; a result adjustment module, used to adjust the labeling result according to a preset drivable area determination rule; a model training module, used to form a training set with the adjusted labeling result and the target data set, train the initial labeling model with the training set, and obtain the trained initial labeling model; a data labeling module, used to replace the initial labeling model with the trained initial labeling model, and continue to execute the step of determining the target data set from a plurality of data sets to be labeled, until each of the plurality of data sets to be labeled is labeled.

[0014] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for marking a drivable area as described in any of the aforementioned embodiments.

[0015] The embodiments of the present invention bring the following beneficial effects:

[0016] The present invention provides a method, device and electronic device for labeling a drivable area. First, a target data set is determined from a plurality of preset data sets to be labeled. Then, the target data set and a preset interactive instruction are input into an initial labeling model, and a labeling result indicating the location of the drivable area corresponding to the target data set is output. Then, the labeling result is adjusted according to the drivable area determination rule. The adjusted labeling result and the target data set form a training set, and the initial labeling model is trained by the training set to obtain a trained initial labeling model. Then, the initial labeling model is replaced with the trained initial labeling model, and the step of determining the target data set from a plurality of data sets to be labeled is continued until each data set to be labeled is labeled. This method does not require a large amount of manpower, and improves the labeling efficiency. At the same time, this method labels images by continuously optimizing the labeling model, and improves the accuracy of model labeling.

[0017] Other features and advantages of the present invention will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present invention.

[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 A flowchart of a method for marking a drivable area provided by an embodiment of the present invention;

[0021] Figure 2 A flowchart of another method for marking a drivable area provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of a lane line position information correction and annotation result provided by an embodiment of the present invention;

[0023] Figure 4 A flowchart of another method for marking a drivable area provided by an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of the structure of a drivable area marking device provided by an embodiment of the present invention;

[0025] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0027] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] The task of labeling the drivable area in autonomous driving can be regarded as a semantic segmentation task of the image. Unlike image classification or target detection tasks, the semantic segmentation task of the image requires the boundary of the target to be segmented to be drawn with a closed polygon. Compared with other types of image labeling tasks, image semantic segmentation labeling is difficult and extremely time-consuming. For the task of labeling the drivable area in autonomous driving, the labeler is also required to have a certain professional understanding of road traffic scenarios, such as the boundary range of the drivable area of ​​the road.

[0029] In the related technology, the labeling of the drivable area is to mark the boundary range of the drivable area in the image. Currently, the widely used methods mainly include two categories. One is to label the boundary of the drivable area in a purely manual way. This method has a slow labeling speed and the labeling quality is difficult to guarantee. The other method is an automatic labeling method based on image processing algorithms or pre-trained models. Although this method reduces the labeling difficulty and improves the labeling speed to a certain extent, the accuracy of the drivable area labeling task is not high, and a large amount of manpower is still required to manually adjust the labeling results.

[0030] Based on this, the technical shortcomings in the related technologies are summarized as follows:

[0031] 1. Manual data labeling requires a lot of time and effort, and the labeling efficiency is low.

[0032] 2. Labelers often do not have the professional knowledge corresponding to the labeling tasks, and huge training costs are required to cultivate labelers.

[0033] 3. The existing automatic labeling software uses the existing model with relatively poor performance to predict the data to be labeled first, and then manually corrects the poorly predicted data. In essence, it only reduces the scale of the data to be labeled, and the poorly predicted data still requires a lot of manual input.

[0034] 4. Existing automatic labeling software fails to bring human interaction instructions into the pre-labeling model. The two parts of model pre-labeling and human interaction are completely decoupled, and there is a lack of exploration and utilization of human interaction instructions.

[0035] 5. Existing automated labeling software needs to review the labeling results after model pre-labeling and manual adjustment, and there is redundancy between the various parts of the entire labeling process.

[0036] Based on the above shortcomings, the embodiments of the present invention provide a method, device and electronic device for marking a drivable area. The technology can be applied to the image data marking scene of the drivable area. In order to facilitate the understanding of the embodiments of the present invention, a method for marking a drivable area provided by the embodiments of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps:

[0037] Step S102, determining a target data set from a plurality of preset data sets to be labeled; wherein each data set to be labeled includes a plurality of images to be labeled.

[0038] The above-mentioned images to be annotated are collected in advance by the user, and the images to be annotated contain scenes of drivable areas. The drivable areas usually refer to areas where vehicles can drive in autonomous driving scenarios. The detection of drivable areas is mainly to provide path planning assistance for autonomous driving. In specific implementation, users will collect a large number of images to be annotated, and randomly divide these images into several data sets to be annotated with the same or similar number of images. For example, each data set to be annotated contains about 1,000 images to be annotated.

[0039] The target data set is any one of the multiple data sets to be labeled. Usually, each of the multiple data sets to be labeled will only be determined as the target data set once.

[0040] Step S104, input the target data set and the preset interaction instruction into the initial annotation model, and output the annotation result corresponding to the target data set; the annotation result is used to indicate the location of the drivable area.

[0041] The above-mentioned interactive instruction can be an instruction input by the user for indicating the position of the drivable area according to the drivable area in the image to be annotated in the target data set. In the specific implementation, each image to be annotated in the target data set and the interactive instruction corresponding to each image to be annotated are sequentially input into the initial annotation model, and the initial annotation model can output the annotation result corresponding to the target data set, wherein the annotation result corresponding to the target data set includes the annotation result corresponding to each image to be annotated in the target data set, and the annotation result is used to indicate the position of the drivable area in the image to be annotated.

[0042] The above-mentioned initial annotation model can be a neural network model or a deep learning model, such as a semantic segmentation model, which can usually be one of the semantic segmentation models such as DeepLabv3, Deeplabv3+, Unet, Unet++, BiSeNet or BiSeNetv2, etc. These semantic segmentation models can all be trained to achieve pixel-level segmentation of images. Specifically, the semantic segmentation model is usually a model modified on the basis of a classic semantic segmentation model, and such modification includes but is not limited to modification of the model input, modification of the model weight update method, modification of the model optimization target, and modification of the parameter propagation method in the model reasoning stage.

[0043] Step S106, adjusting the marking result according to the preset drivable area determination rule.

[0044] The above-mentioned drivable area determination rules can be set according to common sense of vehicle movement or user experience. For example, the drivable area generally only appears in the lower half of the image plane, and the upper half is the sky area. Therefore, this prior knowledge can be used to filter out the annotated area in the upper half of the annotation result image, and only retain the annotated area in the lower half; it is also possible to filter out the drivable area outside the lane lines based on the prior knowledge that the drivable area is generally located between lane lines.

[0045] Step S108, the adjusted annotation results and the target data set are combined into a training set, and the initial annotation model is trained by the training set to obtain a trained initial annotation model.

[0046] The above training set includes the adjusted annotation results and the target data set, which can be understood as the training set including multiple images to be annotated in the target data set and the annotation results corresponding to each image to be annotated. The initial annotation model is trained based on the training set to obtain a trained initial annotation model with better annotation accuracy than the initial annotation model.

[0047] Step S110, replacing the initial labeling model with the trained initial labeling model, and continuing to perform the step of determining the target data set from the multiple data sets to be labeled, until each of the multiple data sets to be labeled is labeled.

[0048] After obtaining the trained initial annotation model, the initial annotation model in step S104 is replaced with the trained initial annotation model, and steps S102-S108 are continued until each data set to be annotated is annotated. In the specific implementation, after replacing the initial annotation model with the trained initial annotation model, a new target data set is determined from multiple data sets to be annotated, the new target data set and the preset interaction instructions are input into the trained initial annotation model, and the annotation results corresponding to the new target data set are output; then, according to the preset drivable area determination rules, the annotation results corresponding to the new target data set are adjusted, and then the new data set and its corresponding adjusted annotation results form a training set, and the trained initial annotation model is trained by the training set to obtain a further optimized trained initial annotation model; then the initial annotation model in step S104 is replaced with the further optimized trained initial annotation model, and steps S102-S108 are continued until each data set to be annotated is annotated. This method can continuously improve the performance of the annotation model while the images to be annotated are annotated.

[0049] The embodiment of the present invention provides a method for labeling a drivable area. First, a target data set is determined from a plurality of preset data sets to be labeled. Then, the target data set and a preset interactive instruction are input into an initial labeling model, and a labeling result indicating the location of the drivable area corresponding to the target data set is output. Then, the labeling result is adjusted according to the drivable area determination rule. The adjusted labeling result and the target data set form a training set, and the initial labeling model is trained by the training set to obtain a trained initial labeling model. Then, the initial labeling model is replaced with the trained initial labeling model, and the step of determining the target data set from a plurality of data sets to be labeled is continued until each data set to be labeled is labeled. This method does not require a large amount of manpower, and improves the labeling efficiency. At the same time, this method labels images by continuously optimizing the labeling model, and improves the accuracy of model labeling.

[0050] The embodiment of the present invention further provides another method for labeling a drivable area, which is implemented on the basis of the method of the above embodiment; the method focuses on the specific process of inputting the target data set and the preset interaction instruction into the initial labeling model, outputting the labeling result corresponding to the target data set (implemented by the following steps S210-S212), and adjusting the labeling result according to the preset drivable area determination rule (implemented by the following steps S214-S222); Figure 2As shown, the method comprises the following steps:

[0051] Step S202: Capture multiple images containing scenes of the drivable area through a preset camera.

[0052] The preset camera may be a camera installed on a car or other vehicle. When multiple images of a drivable area scene are captured by the preset camera, the captured images need to be encoded and stored in a certain format for subsequent use.

[0053] Step S204: pre-process each collected image to obtain a plurality of images to be labeled.

[0054] In specific implementation, the above preprocessing may include but is not limited to: one or more of the following processes: cropping, white balance, denoising, histogram equalization, normalization, etc. In some embodiments, after the image is preprocessed, the preprocessed image needs to be screened, including removing abnormal data, removing non-road data, etc.; finally, an image to be labeled is formed for use in subsequent steps.

[0055] Step S206: divide the multiple images to be labeled to obtain multiple data sets to be labeled.

[0056] In a specific implementation, a plurality of images to be labeled are randomly divided into a number of data sets to be labeled with the same or similar number of images. For example, each data set to be labeled contains about 1,000 images to be labeled.

[0057] Step S208, determining a target data set from a plurality of preset data sets to be labeled; wherein each data set to be labeled includes a plurality of images to be labeled.

[0058] Step S210: determining a target image based on a target data set.

[0059] The target image can be any one in the target data set. Usually, each image to be labeled in the target data set will only be determined as a target image once.

[0060] Step S212, receiving the interactive instruction for the target image input by the user, inputting the interactive instruction and the target image into the initial annotation model to obtain the annotation result of the target image; continuing to execute the step of determining the target image based on the target data set until all the images to be annotated in the target data set are annotated.

[0061] The above-mentioned interactive instructions include the drivable area in the target image indicated by the user. The interactive instructions can be input by the user through the terminal device. In the specific implementation, after determining a target image from the target data set, the target image can be displayed on the interface of the electronic device, and the user refers to the image displayed on the interface to determine the position of the drivable area in the image, and inputs and displays the interactive instructions on the interface; the user can use a finger or an interactive tool (for example, a brush) to click on the drivable area in the target image in the interface to form an interactive instruction. Among them, the interface can be a display medium for displaying images to be annotated, dragging images to be annotated, zooming in and out images to be annotated, receiving interactive instructions, modifying interactive instructions, providing various interactive tools, displaying the segmentation results of the drivable area, displaying the boundaries of the drivable area, adjusting the boundaries of the drivable area, and other functions.

[0062] In some embodiments, after receiving an interaction instruction input by a user for a target image, the interaction instruction may be converted into a vector of a specified size or a matrix of a specified size, so as to be suitable for reception by an initial annotation model.

[0063] In the specific implementation, the converted interaction instructions for the target image and the target image are input into the initial annotation model to obtain the annotation result of the target image; the new target image is continuously determined based on the target data set, and the interaction instructions of the new target image are received, and the interaction instructions and the new target image are input into the initial annotation model to obtain the annotation result of the new target image, and the new target image is determined again based on the target data set until all the images to be annotated in the target data set are determined as target images.

[0064] In some embodiments, the annotation results of each target image will be displayed on the user interface, and the user can determine whether the displayed annotation results are satisfied. If satisfied, the annotation results of the target image are exported; otherwise, the interaction instructions are modified on the interface (that is, when the user finds that the displayed annotation results are inaccurate, the user can click on the drivable area again to provide more prior information to the initial annotation model, and assist the model to output more accurate annotation results), and then the initial annotation model re-outputs the annotation results according to the modified interaction instructions and the target image until the user is satisfied with the annotation results.

[0065] Modifying interactive instructions on the interface includes but is not limited to adding new interactive instructions, deleting old interactive instructions, and adjusting old interactive instructions. Taking clicking with a brush tool as an example, when the user is not satisfied with the output result of the initial annotation model, the user can click again at another location in the drivable area on the interface, delete the click at the original location and input another location, or directly adjust the original click location.

[0066] Although modifying the interactive instructions on the interface requires human intervention, the human here only needs to judge whether it is good or bad. If it is not good, the manual interactive instructions need to be modified. Compared with the prior art, the interactive instructions proposed by the present method do not need to carefully adjust the position of the edge points of the drivable area as in the prior art, but only need a simple click on the drivable area or the non-drivable area, that is, the way of manual intervention is different. In comparison, the manual intervention method in the present method is simpler and easier to operate.

[0067] Step S214, converting the annotation result into a binary graph; the binary graph contains a plurality of connected domains.

[0068] In a specific implementation, the above-mentioned annotation result is an image with two channels, and the width and height of the image are the same as the width and height of the image to be annotated corresponding to the annotation result; the two channels are respectively a drivable area channel and a non-drivable area channel; when implementing step S214, for each pixel point in the image corresponding to the annotation result, the following steps 10-12 are executed:

[0069] Step 10, determine whether the channel value of the drivable area channel corresponding to the current pixel point is greater than the channel value of the non-drivable area channel; if greater, execute step 11; if less than or equal to, execute step 12.

[0070] Step 11, setting the pixel value of the current pixel point to a first value.

[0071] Step 12: Set the pixel value of the current pixel to the second value.

[0072] The first value and the second value can be set according to user needs. For example, the first value can be set to 1 and the second value can be set to 0.

[0073] Step S216, filtering out the connected domain of the upper half of the specified area in the binary image.

[0074] In specific implementation, the drivable area generally only appears in the lower half of the image plane, and the upper half is the sky area. Therefore, this prior knowledge can be used to filter out the connected domain in the upper half of the above binary image, and only retain the connected domain in the lower half.

[0075] Step S218, performing a closing operation on the filtered binary image to remove the hole area in the middle of each connected domain in the filtered binary image.

[0076] In the specific implementation, holes usually appear in the connected domain of the filtered binary image, that is, the connected domain with pixel value of the first value also contains the connected domain with pixel value of the second value. These holes need to be removed by the closing operation in image processing.

[0077] Step S220 , selecting a connected domain containing the largest number of pixels from the connected domains of the binary image after removing holes as a drivable area.

[0078] In the specific implementation, each connected domain in the binary image after removing the holes is sorted according to the number of pixels, and the connected domain with the largest number of pixels is selected as the drivable area.

[0079] Step S222: determining the binary image including the selected drivable area as the adjusted annotation result.

[0080] In some embodiments, after the above step S222, the adjusted annotation result may be corrected by the following method 1 or method 2:

[0081] Method 1: Use the lane line position information to correct and adjust the labeling result to obtain the final labeling result.

[0082] Get the adjusted annotation result, use the algorithm to detect the lane line position information in the image to be annotated corresponding to the annotation result, and filter out the drivable area outside the lane line based on the prior knowledge that the drivable area is generally located between the lane lines. Filtering out the drivable area outside the lane line means that the left side area of ​​the leftmost lane line detected by the algorithm is a non-drivable area and is filtered out; the right side area of ​​the rightmost lane detected by the algorithm is a non-drivable area and is filtered out; other areas are not processed, such as Figure 3 The figure shows a schematic diagram of the lane line position information correction and annotation result, which is equivalent to Figure 3 The corrected binary map of the drivable area.

[0083] Method 2: Use the detection information of the millimeter-wave radar to correct and adjust the labeling result to obtain the final labeling result.

[0084] The detection information output by the millimeter-wave radar is obtained, and the detection information may be the target position information. Interference target points are removed, and valid target points are screened out. The target point results detected by the millimeter-wave radar are converted to the image coordinate system. If the converted millimeter-wave radar target point falls within the drivable area of ​​the adjusted annotation result, the position information of the radar target point and the interactive instruction are converted into a form that can be received by the initial annotation model and input into the initial annotation model. The annotation result of the image to be annotated is output, and the annotation result is corrected until no converted millimeter-wave radar target point falls within the drivable area.

[0085] In some embodiments, in order to ensure the accuracy of the annotation results, after obtaining the final annotation results, the boundary of the drivable area segmentation can be manually fine-tuned to obtain the manually corrected annotation results, and the corrected annotation results can be used as data in the subsequent training set, and the annotation results can be exported. The above-mentioned fine-tuning can refer to manually changing the position of the boundary of the drivable area by clicking, dragging, etc.; the above-mentioned export of the annotation results includes but is not limited to exporting to the local storage system and distributed file server, and the naming method of the exported file has a one-to-one correspondence with the image to be annotated. The file content includes the size of the original image, the annotation date, the coordinates of the boundary points of the drivable area, etc., and the file format includes but is not limited to .csv, .xml, .html, .txt, etc.

[0086] Step S224, the adjusted annotation results and the target data set are combined into a training set, and the initial annotation model is trained by the training set to obtain a trained initial annotation model.

[0087] Step S226, replacing the initial labeling model with the trained initial labeling model, and continuing to perform the step of determining the target data set from the multiple data sets to be labeled, until each of the multiple data sets to be labeled is labeled.

[0088] The above-mentioned drivable area labeling method inputs the received interactive instructions into the initial labeling model, which is essentially a process of adding supervision to the model prediction results. This labeling method can reduce or even eliminate the burden of subsequent labeling quality inspection and improve the labeling quality. At the same time, as more and more data are labeled, the interactive labeling model will be continuously optimized. After a period of data accumulation and model optimization, users only need to provide a small amount of interactive information, and the labeling model can produce high-quality labeling results.

[0089] The embodiment of the present invention also provides another method for marking a drivable area, which is implemented on the basis of the method in the above embodiment; Figure 4 As shown, the method comprises the following steps:

[0090] Step S402, obtaining a sample set; wherein the sample set includes a plurality of samples, each of which includes a sample image and a binary image corresponding to the sample image and annotated with a drivable area.

[0091] The above sample set can be a public dataset containing drivable area labels, for example, the bdd100k dataset. The sample set contains multiple samples, each of which contains a sample image and a binary image corresponding to the sample image with a drivable area labeled. The binary image of the drivable area is usually a single-channel image with the same width and height as the sample image. In the binary image, the corresponding pixel value of the drivable area is 1, and the corresponding pixel value of the non-drivable area is 0. The binary image of the drivable area is equivalent to the drivable area label.

[0092] Step S404: Based on the sample set and the preset simulation instructions, the first model is trained to obtain a trained first model; and the trained first model is determined as the initial annotation model.

[0093] In specific implementation, the user's interactive instructions can be simulated from the drivable area labels of the sample set to obtain simulated instructions; the simulated instructions include but are not limited to the user's clicks on the drivable area, the user's scribbles on the drivable area, the user's drawing of an external frame on the drivable area, etc. Since the first model may not be able to receive the original simulated instructions, the simulated instructions need to be converted into an expression form that can be input into the first model.

[0094] Step S406, determining a target data set from a plurality of preset data sets to be labeled; wherein each data set to be labeled includes a plurality of images to be labeled.

[0095] Step S408, input the target data set and the preset interaction instruction into the initial annotation model, and output the annotation result corresponding to the target data set; the annotation result is used to indicate the location of the drivable area.

[0096] Step S410: adjusting the marking result according to the preset drivable area determination rule.

[0097] Step S412, the adjusted annotation results and the target data set are combined into a training set, and the initial annotation model is trained by the training set and the sample set to obtain a trained initial annotation model.

[0098] Step S414, replacing the initial labeling model with the trained initial labeling model, and continuing to perform the step of determining the target data set from the multiple data sets to be labeled, until each of the multiple data sets to be labeled is labeled.

[0099] The above-mentioned method for labeling drivable areas uses a sample set containing drivable area labels to generate simulation instructions, combines the sample set and the simulation instructions to train the first model, and obtains an initial labeling model. Compared with the pure manual labeling method, this method greatly reduces the workload; compared with the existing pre-trained model labeling method, it introduces interactive instruction information for model prediction, which improves the labeling quality without significantly increasing the workload.

[0100] Corresponding to the above method embodiment, the embodiment of the present invention provides a device for marking a drivable area, such as Figure 5 As shown, the device comprises:

[0101] The data set determination module 50 is used to determine a target data set from a plurality of preset data sets to be labeled; wherein each data set to be labeled includes a plurality of images to be labeled.

[0102] The data input module 51 is used to input the target data set and the preset interaction instructions into the initial annotation model, and output the annotation result corresponding to the target data set; the annotation result is used to indicate the location of the drivable area.

[0103] The result adjustment module 52 is used to adjust the marking result according to the preset drivable area determination rule.

[0104] The model training module 53 is used to combine the adjusted annotation results and the target data set into a training set, train the initial annotation model through the training set, and obtain the trained initial annotation model.

[0105] The data labeling module 54 is used to replace the initial labeling model with the trained initial labeling model, and continue to perform the step of determining the target data set from the multiple data sets to be labeled until each of the multiple data sets to be labeled is labeled.

[0106] The above-mentioned drivable area labeling device first determines the target data set from a plurality of preset data sets to be labeled; then inputs the target data set and the preset interactive instructions into the initial labeling model, and outputs the labeling result indicating the location of the drivable area corresponding to the target data set; then adjusts the labeling result according to the drivable area determination rule; the adjusted labeling result and the target data set form a training set, and the initial labeling model is trained by the training set to obtain the trained initial labeling model; then the initial labeling model is replaced with the trained initial labeling model, and the step of determining the target data set from a plurality of data sets to be labeled is continued until each data set to be labeled is labeled. This method does not require a large amount of manpower, and improves the labeling efficiency; at the same time, this method labels images by continuously optimizing the labeling model, and improves the accuracy of model labeling.

[0107] Furthermore, the above-mentioned device also includes a data acquisition module for to be labeled, which is used to: collect multiple images containing scenes of the drivable area through a preset camera; pre-process each collected image to obtain multiple images to be labeled; wherein the pre-processing includes: one or more of image cropping, white balance, denoising, histogram equalization, and normalization; divide the multiple images to be labeled to obtain multiple data sets to be labeled.

[0108] Furthermore, the above-mentioned data input module 51 is also used to: determine the target image based on the target data set; receive the interactive instructions for the target image input by the user, input the interactive instructions and the target image into the initial annotation model, and obtain the annotation result of the target image; continue to execute the step of determining the target image based on the target data set until all the images to be annotated in the target data set are annotated; wherein the interactive instructions include the drivable area in the target image indicated by the user.

[0109] Specifically, the above-mentioned device also includes an instruction conversion module, which is used to: after receiving the interaction instruction input by the user for the target image, convert the interaction instruction into a vector of a specified size or a matrix of a specified size, so as to be suitable for reception by the initial annotation model.

[0110] Furthermore, the above-mentioned result adjustment module 52 is also used to: convert the annotation result into a binary image; the binary image contains multiple connected domains; filter out the connected domains of the specified area in the upper half of the binary image; perform a closing operation on the filtered binary image to remove the hole area in the middle of each connected domain in the filtered binary image; from the connected domains of the binary image after removing the holes, select the connected domain containing the largest number of pixels as the drivable area; and determine the binary image containing the selected drivable area as the adjusted annotation result.

[0111] In a specific implementation, the above-mentioned annotation result is an image with two channels; the two channels are respectively a drivable area channel and a non-drivable area channel; the above-mentioned result adjustment module 52 is also used to: for each pixel point in the image corresponding to the annotation result, perform the following operations: determine whether the channel value of the drivable area channel corresponding to the current pixel point is greater than the channel value of the non-drivable area channel; if greater, set the pixel value of the current pixel point to the first value; if less than or equal to, set the pixel value of the current pixel point to the second value.

[0112] Furthermore, the above-mentioned device also includes a result correction module, which is used to: after determining the binary image containing the selected drivable area as the adjusted marking result, use the lane line position information to correct the adjusted marking result to obtain the final marking result; or, use the detection information of the millimeter wave radar to correct the adjusted marking result to obtain the final marking result.

[0113] Furthermore, the above-mentioned device also includes an initial training module, which is used to: obtain a sample set before determining the target data set from a plurality of preset data sets to be labeled; wherein the sample set includes a plurality of samples, each sample includes a sample image, and a binary image corresponding to the sample image and labeled with a drivable area; based on the sample set and preset simulation instructions, train a first model to obtain a trained first model; and determine the trained first model as the initial labeled model.

[0114] The implementation principle and technical effects of the drivable area marking device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0115] The embodiment of the present invention further provides an electronic device, see Figure 6 As shown, the electronic device includes a processor 101 and a memory 100, wherein the memory 100 stores machine executable instructions that can be executed by the processor 101, and the processor 101 executes the machine executable instructions to implement the above-mentioned drivable area marking method.

[0116] Further, Figure 6 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .

[0117] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0118] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 101 or the instruction in the form of software. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.

[0119] An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned drivable area marking method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0120] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, electronic device, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0121] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for marking drivable areas. It is characterized in that The method comprises: Determine a target data set from a plurality of preset data sets to be labeled, wherein each of the data sets to be labeled contains a plurality of images to be labeled; Inputting the target data set and the preset interaction instruction into the initial annotation model, and outputting the annotation result corresponding to the target data set; the annotation result is used to indicate the location of the drivable area; Adjusting the marking result according to a preset drivable area determination rule; The adjusted annotation results and the target data set form a training set, and the initial annotation model is trained by the training set to obtain the trained initial annotation model; The initial annotation model is replaced with the trained initial annotation model, and the step of determining a target data set from the multiple data sets to be annotated is continued until each of the multiple data sets to be annotated is annotated; The step of inputting the target data set and the preset interaction instruction into the initial annotation model and outputting the annotation result corresponding to the target data set includes: determining a target image based on the target data set; receiving an interactive instruction for the target image input by a user, inputting the interactive instruction and the target image into the initial annotation model, and obtaining an annotation result of the target image; continuing to perform the step of determining the target image based on the target data set until all the images to be annotated in the target data set are annotated; Wherein, the interactive instruction includes a drivable area in the target image indicated by the user; After the step of receiving the interaction instruction input by the user for the target image, the method further includes: Convert the interaction instruction into a vector of a specified size or a matrix of a specified size, so as to be suitable for reception by the initial annotation model; The step of adjusting the labeling result according to the preset drivable area determination rule includes: Converting the annotation result into a binary graph; the binary graph contains a plurality of connected domains; Filter out the connected domain of the upper half of the specified area in the binary image; Performing a closing operation on the filtered binary image to remove the hole area in the middle of each connected domain in the filtered binary image; From the connected domain of the binary image after removing the holes, select the connected domain containing the largest number of pixels as the drivable area; The binary image including the selected drivable area is determined as the adjusted annotation result.

2. The method according to claim 1, It is characterized in that The multiple data sets to be labeled are obtained in the following manner: By using a preset camera, multiple images containing scenes of the drivable area are collected; Preprocessing each collected image to obtain multiple images to be labeled; wherein the preprocessing includes: one or more of image cropping, white balance, denoising, histogram equalization, and normalization; The multiple images to be labeled are divided to obtain the multiple data sets to be labeled.

3. The method according to claim 1, It is characterized in that The annotation result is an image with two channels; the two channels are respectively a drivable area channel and a non-drivable area channel; The step of converting the annotation result into a binary image comprises: For each pixel in the image corresponding to the annotation result, perform the following operations: Determine whether the channel value of the drivable area channel corresponding to the current pixel point is greater than the channel value of the non-drivable area channel; If it is greater than, setting the pixel value of the current pixel to the first value; If it is less than or equal to, the pixel value of the current pixel is set to the second value.

4. The method according to claim 1, It is characterized in that After the step of determining the binary image including the selected drivable area as the adjusted labeling result, the method further includes: Using the lane line position information, correcting the adjusted annotation result to obtain the final annotation result; Alternatively, the detection information of the millimeter wave radar is used to correct and adjust the labeling result to obtain the final labeling result.

5. The method according to claim 1, It is characterized in that Before the step of determining the target data set from the preset multiple data sets to be labeled, the method further includes: Acquire a sample set; wherein the sample set includes a plurality of samples, each of which includes a sample image and a binary image corresponding to the sample image and marked with a drivable area; Based on the sample set and the preset simulation instructions, a first model is trained to obtain the trained first model; and the trained first model is determined as the initial annotation model.

6. A device for marking drivable areas, It is characterized in that The device is used to implement the method for marking a drivable area according to any one of claims 1 to 5, comprising: A data set determination module is used to determine a target data set from a plurality of preset data sets to be labeled; wherein each of the data sets to be labeled contains a plurality of images to be labeled; A data input module, used to input the target data set and preset interactive instructions into the initial annotation model, and output the annotation result corresponding to the target data set; the annotation result is used to indicate the location of the drivable area; A result adjustment module, used to adjust the marking result according to a preset drivable area determination rule; A model training module, used to combine the adjusted annotation results and the target data set into a training set, and train the initial annotation model through the training set to obtain the trained initial annotation model; The data labeling module is used to replace the initial labeling model with the trained initial labeling model, and continue to perform the step of determining the target data set from the multiple data sets to be labeled until each of the multiple data sets to be labeled is labeled.

7. An electronic device, It is characterized in that The electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for marking a drivable area according to any one of claims 1-5.

Citation Information

Patent Citations

  • Target detection method and device, electronic equipment and readable storage medium

    CN110781956A

  • Method, device and equipment for acquiring annotation data

    CN110866504A