A data labeling method, device, computing device and computer storage medium

By using automatic query and refined segmentation technology in data annotation, combined with batch annotation tools, the problem of low data annotation efficiency is solved and an efficient, accurate and economical data annotation process is achieved.

CN118397285BActive Publication Date: 2024-10-18GUANGDONG AOPUTE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410872453.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-18
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Data annotation efficiency in the existing technology is low, especially when processing large batches of annotated data. Manual annotation consumes a lot of time and is difficult to meet demand.

Method used

By obtaining the query object provided by the user, query and generate initial segmentation results based on the pre-established data set to be annotated, perform refined segmentation, and use pre-created annotation tools to perform batch annotation operations on the target segmentation results, reducing manual screening and annotation time. .

Benefits of technology

It improves the efficiency and accuracy of data annotation, reduces labor costs, ensures the consistency and reliability of annotation results, and enhances the flexibility and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397285B_ABST
    Figure CN118397285B_ABST
Patent Text Reader

Abstract

The present application provides a data annotation method, apparatus, computing device and computer storage medium. Among them, a query object provided by a user is obtained; based on the query object, multiple data to be annotated that match the query object are queried in a pre-established data set to be annotated, and multiple initial segmentation results corresponding to the data to be annotated are generated; the initial segmentation results corresponding to the multiple data to be annotated are refined to generate multiple target segmentation results of the data to be annotated; a pre-created annotation tool is used to perform an annotation operation on the selected target segmentation results of the data to be annotated, and the annotation operation is batch-applied to the remaining multiple target segmentation results of the data to be annotated. The technical solution provided by the present application can improve the efficiency of data annotation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer data processing technology, and in particular, to a data annotation method, apparatus, computing device, and computer storage medium. Background Art

[0002] Product appearance inspection is one of the key steps to ensure product quality. By inspecting and marking defects on the product appearance, the production quality of the product can be controlled in a timely manner to ensure that the inspected products meet the quality standards and customer expectations.

[0003] In recent years, with the continuous development of deep learning, more and more companies and enterprises have chosen automatic detection technology based on deep learning to replace traditional manual inspection methods. Because the use of this technology can not only more efficiently identify quality problems in products, but also help reduce the rate of human false detection and reduce labor costs, thereby improving corporate production efficiency and customer satisfaction. Generally, deep learning methods require a large amount of labeled data to learn related tasks, especially image segmentation tasks (including semantic segmentation and instance segmentation) require pixel-level annotation. However, traditional data annotation methods mainly rely on manual annotation tools such as Labelme, which is often boring, time-consuming and error-prone, especially for segmentation task data sets. The annotation is more cumbersome.

[0004] In order to further improve the annotation efficiency of segmentation task datasets, early researchers proposed some traditional segmentation algorithms, such as the watershed algorithm, GraphCut algorithm, and GrabCut algorithm. These methods usually have problems such as complex algorithm iteration process, long running time, and difficult parameter selection for different types of images. Especially for complex images, the segmentation effect is not very good. In recent years, with the continuous development of deep learning, especially the successive introduction of multimodal large models such as ChatGPT (Chat Generative Pre-trained Transformer), the annotation of segmentation task datasets has become more efficient. Among them, the most representative algorithm is the Segmentation Anything Model (SAM), which uses an interactive segmentation method and is trained on the SA-1B dataset containing 1 billion masks. The model overcomes the problems of the above traditional segmentation algorithms and can segment the target area only through prompts such as points, boxes, or masks. The accuracy of the mask obtained by segmentation is better than that of manual annotation and has good robustness.

[0005] However, when faced with large amounts of labeled data, if this method still uses manual labeling for each image, it will take a lot of labeling time and the labeling efficiency will be difficult to meet the requirements. Summary of the invention

[0006] The embodiments of the present application provide a data labeling method, apparatus, computing device and computer storage medium to solve the problem of low data labeling efficiency in the prior art.

[0007] In a first aspect, an embodiment of the present application provides a data labeling method, comprising:

[0008] Get the query object provided by the user;

[0009] Based on the query object, a plurality of to-be-annotated data matching the query object are searched in a pre-established to-be-annotated data set, and initial segmentation results corresponding to the plurality of to-be-annotated data are generated;

[0010] Performing refined segmentation on the initial segmentation results corresponding to the plurality of data to be labeled, so as to generate a plurality of target segmentation results of the data to be labeled;

[0011] A pre-created annotation tool is used to perform an annotation operation on the selected target segmentation result of the data to be annotated, and the annotation operation is batch-applied to the remaining target segmentation results of the data to be annotated.

[0012] Optionally, the performing fine segmentation on the initial segmentation results corresponding to the plurality of data to be labeled to generate a plurality of target segmentation results for the data to be labeled, comprises:

[0013] Obtaining the circumscribed rectangular frame corresponding to each of the data to be labeled according to the initial segmentation result corresponding to each of the data to be labeled;

[0014] The initial segmentation results corresponding to the multiple data to be labeled, the circumscribed rectangular boxes corresponding to the multiple data to be labeled, and the acquired image codes of the multiple data to be labeled are input as input information into the decoder of the pre-trained segmentation model to obtain the target segmentation results of the multiple data to be labeled output by the decoder.

[0015] Optionally, it also includes:

[0016] Obtaining the region score corresponding to each of the initial segmentation results of the data to be labeled, and filtering out the segmentation results whose region scores are less than a preset score, so as to generate a target segmentation result; and / or,

[0017] The mask area covered by each initial segmentation result of the data to be labeled is calculated, and the segmentation results whose mask area is smaller than a preset area are filtered out to generate a target segmentation result.

[0018] Optionally, before inputting the initial segmentation results corresponding to the plurality of data to be labeled, the circumscribed rectangular frames corresponding to the plurality of data to be labeled, and the acquired image codes of the plurality of data to be labeled as input information into a decoder of a pre-trained segmentation model to obtain the target segmentation results of the plurality of data to be labeled output by the decoder, the method further includes:

[0019] Input the multiple data to be labeled into the graphic encoder of a pre-trained segmentation model to obtain the image codes of the multiple data to be labeled output by the graphic encoder, and continue to execute the step of inputting the initial segmentation results corresponding to the multiple data to be labeled, the circumscribed rectangular boxes corresponding to the multiple data to be labeled and the obtained image codes of the multiple data to be labeled as input information into the decoder of the pre-trained segmentation model to obtain the target segmentation results of the multiple data to be labeled output by the decoder.

[0020] Optionally, searching for a plurality of to-be-annotated data matching the query object in a pre-established to-be-annotated data set based on the query object, and generating a plurality of initial segmentation results corresponding to the to-be-annotated data, includes:

[0021] The query object and the pre-established data set to be annotated are input into a pre-trained matching retrieval model, so as to query the data to be annotated that matches the query object through the matching retrieval model, and generate a plurality of initial segmentation results corresponding to the data to be annotated.

[0022] Optionally, the pre-created annotation tools include at least: an Ai drawing tool, a three-point drawing tool, a rectangle tool, an oblique rectangle tool, a circle tool, an ellipse tool, an area pen tool, a polyline tool, a polygon tool, and a fill tool.

[0023] Optionally, the Ai drawing tool, the polygon tool, the rectangle tool, the oblique rectangle tool, the circle tool, the three-point drawing tool and the ellipse tool include a drawing mode and an erasing mode, wherein the drawing mode is used to perform drawing annotations in the target segmentation result, and the erasing mode is used to perform erasing annotations in the target segmentation result.

[0024] In a second aspect, an embodiment of the present application provides a data labeling device, including:

[0025] The acquisition module is used to obtain the query object provided by the user;

[0026] A generation module is used to query multiple data to be labeled that match the query object in a pre-established data set to be labeled based on the query object, and generate multiple initial segmentation results corresponding to the data to be labeled; perform fine segmentation on the initial segmentation results corresponding to the multiple data to be labeled to generate multiple target segmentation results of the data to be labeled;

[0027] The labeling module is used to use a pre-created labeling tool to perform a labeling operation on the selected target segmentation result of the data to be labeled, and apply the labeling operation in batches to the remaining target segmentation results of the data to be labeled.

[0028] In a third aspect, an embodiment of the present application provides a computing device, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the data labeling method described in the first aspect above.

[0029] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a computer program, and when the computer program is executed by a computer, the data labeling method described in the first aspect is implemented. In an embodiment of the present application, a query object provided by a user is obtained; based on the query object, multiple data to be labeled that match the query object are queried in a pre-established data set to be labeled, and initial segmentation results corresponding to multiple data to be labeled are generated; the initial segmentation results corresponding to the multiple data to be labeled are refined and segmented to generate multiple target segmentation results for the data to be labeled; a pre-created labeling tool is used to label the selected target segmentation results of the data to be labeled, and the labeling operation is applied in batches to the remaining multiple target segmentation results of the data to be labeled.

[0030] The data annotation method proposed in this application has the following significant beneficial effects:

[0031] Improve efficiency and accuracy: By automatically querying and matching related objects in the dataset to be annotated, this method significantly reduces the time required for manual data screening and improves the efficiency of data processing. At the same time, using the initial segmentation results for refined segmentation can more accurately define the boundaries of objects and improve the accuracy of annotation, especially when dealing with complex scenes and subtle structures.

[0032] Standardization and consistency: This solution ensures consistent labeling of the same or similar query objects in multiple data to be labeled, which helps to improve the consistency and reliability of the labeling results. This is especially important for the training of machine learning and deep learning algorithms, and can reduce model learning bias caused by inconsistent labeling.

[0033] Reduce labor costs: Automated and semi-automated annotation processes reduce reliance on a large amount of human resources, especially when dealing with large-scale data sets, which can significantly reduce annotation costs and make projects more economically feasible.

[0034] Enhanced flexibility and scalability: This method can adapt to different types of query objects and data sets. It can be applied to a variety of labeling tasks by simply adjusting the query conditions and segmentation algorithm parameters, which enhances the flexibility and scalability of the system and facilitates coping with changes in future data labeling needs.

[0035] In summary, the solution of this application not only improves the efficiency and quality of data annotation, but also reduces costs, enhances the flexibility and standardization of data processing, and is of great significance for promoting the practical application of AI technology.

[0036] These and other aspects of the present application will become more apparent from the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 A flowchart of a data labeling method provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a marking tool provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the effect of using the area pen tool for annotation provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the effect of adding annotations in batches provided in an embodiment of the present application;

[0042] Figure 5 A schematic diagram of the effect of filtering out segmentation results provided in an embodiment of the present application;

[0043] Figure 6 A schematic diagram of the structure of a data labeling device provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0046] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0047] The data annotation method of the present application can be widely used in multiple fields and scenarios, especially showing unique advantages in improving product inspection and quality control. Specifically, on production lines such as automobiles, electronic products, and textiles, this method can be used to automatically identify and batch-annotate product defects, such as scratches, cracks, and uneven colors. By matching the data to be annotated that is consistent with the defect type of the query object, the system can quickly find the problem area (i.e., the data to be annotated) from the production image or video stream (i.e., the data set to be annotated), and perform subsequent refined segmentation, i.e., batch annotation, to assist in rapid quality control and troubleshooting.

[0048] In addition, the data annotation method of this application can also be applied to the following other scenario examples:

[0049] Agricultural product grading and testing: Before agricultural product processing, this method can help automatically distinguish the maturity, size, defects, etc. of fruits and vegetables. By analyzing the collected agricultural product images, it can accurately mark products that meet different grade standards, thereby improving sorting efficiency and accuracy.

[0050] Inspection of pharmaceutical products: During the pharmaceutical manufacturing process, strict inspections are required on drug particles, capsule appearance, packaging integrity, etc. This data annotation method can effectively identify and annotate abnormal tablet shapes, colors, or packaging defects to ensure that drug quality meets high standards.

[0051] Retail product monitoring and inventory management: The product monitoring system used in supermarkets and warehouses can automatically identify and mark the types, quantities and arrangements of goods on the shelves, detect out-of-stock and misplacement problems in a timely manner, and optimize inventory management and customer experience.

[0052] Safety monitoring and abnormal behavior detection: In the safety monitoring system of public places or work environments, this method can mark abnormal behaviors or safety hazards, such as workers not wearing hard hats, dangerous items left behind, etc., to enhance safety management.

[0053] Medical image analysis: In the medical field, this technology can assist doctors in quickly and accurately labeling X-rays, CT scans, MRI images, etc., identifying key features such as tumors, lesions, fractures, etc., and providing a basis for diagnosis and treatment.

[0054] These application scenarios demonstrate how this application solution can optimize product testing processes and improve the automation level and quality control capabilities of various industries through efficient and accurate data labeling, thereby achieving more efficient operations and higher customer satisfaction.

[0055] The inventors have found that currently, for data labeling scenarios, a single model is usually used to segment the data, and then the segmented data is labeled one by one through manual labeling. However, such a solution not only has the problem of inaccurate data segmentation, but also lacks batch labeling, resulting in low labeling accuracy and poor labeling efficiency.

[0056] In view of this, an embodiment of the present application provides a data labeling method, which obtains a query object provided by a user; based on the query object, multiple data to be labeled that match the query object are queried in a pre-established data set to be labeled, and initial segmentation results corresponding to multiple data to be labeled are generated; the initial segmentation results corresponding to the multiple data to be labeled are refined to generate target segmentation results for multiple data to be labeled; a pre-created labeling tool is used to perform a labeling operation on the target segmentation results of the selected data to be labeled, and the labeling operation is batch-applied to the remaining multiple target segmentation results of the data to be labeled.

[0057] The technical solution of the embodiment of the present application can improve the efficiency of data processing by automatically querying and matching the relevant objects in the data set to be annotated. At the same time, the initial segmentation result is used for refined segmentation, which can more accurately define the object boundary, improve the accuracy of data segmentation, and batch data annotation through annotation tools can improve annotation efficiency.

[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0059] Figure 1A flowchart of an embodiment of a data annotation method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:

[0060] 101. Obtain the query object provided by the user;

[0061] In this step, the query object refers to the user submitting one or a group of indicative information to the system based on specific annotation requirements or goals. This information is called the query object (ANN_Object). The query object can be in any form, such as a specific image sample, text description, category label, etc., to guide the system to understand the specific content that the user wants to identify and annotate.

[0062] It should be noted that the data labeling method of the present application is specifically a pixel-level fast labeling method, which emphasizes a scheme of generating a highly accurate segmentation mask for each pixel in the labeled data, and then performing accurate labeling based on the highly accurate segmentation mask.

[0063] 102. Based on the query object, a plurality of to-be-annotated data matching the query object is searched in a pre-established to-be-annotated data set, and initial segmentation results corresponding to the plurality of to-be-annotated data are generated;

[0064] In this step, this application takes the data to be annotated including images as an example (of course, in addition to images, it can also be other display forms, which is not limited in this application). The process of "querying out multiple data to be annotated that match the query object in the pre-established data set to be annotated based on the query object" means that the system uses the query object provided by the user (which may be an image sample, keyword, feature description, etc.) as the search condition to perform matching retrieval in an organized but not yet annotated image database (i.e., the data set to be annotated). The purpose is to find images (i.e., data to be annotated) that have similar features to the query object or belong to the same category, in preparation for subsequent annotation work.

[0065] "Generate multiple initial segmentation results corresponding to the data to be annotated" means that for each image to be annotated retrieved, the system will initially apply the fast matching retrieval algorithm (i.e. the matching retrieval model mentioned later in this application, which can be the Mask R-CNN algorithm, etc., which is not limited in this application) to try to identify the key areas or objects in the image to be annotated, and generate a preliminary segmentation mask (i.e. the initial segmentation result). This initial segmentation result is based on the fast matching retrieval algorithm's understanding of the image content, marking the areas of possible interest, providing a basis for further refined processing.

[0066] In the embodiment of the present application, a simple example is given for the above steps 101-102:

[0067] Assume that the user is a quality engineer of an electronics manufacturing company, and they need to quickly check the soldering quality of a new batch of circuit boards. The query object provided by the user is an image set containing typical soldering defects (such as cold solder, solder bridge, missing solder joints), and the corresponding text description (such as "find all cold solder joints"). This query object is input into the system and will serve as the basis for the subsequent automatic acquisition of the data to be annotated.

[0068] Next, the system can automatically query the data to be labeled in the labeled data set (Ann_Set) based on the query object (ANN_Object) provided by the user, which means that the system will use the query object provided by the user as a guide, and automatically analyze all the data in the labeled data set through the pre-trained matching retrieval model, identify and mark the data that meets the object features corresponding to the query object, and use these contents as the data to be labeled. This process involves multiple technical links such as data retrieval, feature matching, target detection, and instance segmentation.

[0069] Furthermore, the system first uses data retrieval technology to find the unlabeled data similar to the provided welding defect samples in the huge unlabeled data set (Ann_Set). Then, it identifies and finely segments each welding defect in the image through the matching retrieval model, generates a preliminary segmentation mask at the pixel level, and outputs the preliminary segmentation mask (i.e., the initial segmentation result).

[0070] It should be noted that the pixel-level segmentation mask output at this time is relatively rough (such as the presence of noise, abnormal segmentation, etc.), and it is still necessary to perform refined segmentation processing in subsequent steps.

[0071] 103. Performing refined segmentation on the initial segmentation results corresponding to the plurality of data to be labeled, so as to generate a plurality of target segmentation results of the data to be labeled;

[0072] In this step, "refining the initial segmentation results corresponding to the plurality of data to be labeled to generate the target segmentation results of the plurality of data to be labeled" means that on the basis of the preliminary segmentation, more advanced or more targeted algorithm technology is used to optimize and refine these segmentation results. This process is aimed at improving the accuracy and precision of the segmentation, ensuring that the final segmentation result can more accurately match the target object in the image and reduce the cases of misclassification and omission.

[0073] That is to say, steps 102 to 103 specifically involve the “two-stage segmentation results” mentioned:

[0074] Phase 1: The initial segmentation result obtained by the matching retrieval model provided by this application refers to the initial segmentation result obtained by segmenting the query object and the data in the database after similarity matching, which can be called "Coarse-Mask". At this time, the initial segmentation result generated in this stage is relatively rough and may contain some inaccurate areas or abnormal segmentations.

[0075] The second stage: By using the segmentation model provided in this application (such as Segment Anything Model, SAM), a more refined target segmentation result can be obtained, which can be called "Refined Mask". Models such as SAM usually have strong semantic understanding and detail segmentation capabilities, and can further refine the boundaries of the initial segmentation results of the first stage, remove abnormal areas (such as removing noise points, etc.), so that the segmentation results are more in line with the contours of the actual target, and the segmentation quality is improved.

[0076] Taking the electronic product PCB board defect detection scenario as an example, the embodiment of the present application may include the following two stages:

[0077] Stage 1: Initial Segmentation

[0078] Suppose there is a PCB (printed circuit board) image automatically taken on an electronic product production line, and it is necessary to detect defects such as poor soldering, missing components or short circuits. First, use the matching retrieval model to preliminarily identify and segment various components and potential defects on the PCB. This step can be done in the following way: Based on the trained matching retrieval model, extract key features in the image, such as shape, color, texture, etc., match them with known component and defect features in the database, and quickly generate a rough preliminary segmentation mask (i.e., initial segmentation result, Coarse-Mask). This mask may contain all suspected problem areas on the entire PCB, but the edges are not very clear, so a second stage of refined segmentation is required.

[0079] The second stage: refined segmentation

[0080] Next, in order to improve the accuracy of detection, a more advanced segmentation model, such as the SAM model, is used to refine the "Coarse-Mask" obtained in the first step. In this stage, the SAM model uses its powerful semantic understanding ability to deeply analyze the contextual information of each suspected defect area and accurately identify the true outline of each component and potential defect. For example, it can more accurately distinguish between true solder joint defects and normal solder joint shadows, or accurately outline the vacant outlines left by missing components, while eliminating mis-segmentation caused by light and shadow, cluttered background, etc. Deep learning algorithms are used to identify and remove noise and non-target interference in segmentation, such as removing the highlight areas caused by the reflection of the circuit board or the influence of cluttered background textures, so that the final segmentation result (Refined Mask) is purer and more accurate.

[0081] In the embodiment of the present application, the "Refined Mask" obtained after the second stage of refinement can very accurately reflect the actual defect situation on the PCB board. These refined segmentation results can be further used for decision-making in the automated quality control system, such as automatically classifying defect types, assessing severity, and triggering corresponding repair or scrapping processes, thereby greatly improving production efficiency and the accuracy of product quality control.

[0082] 104 . Use a pre-created annotation tool to perform an annotation operation on the selected target segmentation result of the data to be annotated, and apply the annotation operation in batches to the remaining target segmentation results of the data to be annotated.

[0083] On the basis of step 103, after the target segmentation result is obtained, in order to improve the efficiency of data annotation, it is also necessary to perform batch annotation operations on the target segmentation results of the plurality of data to be annotated using a pre-created annotation tool.

[0084] Among them, Figure 2 As shown, the pre-created annotation tools include at least: Ai drawing tool, three-point drawing tool, rectangle tool, oblique rectangle tool, circle tool, ellipse tool, area pen tool, polyline tool, polygon tool and fill tool. It should be noted that in the process of using the pre-created annotation tools to annotate the target segmentation result of the selected data to be annotated, one or more annotation tools can be selected for use according to needs. In addition, in addition to the above-mentioned annotation tools, other annotation tools can be set according to needs, and the priority order between multiple annotation tools can also be adjusted according to needs, which is not limited in the embodiments of the present application.

[0085] Optionally, the Ai drawing tool, the polygon tool, the rectangle tool, the oblique rectangle tool, the circle tool, the three-point drawing tool and the ellipse tool include a drawing mode and an erasing mode, wherein the drawing mode is used to perform drawing annotations in the target segmentation result, and the erasing mode is used to perform erasing annotations in the target segmentation result.

[0086] In this step, pre-created annotation tools refer to a series of pre-set graphic drawing and editing tools designed to improve the efficiency and accuracy of data annotation. These tools are designed for processing target segmentation in images, videos or other forms of multimedia data. The goal of annotation is to help the algorithm understand the content of a specific area, such as identifying a specific object or scene part in an image. These tools allow data annotators to mark the area of ​​interest directly on the target segmentation results to facilitate subsequent machine learning or deep learning model training.

[0087] Specifically, the concepts of each tool are explained as follows:

[0088] Ai drawing tool: Uses artificial intelligence-assisted automatic or semi-automatic methods to intelligently identify and draw target areas, reducing manual intervention. Specifically, this tool uses the areas recommended by the software's built-in model for annotation, that is, the model will increase or decrease the recommended area based on the positive or negative point where the left mouse button is clicked. Right-clicking the mouse exits the current Ai tool drawing mode and converts the Ai tool drawing area to the annotation area. It can be understood that the Ai drawing tool automatically and intelligently marks the area of ​​interest, or the recommended area, on the target segmentation result.

[0089] Three-point drawing tool: Automatically forms a smooth curve or surface through three points specified by the user, suitable for quick annotation of irregular shapes. Specifically, click point 1 with the left mouse button in any area of ​​the image control, and then click point 2 with the left mouse button in any position to draw an edge with points 1 and 2 as endpoints. Finally, click point 3 at the upper or lower end of the edge to determine a line parallel to it, and the oblique rectangle can be drawn. After drawing, you can drag the anchor points on the shape to change the shape. Right-click to exit the current oblique rectangle drawing mode and convert the oblique rectangle area into the annotation area.

[0090] Rectangle tool: Used to quickly draw a rectangle, often used to mark objects with a clear quadrilateral outline. Specifically, long-press and drag the mouse to draw a rectangle. After drawing, you can drag the anchor points on the shape to change the shape. Right-click to exit the rectangle drawing mode and convert the rectangular area into a marking area.

[0091] Oblique Rectangle Tool: Similar to the Rectangle Tool, but can draw rectangles with angles that are not right angles, which can adapt to more targets with changing angles. Specifically, long-press and drag the mouse to draw an oblique rectangle. After drawing, you can drag the anchor points on the shape to change the shape. Right-click the mouse to exit the current oblique rectangle drawing mode and convert the oblique rectangle area into a annotation area.

[0092] Circle Tool: Used to draw circular or elliptical areas, suitable for marking circular or nearly circular objects. Specifically, long-press and drag the mouse to draw a circle. After drawing, you can drag the anchor points on the shape to change the shape. Right-click the mouse to exit the circle drawing mode and convert the circular area to the marking area. Specifically, long-press and drag the mouse to draw an ellipse. After drawing, you can drag the anchor points on the shape to change the shape. Right-click the mouse to exit the ellipse drawing mode and convert the ellipse area to the marking area.

[0093] Area Pen Tool: Allows users to freely draw areas, suitable for fine annotation of complex irregular shapes. Specifically, the pen shapes available are circle and square, and the size can be set from 1 to half the current image width. If circle is selected, a circular annotation area will be drawn, and if square is selected, a square annotation area will be drawn.

[0094] Polyline tool: Draws polylines or polygonal line segments, suitable for drawing the boundaries of areas with relatively tortuous edges. Specifically, the pen shapes can be round and square, and the size can be set from 1 to half the current image width. Each time you click the left button, an anchor point is determined, and the last determined anchor point is used as the starting point. Click the left button again to draw a line segment. Right-click to exit polyline drawing.

[0095] Polygon tool: Manually draw any polygon to accurately outline the boundary of a complex target. Specifically, left-click to determine the anchor point, right-click to end polygon drawing, and after adjusting the shape through the anchor point, right-click to convert the polygon area into a marked area.

[0096] Fill tool: quickly fill and mark the closed area, usually used to mark the entire interior of an object. Specifically, fill the blank area inside the marked area.

[0097] The drawing mode of these tools means adding marks to the target segmentation results, such as marking the boundaries of an object or completely covering an area. The erasing mode allows the annotator to correct errors, such as removing mislabeled areas or adjusting the annotation boundaries to ensure the accuracy of the annotation.

[0098] In the embodiment of the present application, at least one of the ten marking tools mentioned above can be used to further modify the Refned-Mask.

[0099] For example, Figure 3As shown in (3a) of FIG. 1 , after drawing a marked area 31 for a Refined-Mask area (i.e., the target segmentation result) selected by the annotator using the area pen tool in the annotation tool, the redundant part is erased using the eraser tool (which can be an annotation tool with an erase mode), as shown in FIG. Figure 3 As shown in (3b), it can be seen that the marked area 32 in the Refined-Mask area after adjustment is smoother. Further, the marking operation is applied to the Refined-Mask of the remaining plurality of data to be marked to achieve batch operation.

[0100] It can also be, Figure 4 As shown, after a rectangular area 41 and a square area 42 are drawn on the left side of the Refined-Mask area using the drawing mode of the rectangle tool for the selected Refined-Mask area of ​​a certain data to be labeled (as shown in FIG. Figure 4 After the changes shown in (4a) and (4c) in the figure, batch labeling of the Refined-Mask of other multiple data to be labeled is realized by batch adding labeling operations (such as Figure 4 The changes shown in (4b) and (4d) in the figure).

[0101] The batch deletion operation is similar to the batch addition operation. For example, you can use the annotation tool with the erase mode to Figure 4 After erasing the rectangular area 41 based on (4c), the annotation operation is batch-applied to the Refined-Mask areas of other to-be-annotated data to implement batch deletion of annotation operations.

[0102] Here is a specific scenario example: suppose a manufacturing company needs to conduct comprehensive quality control on the precision screws it produces. The goal is to detect tiny cracks or unevenness that may appear on the screw heads through images taken by high-resolution industrial cameras. In order to automate this process, a large number of sample images need to be annotated first, so that a deep learning model can be trained later to automatically identify screw defects.

[0103] The implementation steps are as follows:

[0104] Data preparation: Collect a series of high-definition images of different parts of screws. These images have been matched with the retrieval model and the segmentation model to obtain an accurate Refined-Mask. The Refined-Mask of these images needs to be further annotated using annotation tools to improve the accuracy of the subsequent deep learning model training.

[0105] Select annotation tools: Based on the characteristics that cracks and unevenness on the screw head usually appear as slender or irregular shapes, select the polygon tool and the three-point drawing tool as the main annotation tools. The polygon tool is suitable for accurately outlining the irregular edges of cracks, while the three-point drawing tool is suitable for quickly marking circular or nearly circular concave defects. It should be noted that the corresponding annotation tool can be selected according to the data type or characteristics of the data to be annotated. The above is only an example and can be set according to needs.

[0106] Batch annotation operation: First, use the polygon tool to carefully outline a typical crack area on a representative image (i.e., the target segmentation result of the selected data to be annotated). However, using the intelligent function of the software, this precise annotation "template" is batch applied to all similar screw heads in other images (i.e., the annotation operation is batch applied to the remaining multiple target segmentation results of the data to be annotated). Since the position of the screws on the production line is relatively fixed, the software can automatically adjust the annotation position through image registration technology to adapt to the specific form of each image. When encountering a situation where the annotation does not match completely, switch to erase mode, make subtle adjustments to the automatically applied annotation, remove inaccurate parts, and ensure the accuracy of the annotation.

[0107] Customized tools and process optimization: Furthermore, according to the specific needs of the data to be annotated, a regional pen tool may be customized, which is particularly suitable for quickly marking the larger wear area of ​​the screw head. At the same time, shortcut keys can be set to quickly switch between different tools to further improve work efficiency. For extremely subtle defects, the auxiliary mode of the Ai drawing tool may be enabled. The tool uses AI algorithms to predict and suggest annotation paths, which are then manually reviewed and finally confirmed to ensure both speed and accuracy.

[0108] Review and feedback: After completing batch labeling, the labeling results are checked through the software's review function and manually corrected if necessary. Finally, all verified labeling data is integrated and used to train the machine learning model to achieve automatic detection of screw surface defects.

[0109] Through the above-mentioned batch labeling strategy that combines intelligent tools with manual intervention, enterprises can efficiently and accurately mark defects in a large number of images, providing high-quality data for subsequent model training, thereby improving defect detection capabilities on the production line, reducing manual inspection costs, and improving product quality.

[0110] Optionally, in the embodiment of the present application, step 103 may specifically include the following steps:

[0111] 1031. Obtain a bounding rectangular frame corresponding to each of the data to be labeled according to the initial segmentation result corresponding to each of the data to be labeled;

[0112] 1032. Inputting the initial segmentation results corresponding to the plurality of data to be labeled, the circumscribed rectangular boxes corresponding to the plurality of data to be labeled, and the obtained image codes of the plurality of data to be labeled as input information into a decoder of a pre-trained segmentation model to obtain target segmentation results of the plurality of data to be labeled output by the decoder;

[0113] The segmentation model is trained based on a plurality of sample annotated data, and the plurality of sample annotated data is composed of a plurality of data annotated with initial segmentation results, circumscribed rectangular frames and image codes, and target segmentation results corresponding to the data.

[0114] It should be noted that, before executing step 1032, the plurality of data to be labeled need to be input into a pre-trained graphic encoder of a segmentation model to obtain image encodings of the plurality of data to be labeled output by the graphic encoder.

[0115] In this step, several key concepts are explained first:

[0116] Circumscribed rectangular frame: The smallest rectangular area formed around the outermost boundary of the initial segmentation result, used to quickly locate and frame the position of the initial segmentation result. It is usually slightly larger than the initial segmentation result to ensure that the initial segmentation result is completely contained.

[0117] Image encoding: Convert raw data into a compact numerical representation that is easy for the model to process. Common encoding methods include pixel value histograms, feature vectors, etc.

[0118] Segmentation model: A deep learning model, such as the SAM model, fully convolutional network (FCN), U-Net, etc., is used to accurately segment the target object from the image. This type of model can output the probability distribution of each pixel belonging to a specific category.

[0119] Decoder: In an encoder-decoder neural network, the decoder is responsible for converting the intermediate compressed representation (encoding) back into high-dimensional spatial information, such as pixel-level classification for image segmentation.

[0120] Sample annotated data: images used to train segmentation models and their corresponding manually annotated data, including accurate segmentation boundary information of the target, are the basis for model learning.

[0121] In an embodiment of the present application, a medical image analysis project is considered, the purpose of which is to accurately segment the lung area from an X-ray film to facilitate further disease diagnosis research.

[0122] Obtaining the bounding rectangle: First, the project team used simple image processing techniques (such as edge detection and connected component analysis) to perform preliminary processing on each X-ray film, identify the approximate range of the suspected lung area, and calculate the smallest bounding rectangle for each suspected area. This step quickly narrowed the scope of focus for subsequent processing.

[0123] Prepare input information: For each X-ray, the team records the initial segmentation result (which may be a rough outline of the lung area), the corresponding bounding rectangle coordinates, and the preprocessed image encoding. The image encoding can be a feature vector extracted from the original image through a feature extraction algorithm, which helps the model understand the image content.

[0124] Model training and application: The project team has previously trained a segmentation model using a large number of X-rays manually annotated by doctors (including the precise segmentation boundaries of the lungs, the corresponding circumscribed rectangular box positions, and the feature encoding of the image). The decoder in the model is designed to predict more accurate lung segmentation results based on this input information. In this embodiment, they feed the input information prepared in steps 1 and 2 into the decoder of this pre-trained model, and the model "decodes" the precise segmentation boundaries of the lungs in each X-ray based on this information.

[0125] Obtain target segmentation results: The decoder outputs the lung target segmentation results generated for each X-ray. Compared with the initial segmentation results, these outputs are more accurate and can better match the actual contours of the lungs, reducing mis-segmentation and missed segmentation, and providing high-quality segmentation data for subsequent medical analysis.

[0126] Through the above steps, this embodiment demonstrates how to combine the initial segmentation results, the external rectangular frame information and the image encoding, and use deep learning technology to improve the accuracy and efficiency of image segmentation, which is particularly suitable for the automated processing scenarios of large-scale image data.

[0127] Optionally, in an embodiment of the present application, before step 103, it also includes: obtaining the area score corresponding to each initial segmentation result of the data to be labeled, and filtering out the segmentation results with an area score less than a preset score to generate a target segmentation result; and / or calculating the mask area covered by each initial segmentation result of the data to be labeled, and filtering out the segmentation results with a mask area less than a preset area to generate a target segmentation result.

[0128] In this step, the region score is an evaluation indicator that usually reflects the credibility of the target object in the segmentation result or the degree of match with the real target. A higher score means a more accurate segmentation.

[0129] The preset score is a threshold, and segmentation results below this value will be considered to be of low quality and not worthy of further annotation.

[0130] The mask area refers to the number of image pixels occupied by the segmentation result. An area that is too small may mean that the segmented object is incomplete or insignificant. Therefore, the "preset area" is used to filter out those segmentation areas that do not meet the conditions, ensuring that the focus of subsequent annotation work is on meaningful targets.

[0131] In the embodiment of the present application, a factory that produces precision mechanical parts needs to detect tiny scratches and cracks on the surface of parts. After capturing the image of the part with a high-precision camera, the model first performs preliminary image segmentation through matching retrieval to try to identify all possible abnormal areas. In this process, the model assigns a confidence score, i.e., "region score", to each suspected defective area as a basis for judging whether the area actually contains defects.

[0132] The specific steps of the embodiment are as follows:

[0133] Initial segmentation and scoring: Assume that the model identifies five suspected defect areas on a bolt image, namely A, B, C, D, and E. Each area is assigned a score based on the model's judgment, for example, A scores 0.92 (highly suspected defect), B scores 0.68, C scores 0.55, D scores 0.81, and E scores 0.20.

[0134] Filter out low-scoring areas: Based on a preset score threshold, such as 0.5, any area with a score below this value will be removed. Therefore, E (score 0.20) is excluded due to its low score and does not proceed to the next step.

[0135] Mask area screening: For the remaining three regions A, B, and D, their mask areas are further calculated. If the preset area threshold is set to 0.1% of the total image area, only those regions whose areas exceed the threshold will be retained. Assume that the actual mask areas of regions A and D exceed the preset value, but the area of ​​region B is too small to meet the requirements, so region B is also excluded.

[0136] Generate target segmentation results: After the above two rounds of screening, only regions A and D are left as high-quality target segmentation results. These regions will be regarded as defect candidate regions that really need to be labeled and further analyzed, so as to be finely labeled and verified by manual or further automated processes.

[0137] Through such a preprocessing step, the workload of subsequent manual annotation can be significantly reduced, focusing on the areas most likely to be real defects, thereby improving the efficiency and accuracy of the overall inspection process.

[0138] Among them, the filtered effect diagram can be as follows Figure 5 As shown, Figure 5The noise point 51 in (5a) can be the low-scoring area mentioned above or the area whose mask area is smaller than the preset area. Therefore, after filtering out the noise point 51, Figure 5 The target segmentation result in (5b) is shown in Fig.

[0139] Optionally, in the embodiment of the present application, step 102 may specifically include: inputting the query object and the pre-established data set to be annotated into a pre-trained matching retrieval model, so as to query the data to be annotated that matches the query object through the matching retrieval model, and generate a plurality of initial segmentation results corresponding to the data to be annotated;

[0140] The matching retrieval model is trained based on a plurality of sample pairs, and the plurality of sample pairs include a plurality of samples having a matching relationship between the query object and the data in the to-be-annotated data set.

[0141] In this step, the query object refers to a specific image or feature description that the user wants to find similar or related image data to be annotated. For example, in medical image analysis, the query object may be a lung CT scan image to be diagnosed, and the purpose is to find similar annotated cases in the database.

[0142] Pre-built annotated datasets: This is a dataset containing a large number of annotated images, each with detailed labels or segmentation masks indicating specific objects or regions in the image. This data is used to train models to learn to recognize and classify image content.

[0143] Matching retrieval model: This is a machine learning model that is trained to retrieve matching or related data from a large dataset based on a query input. It matches based on a similarity measure between the query and each sample in the dataset.

[0144] Initial segmentation result: This is the segmentation mask that the matching retrieval model initially predicts after finding matching data to be annotated based on the query object. This result is relatively rough and is used to quickly locate the approximate position of the target object.

[0145] In the present application embodiment:

[0146] Suppose we are developing an architectural style analysis system for urban planning, and need to identify and classify buildings of different styles from a large number of street view images. The implementation steps are as follows:

[0147] Building a matching retrieval model: First, we collected and annotated a large-scale dataset of street view images containing a variety of architectural styles. Then, we used these sample pairs (each pair consists of a query sample image and its matching architectural style image in the dataset) to train a deep learning matching retrieval model. The model learns how to extract features from the query image and compare them with the features of the images in the dataset to find the best matching image.

[0148] Query and preliminary segmentation: The user uploads a picture of a building that he wants to analyze as the query object. The system inputs it into the pre-trained matching retrieval model, which quickly retrieves several images that are closest to the style of the query object from the annotated dataset and generates a rough segmentation mask for these images, i.e. the initial segmentation result. It should be noted that in this process, image encoding is performed only once to extract the features of the query image, which are then reused in two stages (coarse segmentation and fine segmentation).

[0149] Refined segmentation: Based on the initial segmentation results, the system further refines the segmentation process and uses shared image features to perform more refined boundary adjustments and detail optimization, ultimately obtaining accurate architectural style area segmentation.

[0150] Through this two-stage strategy, not only the computational cost is reduced, but also a high segmentation accuracy is maintained, so that the system can efficiently provide users with detailed analysis reports on the queried architectural style.

[0151] Figure 6 A schematic diagram of the structure of a data annotation device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the device comprises:

[0152] An acquisition module 61 is used to acquire a query object provided by a user;

[0153] A generation module 62 is used to query multiple data to be labeled that match the query object in a pre-established data set to be labeled based on the query object, and generate multiple initial segmentation results corresponding to the data to be labeled; perform fine segmentation on the initial segmentation results corresponding to the multiple data to be labeled to generate multiple target segmentation results of the data to be labeled;

[0154] The labeling module 63 is used to use a pre-created labeling tool to perform a labeling operation on the selected target segmentation result of the data to be labeled, and apply the labeling operation in batches to the remaining target segmentation results of the data to be labeled.

[0155] Optionally, in an embodiment of the present application, the generation module 62 is specifically used to obtain the circumscribed rectangular box corresponding to the data to be labeled according to the initial segmentation results corresponding to each of the data to be labeled; the initial segmentation results corresponding to multiple data to be labeled, the circumscribed rectangular boxes corresponding to multiple data to be labeled, and the obtained image encodings of the multiple data to be labeled are used as input information and input into the decoder of the pre-trained segmentation model to obtain the target segmentation results of the multiple data to be labeled output by the decoder.

[0156] Optionally, in the embodiment of the present application, the device further includes: a filtering module 64;

[0157] The filtering module 64 is used to obtain the area score corresponding to each of the initial segmentation results of the data to be labeled, and filter out the segmentation results with area scores less than a preset score to generate a target segmentation result; and / or calculate the mask area covered by each of the initial segmentation results of the data to be labeled, and filter out the segmentation results with mask areas less than a preset area to generate a target segmentation result.

[0158] Optionally, in an embodiment of the present application, the acquisition module 61 is further used to input the plurality of data to be labeled into a graphic encoder of a pre-trained segmentation model to obtain image encodings of the plurality of data to be labeled output by the graphic encoder.

[0159] Optionally, in an embodiment of the present application, the generation module 62 is specifically used to input the query object and a pre-established data set to be annotated into a pre-trained matching retrieval model, so as to query the data to be annotated that matches the query object through the matching retrieval model, and generate multiple initial segmentation results corresponding to the data to be annotated.

[0160] Optionally, in an embodiment of the present application, the pre-created annotation tools include at least: Ai drawing tool, three-point drawing tool, rectangle tool, oblique rectangle tool, circle tool, ellipse tool, area pen tool, polyline tool, polygon tool and fill tool.

[0161] Optionally, in an embodiment of the present application, the Ai drawing tool, the polygon tool, the rectangle tool, the oblique rectangle tool, the circle tool, the three-point drawing tool and the ellipse tool include a drawing mode and an erasing mode, wherein the drawing mode is used to perform drawing annotations in the target segmentation result, and the erasing mode is used to perform erasing annotations in the target segmentation result.

[0162] Figure 6 The data annotation device can perform Figure 1The implementation principle and technical effect of the data annotation method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the data annotation device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0163] In one possible design, Figure 6 The data annotation device of the embodiment shown can be implemented as a computing device, such as Figure 7 As shown, the computing device may include a storage component 71 and a processing component 72;

[0164] The storage component 71 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 72 .

[0165] The processing component 72 is used to: obtain a query object provided by a user; based on the query object, query multiple data to be labeled that match the query object in a pre-established data set to be labeled, and generate multiple initial segmentation results corresponding to the data to be labeled; perform fine segmentation on the initial segmentation results corresponding to the multiple data to be labeled to generate multiple target segmentation results of the data to be labeled; use a pre-created labeling tool to perform labeling operations on the target segmentation results of the selected data to be labeled, and apply the labeling operations in batches to the remaining multiple target segmentation results of the data to be labeled.

[0166] The processing component 72 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0167] The storage component 71 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0168] Of course, the computing device may also include other components, such as input / output interfaces, display components, communication components, etc.

[0169] The display component 73 can be an electroluminescent (EL) element, a liquid crystal display or a micro display with a similar structure, or a retinal direct display or a similar laser scanning display.

[0170] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.

[0171] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.

[0172] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0173] The present application also provides a computer storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The data labeling method of the illustrated embodiment.

[0174] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0175] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data labeling method, characterized in that: include: Get the query object provided by the user; Based on the query object, a plurality of to-be-annotated data matching the query object are searched in a pre-established to-be-annotated data set, and initial segmentation results corresponding to the plurality of to-be-annotated data are generated; Obtaining the circumscribed rectangular frame corresponding to each of the data to be labeled according to the initial segmentation result corresponding to each of the data to be labeled; Inputting the initial segmentation results corresponding to the plurality of data to be labeled, the circumscribed rectangular frames corresponding to the plurality of data to be labeled, and the acquired image codes of the plurality of data to be labeled as input information into a decoder of a pre-trained segmentation model to obtain target segmentation results of the plurality of data to be labeled output by the decoder; A pre-created annotation tool is used to perform an annotation operation on the selected target segmentation result of the data to be annotated, and the annotation operation is batch-applied to the remaining target segmentation results of the data to be annotated.

2. The method according to claim 1, characterized in that Also includes: Obtaining the region score corresponding to each initial segmentation result of the data to be labeled, and filtering out the segmentation results whose region scores are less than a preset score, so as to generate a target segmentation result; and / or, The mask area covered by each initial segmentation result of the data to be labeled is calculated, and the segmentation results whose mask area is smaller than a preset area are filtered out to generate a target segmentation result.

3. The method according to claim 1, characterized in that Before inputting the initial segmentation results corresponding to the plurality of data to be labeled, the circumscribed rectangular frames corresponding to the plurality of data to be labeled, and the acquired image codes of the plurality of data to be labeled as input information into a decoder of a pre-trained segmentation model to obtain the target segmentation results of the plurality of data to be labeled output by the decoder, the method further includes: Input the multiple data to be labeled into the graphic encoder of a pre-trained segmentation model to obtain the image codes of the multiple data to be labeled output by the graphic encoder, and continue to execute the step of inputting the initial segmentation results corresponding to the multiple data to be labeled, the circumscribed rectangular boxes corresponding to the multiple data to be labeled and the obtained image codes of the multiple data to be labeled as input information into the decoder of the pre-trained segmentation model to obtain the target segmentation results of the multiple data to be labeled output by the decoder.

4. The method according to claim 1, characterized in that: The step of searching for a plurality of to-be-annotated data matching the query object in a pre-established to-be-annotated data set based on the query object, and generating a plurality of initial segmentation results corresponding to the to-be-annotated data, includes: The query object and the pre-established data set to be annotated are input into a pre-trained matching retrieval model, so as to query the data to be annotated that matches the query object through the matching retrieval model, and generate a plurality of initial segmentation results corresponding to the data to be annotated.

5. The method according to any one of claims 1 to 4, characterized in that: The pre-created annotation tools include at least: Ai drawing tool, three-point drawing tool, rectangle tool, oblique rectangle tool, circle tool, ellipse tool, area pen tool, polyline tool, polygon tool and fill tool.

6. The method according to claim 5, characterized in that The Ai drawing tool, the polygon tool, the rectangle tool, the oblique rectangle tool, the circle tool, the three-point drawing tool and the ellipse tool include a drawing mode and an erasing mode, wherein the drawing mode is used to perform drawing annotations in the target segmentation result, and the erasing mode is used to perform erasing annotations in the target segmentation result.

7. A data labeling device, characterized in that: include: The acquisition module is used to obtain the query object provided by the user; A generation module, configured to query a plurality of to-be-annotated data matching the query object in a pre-established to-be-annotated data set based on the query object, and generate a plurality of initial segmentation results corresponding to the to-be-annotated data; Obtaining the circumscribed rectangular frame corresponding to each of the data to be labeled according to the initial segmentation result corresponding to each of the data to be labeled; Inputting the initial segmentation results corresponding to the plurality of data to be labeled, the circumscribed rectangular frames corresponding to the plurality of data to be labeled, and the acquired image codes of the plurality of data to be labeled as input information into a decoder of a pre-trained segmentation model to obtain target segmentation results of the plurality of data to be labeled output by the decoder; The labeling module is used to use a pre-created labeling tool to perform a labeling operation on the selected target segmentation result of the data to be labeled, and apply the labeling operation in batches to the remaining target segmentation results of the data to be labeled.

8. A computing device, characterized in that It comprises a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the data labeling method as described in any one of claims 1 to 6.

9. A computer storage medium, characterized in that A computer program is stored, and when the computer program is executed by a computer, the data labeling method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Joint target labeling method and device, equipment and storage medium

    CN117078927A

  • Instance segmentation automatic labeling method and device, electronic equipment and medium

    CN117809040A

  • Generation of query stacks from object relationships

    US20210232578A1