Model-based lamp bead labeling method and device, medium and electronic equipment

Through the model-based lamp bead labeling method, manual labeling is used to train the detection model, combined with feature extraction and enhanced models, to achieve fast and high-accuracy automatic detection of LED lamp bead defects, solving the low efficiency and accuracy of manual labeling in the existing technology. problem.

CN118736293APending Publication Date: 2024-10-01CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410802057.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, LED lamp bead defect detection mainly relies on manual annotation, which is inefficient and difficult to guarantee accuracy. Especially because LED lamp beads are small and large in number, manual detection efficiency and accuracy decrease.

Method used

A model-based lamp bead annotation method is adopted, by obtaining lamp bead images, using manually annotated partial images as training samples to train the detection model, combining feature extraction and enhancement models to automatically annotate, and improve annotation accuracy through verification and model optimization.

Benefits of technology

It achieves rapid automatic labeling of a large number of LED lamp beads, reduces manual workload, improves labeling efficiency and accuracy, and adapts to different scenarios and product needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736293A_ABST
    Figure CN118736293A_ABST
Patent Text Reader

Abstract

The invention discloses a lamp bead labeling method and device based on a model, a medium and electronic equipment, and the method comprises the steps: obtaining a lamp bead image of a to-be-labeled lamp bead, and manually labeling a part of the lamp bead image to obtain an accurate labeling result of the part of the lamp bead; and training a detection model by taking a part of manually labeled lamp bead images and the corresponding labeling results as samples to obtain a detection model suitable for the to-be-labeled lamp beads, and inputting the lamp bead images of the to-be-labeled lamp beads into the trained detection model to automatically generate labeling results of the to-be-labeled lamp beads. Therefore, the annotation accuracy of the detection model can be further improved through a small amount of manual annotation, namely higher annotation accuracy is achieved through a small amount of manual annotation, and the balance between the manual workload and the annotation accuracy is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lamp bead labeling, and in particular to a lamp bead labeling method, device, medium and electronic device based on a model. Background Art

[0002] LED (Light Emitting Diode) lamp beads are widely used in vehicle lighting, LED large-screen displays, traffic lights, etc. During the production process, there may be defects in LED lamp beads, such as displacement, defects, scratches, cracks, etc.

[0003] At present, most of the detection of LED lamp bead defects is done through manual labeling. Due to the small size and large number of LED lamp beads, the workload of manual labeling is large, resulting in low efficiency of manual labeling. In addition, due to long-term eye fatigue of workers, the accuracy of manual detection is also easily reduced. Therefore, a method that can automatically label lamp bead defects is needed to reduce the workload of manual labeling and ensure the accuracy of labeling. Summary of the invention

[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a lamp bead labeling method, device, medium and electronic device based on a model.

[0005] According to one aspect of the present application, a model-based lamp bead labeling method is provided, including: obtaining a lamp bead image of a lamp bead to be labeled; manually labeling a portion of the lamp bead image in the lamp bead image to obtain a labeling result of the portion of the lamp bead image; using the portion of the lamp bead image and its labeling results as training samples to train a detection model to obtain a trained detection model; inputting the lamp bead image into the trained detection model to obtain a labeling result of the lamp bead image.

[0006] In one embodiment, the step of inputting the lamp bead image into the trained detection model to obtain the labeling result of the lamp bead image includes: inputting the lamp bead image into a feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining feature data of the lamp bead image; inputting the feature data of the lamp bead image into a feature enhancement model, performing enhancement processing on the feature data, and obtaining enhanced data of the lamp bead image; and outputting the labeling result of the lamp bead image based on the enhanced data of the lamp bead image; wherein the labeling result includes a labeling box containing the lamp bead to be labeled, a labeling category, and a confidence level.

[0007] In one embodiment, the feature extraction model includes a bimodal feature extraction model; wherein, inputting the lamp bead image into the feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining feature data of the lamp bead image includes: inputting the lamp bead image into the bimodal feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining image feature data and text feature data of the lamp bead image; inputting the feature data of the lamp bead image into the feature enhancement model, performing enhancement processing on the feature data, and obtaining enhanced data of the lamp bead image includes: inputting the image feature data and text feature data of the lamp bead image into the feature enhancement model, performing feature extraction processing on the feature data, and obtaining enhanced data of the lamp bead image The image feature data and the text feature data are enhanced separately to obtain the image enhancement data and text enhancement data of the lamp bead image; after obtaining the image enhancement data and text enhancement data of the lamp bead image, the model-based lamp bead labeling method also includes: inputting the image enhancement data and text enhancement data of the lamp bead image into a trans-membrane decoding model, performing trans-membrane processing on the image enhancement data and the text enhancement data, and obtaining cross-modal data of the lamp bead image; outputting the labeling result of the lamp bead image based on the enhanced data of the lamp bead image includes: outputting the labeling result of the lamp bead image based on the cross-modal data of the lamp bead image.

[0008] In one embodiment, outputting the annotation result of the lamp bead image based on the cross-modal data of the lamp bead image includes: based on the cross-modal data of the lamp bead image, selecting a modality matching the lamp bead image and outputting the annotation result of the lamp bead image.

[0009] In one embodiment, after obtaining the labeling result of the lamp bead image, the model-based lamp bead labeling method further includes: verifying the labeling result of the lamp bead image to obtain a verification result; if the verification result indicates that the labeling accuracy is greater than a preset accuracy threshold, the labeling ends.

[0010] In one embodiment, the model-based lamp bead labeling method further includes: if the verification result indicates that the labeling accuracy is less than or equal to the accuracy threshold, then training the detection model again.

[0011] In one embodiment, the method of using the partial lamp bead images and their annotation results as training samples to train the detection model includes: inputting the partial lamp bead images into the detection model, calculating the contrast loss function value and the positioning loss function value of the detection model; and optimizing the parameters of the detection model based on the contrast loss function value and the positioning loss function value.

[0012] According to another aspect of the present application, a model-based lamp bead labeling device is provided, including: an image acquisition module, used to acquire a lamp bead image of a lamp bead to be labeled; a manual labeling module, used to manually label part of the lamp bead image to obtain the labeling result of the part of the lamp bead image; a model training module, used to train a detection model using the part of the lamp bead image and its labeling result as training samples to obtain a trained detection model; an automatic labeling module, used to input the lamp bead image into the trained detection model to obtain the labeling result of the lamp bead image.

[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute any of the above-mentioned model-based lamp bead labeling methods.

[0014] According to another aspect of the present application, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is used to execute any of the above-mentioned model-based lamp bead labeling methods.

[0015] Compared with the prior art, the technical solution of this application has the following beneficial effects:

[0016] 1. This application uses a detection model to quickly and automatically label large amounts of lamp beads to be labeled, so as to reduce the workload of manual labeling, save manpower and time costs, and improve labeling efficiency.

[0017] 2. This application uses manual annotation of some lamp bead images and optimizes the parameters of the detection model based on the manual annotation results to improve the annotation accuracy of the detection model.

[0018] 3. This application can also set the number of manual annotations, the category of training objects, etc. according to the needs of the actual scenario, so as to better adapt to the needs of different scenarios and different products. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0020] Figure 1 It is a flowchart of a model-based lamp bead labeling method provided by an exemplary embodiment of the present application.

[0021] Figure 2It is a structural schematic diagram of a model-based lamp bead marking device provided by an exemplary embodiment of the present application.

[0022] Figure 3 It is a structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0023] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0024] Figure 1 FIG. 1 is a flow chart of a lamp bead labeling method based on a model provided by an exemplary embodiment of the present application. Figure 1 As shown, the model-based lamp bead labeling method includes the following steps:

[0025] Step 110: Obtain the lamp bead image of the lamp bead to be labeled.

[0026] Specifically, the present application obtains the image of the lamp bead to be labeled through a device for shooting images such as a camera, so as to serve as the labeling object and basis for the lamp bead to be labeled.

[0027] Step 120: manually annotate part of the lamp bead images to obtain annotated results of the part of the lamp bead images.

[0028] After obtaining the lamp bead image of the lamp bead to be labeled, firstly use manual labeling to label part of the lamp bead image to obtain the labeling result of the part of the lamp bead image. For example, the present application can use manual labeling to label a small number (for example, 10%) of the lamp beads in the lamp bead image to obtain accurate labeling results of the part of the lamp beads.

[0029] Step 130: Use some lamp bead images and their annotation results as training samples to train the detection model to obtain a trained detection model.

[0030] The present application can use a large-scale detection model of image detection to detect lamp bead images. However, due to the large parameter capacity and high complexity of the large-scale detection model, it can be applied to image detection in multiple scenes. However, due to its specific universality, its detection accuracy for this subdivision (lamp bead image annotation) may not be high enough. In order to further improve the accuracy of the detection model for lamp bead image annotation, the present application can give priority to obtaining the annotation results of a small number of lamp beads by manual annotation, and use this to guide the parameter optimization of the detection model. Specifically, after obtaining the annotation results of a small number of lamp beads by manual annotation, the images and annotation results of the small number of lamp beads are used as samples to train the detection model again, and the detection accuracy of the detection model in the subdivision of lamp bead image annotation is quickly improved with a small number of training samples. Preferably, the present application can also divide the lamp bead images and annotation results obtained by manual annotation into two parts: training samples and verification samples (for example, divided in a ratio of 7:3), that is, the detection model is trained using the training samples, and the accuracy of the detection model is verified using the verification samples after training, so as to ensure that the annotation accuracy of the detection model meets the expected requirements.

[0031] Step 140: Input the lamp bead image into the trained detection model to obtain the labeling result of the lamp bead image.

[0032] After completing the training of the detection model, the present application inputs the lamp bead image into the trained detection model to automatically generate the labeling results of the lamp beads to be labeled, thereby greatly improving the labeling efficiency of the lamp beads to be labeled while ensuring the accuracy of the labeling.

[0033] The present application provides a model-based lamp bead labeling method, which obtains lamp bead images of lamp beads to be labeled; manually labels part of the lamp bead images in the lamp bead images to obtain labeling results of the part of the lamp bead images; uses the part of the lamp bead images and their labeling results as training samples to train a detection model to obtain a trained detection model; inputs the lamp bead images into the trained detection model to obtain labeling results of the lamp bead images; that is, after obtaining the lamp bead images of the lamp beads to be labeled, manually labels part of the lamp bead images to obtain accurate labeling results of the part of the lamp bead, uses the manually labeled part of the lamp bead images and the corresponding labeling results as samples to train the detection model to obtain a detection model suitable for the lamp beads to be labeled, and inputs the lamp bead images of the lamp beads to be labeled into the trained detection model to automatically generate labeling results of the lamp beads to be labeled, so that the labeling accuracy of the detection model can be further improved with a small amount of manual labeling, that is, a small amount of manual labeling is exchanged for higher labeling accuracy, thereby achieving a balance between manual workload and labeling accuracy.

[0034] In one embodiment, the specific implementation method of the above step 140 may be: inputting the lamp bead image into a feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining feature data of the lamp bead image; inputting the feature data of the lamp bead image into a feature enhancement model, performing enhancement processing on the feature data, and obtaining enhanced data of the lamp bead image; based on the enhanced data of the lamp bead image, outputting the annotation result of the lamp bead image; wherein the annotation result includes a annotation box containing the lamp bead to be labeled, an annotation category, and a confidence level.

[0035] Specifically, the present application sets a feature extraction model including multiple series-connected feature extraction convolution layers to perform feature extraction processing on the lamp bead image to obtain feature data of the lamp bead image. Preferably, the present application may also set multiple attention modules in the feature extraction model to realize the extraction of multi-scale features, thereby extracting feature data of more scales. After the feature data is extracted, the feature data is input into the feature enhancement model (Feature Enhancer) to enhance the feature information in the lamp bead image, thereby providing more accurate feature data for subsequent labeling of the lamp bead image; and after the feature enhancement processing, the labeling result of the lamp bead image (including labeling box, labeling category and confidence) is obtained according to the enhanced data, so that the attribute information of the lamp bead image can be labeled in more detail and clearly, which is convenient for subsequent inspection and maintenance operations.

[0036] In one embodiment, the feature extraction model includes a bimodal feature extraction model; wherein, the specific method for extracting the feature data of the lamp bead image may be: inputting the lamp bead image into the bimodal feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining image feature data and text feature data of the lamp bead image; the specific method for obtaining the enhanced data of the lamp bead image may be: inputting the image feature data and text feature data of the lamp bead image into the feature enhancement model, performing enhancement processing on the image feature data and text feature data respectively, and obtaining image enhancement data and text enhancement data of the lamp bead image; after obtaining the image enhancement data and text enhancement data of the lamp bead image, the above-mentioned model-based lamp bead labeling method may also include: inputting the image enhancement data and text enhancement data of the lamp bead image into the transmembrane decoding model, performing transmembrane processing on the image enhancement data and text enhancement data, and obtaining cross-modal data of the lamp bead image; correspondingly, the specific method for obtaining the labeling result of the above-mentioned lamp bead image may be: outputting the labeling result of the lamp bead image based on the cross-modal data of the lamp bead image.

[0037] Specifically, the feature extraction model in the present application is a bimodal feature extraction model, specifically including an image feature extraction model (such as a Swin Transformer model) and a text feature extraction model (Bert model). The present application inputs the lamp bead image into the bimodal feature extraction model to extract the image feature data and text feature data of the lamp bead image, and after extracting the image feature data and the text feature data, the image feature data and the text feature data are input into the feature enhancement model to enhance the image feature data and the text feature data, respectively, so as to obtain the image enhancement data and the text enhancement data of the lamp bead image. The image enhancement data and the text enhancement data of the lamp bead image are input into the transmembrane state decoding model (transmembrane state decoder), and the image enhancement data and the text enhancement data are subjected to transmembrane state processing; and the annotation result of the lamp bead image is generated based on the transmembrane state data. The present application converts the image enhancement data and the text enhancement data into output format data suitable for different modes, obtains the cross-modal data of the lamp bead image, and uses the bimodal feature extraction model to extract the feature data of multiple modes of the lamp bead image, so as to more accurately and comprehensively identify the feature information in the lamp bead image, which is conducive to further improving the annotation accuracy of the detection model.

[0038] In one embodiment, a specific method for obtaining the annotation result of the above-mentioned lamp bead image may be: based on the cross-modal data of the lamp bead image, selecting a modality matching the lamp bead image and outputting the annotation result of the lamp bead image.

[0039] Specifically, the present application uses a language-guided query selector to select or generate a modality that matches a given lamp bead image based on information such as the format and content of the input data (transmembrane state data), and then obtains a labeling result that matches the lamp bead image.

[0040] In one embodiment, after step 140, the above-mentioned model-based lamp bead labeling method may further include: verifying the labeling result of the lamp bead image to obtain a verification result; if the verification result indicates that the labeling accuracy is greater than a preset accuracy threshold, the labeling is ended.

[0041] After automatically labeling the labeling results of the lamp bead images of the lamp beads to be labeled, the present application verifies the labeling results (for example, manual verification). Specifically, the lamp bead images can be spot checked and verified, that is, some lamp bead images and their labeling results are randomly selected from the lamp bead images to verify their correctness, thereby obtaining the verification results. The present application can also verify the lamp beads whose labeling results of the lamp bead images are abnormal, so as to judge the labeling accuracy of the detection model through the labeling results of the abnormal lamp beads. If the verification result obtained is that the labeling accuracy is greater than the accuracy threshold, it means that the labeling accuracy of the detection model has reached the expected accuracy. At this time, the labeling can be ended, and the labeling results obtained by the detection model are used as the final labeling results of the lamp beads to be labeled.

[0042] In one embodiment, the above-mentioned model-based lamp bead labeling method may further include: if the verification result indicates that the labeling accuracy is less than or equal to the accuracy threshold, then training the detection model again.

[0043] If the verification result is that the labeling accuracy is less than or equal to the accuracy threshold, it means that the labeling accuracy of the detection model has not reached the expected accuracy. At this time, the labeling result obtained by the detection model cannot be directly used as the final labeling result of the lamp bead to be labeled. In order to improve the labeling accuracy of the detection model, this application retrains the detection model when the verification result is not ideal (does not reach the expected accuracy) to improve the labeling accuracy of the detection model, and automatically labels the lamp bead image again based on the trained detection model until the labeling accuracy of the labeling result obtained by the detection model reaches the expected accuracy.

[0044] In one embodiment, the specific implementation method of the above step 130 can be: inputting part of the lamp bead image into the detection model, calculating the contrast loss function value and the positioning loss function value of the detection model; based on the contrast loss function value and the positioning loss function value, optimizing the parameters of the detection model.

[0045] When training the detection model, the present application utilizes the characteristics of the bimodal network to respectively calculate the contrast loss function value and the positioning loss function value of the detection model, and comprehensively calculates the final loss function of the detection model by combining the contrast loss function value and the positioning loss function value, so that the correlation between the data of the bimodal network can be effectively learned during the training process, and then the parameters of the detection model can be better optimized to improve the labeling accuracy of the detection model.

[0046] Figure 2 is a schematic diagram of the structure of a lamp bead marking device based on a model provided by an exemplary embodiment of the present application. Figure 2 As shown, the model-based lamp bead labeling device 20 includes: an image acquisition module 21, used to obtain the lamp bead image of the lamp bead to be labeled; a manual labeling module 22, used to use part of the lamp bead image in the manual labeling lamp bead image to obtain the labeling result of the part of the lamp bead image; a model training module 23, used to use part of the lamp bead image and its labeling result as training samples to train the detection model to obtain the trained detection model; an automatic labeling module 24, used to input the lamp bead image into the trained detection model to obtain the labeling result of the lamp bead image.

[0047] The present application provides a model-based lamp bead labeling device, which acquires lamp bead images of lamp beads to be labeled through an image acquisition module 21; a manual labeling module 22 uses part of the lamp bead images in the manually labeled lamp bead images to obtain labeling results of the part of the lamp bead images; a model training module 23 uses part of the lamp bead images and their labeling results as training samples to train a detection model to obtain a trained detection model; an automatic labeling module 24 inputs the lamp bead images into the trained detection model to obtain labeling results of the lamp bead images; that is, after acquiring the lamp bead images of the lamp beads to be labeled, manually labeling part of the lamp bead images is used to obtain accurate labeling results of the part of the lamp beads, and the manually labeled part of the lamp bead images and the corresponding labeling results are used as samples to train the detection model to obtain a detection model suitable for the lamp beads to be labeled, and the lamp bead images of the lamp beads to be labeled are input into the trained detection model to automatically generate labeling results of the lamp beads to be labeled, so that the labeling accuracy of the detection model can be further improved with a small amount of manual labeling, that is, a small amount of manual labeling is exchanged for higher labeling accuracy, thereby achieving a balance between manual workload and labeling accuracy.

[0048] In one embodiment, the automatic labeling module 24 can be further configured as follows: inputting the lamp bead image into a feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining feature data of the lamp bead image; inputting the feature data of the lamp bead image into a feature enhancement model, performing enhancement processing on the feature data, and obtaining enhanced data of the lamp bead image; based on the enhanced data of the lamp bead image, outputting the labeling result of the lamp bead image; wherein the labeling result includes a labeling box containing the lamp bead to be labeled, a labeling category, and a confidence level.

[0049] In one embodiment, the feature extraction model includes a bimodal feature extraction model; wherein the above-mentioned automatic annotation module 24 can be further configured as: inputting the lamp bead image into the bimodal feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining image feature data and text feature data of the lamp bead image; inputting the image feature data and text feature data of the lamp bead image into the feature enhancement model, and performing enhancement processing on the image feature data and text feature data respectively, to obtain image enhancement data and text enhancement data of the lamp bead image; after obtaining the image enhancement data and text enhancement data of the lamp bead image, the above-mentioned model-based lamp bead annotation device 20 can be further configured as: inputting the image enhancement data and text enhancement data of the lamp bead image into the trans-membrane decoding model, performing trans-membrane processing on the image enhancement data and text enhancement data, and obtaining cross-modal data of the lamp bead image; and the above-mentioned automatic annotation module 24 can be further configured as: based on the cross-modal data of the lamp bead image, outputting the annotation result of the lamp bead image.

[0050] In one embodiment, the automatic labeling module 24 may be further configured to: based on the cross-modal data of the lamp bead image, select a modality matching the lamp bead image and output the labeling result of the lamp bead image.

[0051] In one embodiment, the above-mentioned model-based lamp bead labeling device 20 can be further configured to: verify the labeling result of the lamp bead image to obtain a verification result; if the verification result indicates that the labeling accuracy is greater than a preset accuracy threshold, the labeling is completed.

[0052] In one embodiment, the above-mentioned model-based lamp bead labeling device 20 can be further configured as follows: if the verification result indicates that the labeling accuracy is less than or equal to the accuracy threshold, the detection model is trained again.

[0053] In one embodiment, the above-mentioned model training module 23 can be further configured as: inputting part of the lamp bead image into the detection model, calculating the contrast loss function value and the positioning loss function value of the detection model; based on the contrast loss function value and the positioning loss function value, optimizing the parameters of the detection model.

[0054] Below, reference Figure 3 The electronic device according to the embodiment of the present application is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signal from them.

[0055] Figure 3 A block diagram of an electronic device according to an embodiment of the present application is illustrated.

[0056] like Figure 3 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .

[0057] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.

[0058] The memory 12 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the methods of the various embodiments of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0059] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0060] When the electronic device is a stand-alone device, the input device 13 may be a communication network connector, which is used to receive the collected input signals from the first device and the second device.

[0061] In addition, the input device 13 may also include, for example, a keyboard, a mouse, and the like.

[0062] The output device 14 can output various information to the outside, including the determined distance information, direction information, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0063] Of course, to simplify, Figure 3 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.

[0064] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0065] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0066] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0067] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0068] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0069] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0070] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0071] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0072] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A model-based lamp bead labeling method, characterized in that: include: Obtain the lamp bead image of the lamp bead to be labeled; Manually annotating a portion of the lamp bead images in the lamp bead images to obtain an annotation result of the portion of the lamp bead images; Using the partial lamp bead images and their annotation results as training samples to train a detection model, thereby obtaining a trained detection model; The lamp bead image is input into the trained detection model to obtain the labeling result of the lamp bead image.

2. The model-based lamp bead labeling method according to claim 1, characterized in that: The step of inputting the lamp bead image into the trained detection model to obtain the labeling result of the lamp bead image includes: Input the lamp bead image into a feature extraction model, perform feature extraction processing on the lamp bead image, and obtain feature data of the lamp bead image; Inputting the feature data of the lamp bead image into a feature enhancement model, performing enhancement processing on the feature data, and obtaining enhanced data of the lamp bead image; Based on the enhanced data of the lamp bead image, the labeling result of the lamp bead image is output; wherein the labeling result includes a labeling box containing the lamp bead to be labeled, a labeling category and a confidence level.

3. The model-based lamp bead labeling method according to claim 2, characterized in that: The feature extraction model includes a dual-modal feature extraction model; wherein, the step of inputting the lamp bead image into the feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining feature data of the lamp bead image includes: Inputting the lamp bead image into the dual-modal feature extraction model, performing feature extraction processing on the lamp bead image, and obtaining image feature data and text feature data of the lamp bead image; The step of inputting the feature data of the lamp bead image into a feature enhancement model and performing enhancement processing on the feature data to obtain the enhanced data of the lamp bead image comprises: Inputting the image feature data and text feature data of the lamp bead image into the feature enhancement model, respectively performing enhancement processing on the image feature data and the text feature data to obtain the image enhancement data and text enhancement data of the lamp bead image; After obtaining the image enhancement data and text enhancement data of the lamp bead image, the model-based lamp bead labeling method further includes: Inputting the image enhancement data and text enhancement data of the lamp bead image into a trans-membrane state decoding model, performing trans-membrane state processing on the image enhancement data and the text enhancement data, and obtaining cross-modal data of the lamp bead image; The step of outputting the labeling result of the lamp bead image based on the enhanced data of the lamp bead image comprises: Based on the cross-modal data of the lamp bead image, the labeling result of the lamp bead image is output.

4. The model-based lamp bead labeling method according to claim 1, characterized in that: The step of outputting the labeling result of the lamp bead image based on the cross-modal data of the lamp bead image includes: Based on the cross-modal data of the lamp bead image, a modality matching the lamp bead image is selected and the annotation result of the lamp bead image is output.

5. The model-based lamp bead labeling method according to claim 1, characterized in that: After obtaining the labeling result of the lamp bead image, the model-based lamp bead labeling method further includes: Verifying the labeling result of the lamp bead image to obtain a verification result; If the verification result indicates that the marking accuracy is greater than a preset accuracy threshold, the marking is completed.

6. The model-based lamp bead labeling method according to claim 5, characterized in that: The model-based lamp bead labeling method also includes: If the verification result indicates that the labeling accuracy is less than or equal to the accuracy threshold, the detection model is trained again.

7. The model-based lamp bead labeling method according to claim 1, characterized in that: The method of using the partial lamp bead images and their annotation results as training samples to train the detection model includes: Input the partial lamp bead image into the detection model, and calculate the contrast loss function value and the positioning loss function value of the detection model; Based on the contrast loss function value and the positioning loss function value, the parameters of the detection model are optimized.

8. A model-based lamp bead marking device, characterized in that: include: An image acquisition module, used to acquire the lamp bead image of the lamp bead to be marked; A manual labeling module, used for manually labeling part of the lamp bead images in the lamp bead images to obtain labeling results of the part of the lamp bead images; A model training module is used to train a detection model using the partial lamp bead images and their annotation results as training samples to obtain a trained detection model; The automatic labeling module is used to input the lamp bead image into the trained detection model to obtain the labeling result of the lamp bead image.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the model-based lamp bead labeling method described in any one of claims 1 to 7 above.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the model-based lamp bead labeling method described in any one of claims 1-7 above.