Medical mask defect detection method, device, storage medium and electronic equipment

By collecting and analyzing medical mask data in real time, using target determination models and deep learning algorithms for automatic defect detection, it solves the problem of manual detection in the production of medical masks, realizes automated defect identification and processing, and improves detection accuracy and production efficiency.

CN113610834BActive Publication Date: 2024-09-17GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110966549.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2024-09-17
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

During the production process of medical masks, due to the diversity of shapes and irregular defects, it is difficult for manual inspection to detect missed inspections or defects in time, affecting production efficiency and quality.

Method used

Real-time collection of medical mask data is used to detect defects through a pre-trained target determination model, automatically label and remind staff to process, including color mixing, black spots and defect detection, and use YOLACT and Tracktor++ models for dynamic tracking and motion trend prediction, and automatic elimination. Defective items.

Benefits of technology

It realizes automatic defect detection of medical masks, improves detection accuracy and production efficiency, and avoids waste of resources caused by untimely processing of defective parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610834B
    Figure CN113610834B
Patent Text Reader

Abstract

The present application relates to the field of product inspection technology, and specifically to a defect detection method, device, storage medium and electronic device for medical masks, including: real-time collection of medical mask data within the inspection area, and determining the target medical mask according to a pre-trained target determination model; performing defect detection on the target medical mask, and if a defect is detected, marking the target medical mask according to the defect category; and reminding staff to process the marked target medical mask. The present application realizes automatic defect detection of medical masks, which can help quality inspectors to promptly determine defects such as black spots, mixed colors, and defects, and eliminate defective parts as soon as possible, avoiding waste of time, manpower, material resources and other resources caused by untimely processing of defective parts, and improving production efficiency and the accuracy of defect detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of product detection technology, and in particular to a defect detection method, device, storage medium and electronic equipment for medical masks. Background Art

[0002] In the production process of medical masks, medical masks have diverse shapes, and the production process needs to ensure product quality. For the production of medical masks, there are many types of defects, including black spots, color mixing, and defects. Timely detection and positioning are of great significance to improving production efficiency and ensuring production quality. The traditional method is to manually detect different defects through multiple positions. Since medical masks are three-dimensional objects with different shapes, inspectors need to rotate 360° to detect the possible black spots, color mixing and defects in all parts of the medical masks. In addition, the black spots are irregular in shape and not fixed in position. The shapes and sizes of the color mixing areas are different. Defects will appear randomly and irregularly due to process and material problems. The above defects may occur in all parts of the medical mask, but due to visual fatigue and human subjectivity, if the production progress is not kept up in time, it will cause missed inspections or failure to detect defects in the medical mask in time. In addition, defective parts on the production line cannot be guaranteed to be manually discovered and removed, and the failure to remove defective parts in time has a greater impact on qualified products. Summary of the invention

[0003] In response to the above problems, the present application provides a defect detection method, device, storage medium and electronic device for a medical mask, which solves the technical problems of missed detection and undiscovered defects due to manual defect detection in the related art.

[0004] In a first aspect, the present application provides a defect detection method for a medical mask, the method comprising:

[0005] Collect medical mask data in the detection area in real time, and determine the target medical mask based on the pre-trained target determination model;

[0006] Performing defect detection on the target medical mask, and if defects are detected, marking the target medical mask according to the defect category;

[0007] Remind staff to handle the marked target medical masks.

[0008] In some embodiments, the training process of the target determination model includes:

[0009] Collect medical mask data in advance, the medical mask data including video, image, depth, sensor measurement data of the medical mask, and model, category, size, process, color, weight, and three-dimensional coordinate information of key points of the medical mask;

[0010] Preprocessing the pre-collected medical mask data;

[0011] According to the pre-collected medical mask data, the target determination model is obtained by training through the YOLACT neural network.

[0012] In some embodiments, after marking the target medical mask according to the defect category, the method further includes:

[0013] Dynamically track all medical masks in the detection area based on the pre-established Tracktor++ model;

[0014] The motion trajectories of all medical masks are obtained according to dynamic tracking;

[0015] Predicting the movement trends of all medical masks according to the movement trajectory;

[0016] If it is determined that the movement trend of the marked target medical mask among all the medical masks is abnormal, the marked target medical mask is automatically removed.

[0017] In some embodiments, the target medical mask is subjected to defect detection, and if a defect is detected, the target medical mask is labeled according to the defect category, including:

[0018] Extract the color features, black area, and size information of the target medical mask from the medical mask data collected in real time;

[0019] According to the color characteristics, black area, and size information of the target medical mask, the target medical mask is subjected to color mixing detection, black spot detection, and defect detection;

[0020] If at least one defect among color mixing, black spots and defects is detected, the target medical mask is marked according to the defect category.

[0021] In some embodiments, the color mixing detection of the target medical mask includes:

[0022] Performing image binarization processing on the color features of the target medical mask to obtain processed color features;

[0023] Determining whether the processed color features show uniform color and whether the binary image has no banding;

[0024] If yes, the target medical mask passes the color mixing test;

[0025] If not, the target medical mask fails the color mixing detection and has a color mixing defect.

[0026] In some embodiments, the black spot detection on the target medical mask includes:

[0027] Performing image enhancement on the black area of ​​the target medical mask by using a morphological algorithm;

[0028] Performing image difference calculation on the enhanced black area image of the target medical mask and the reference black area image to obtain a calculation result image;

[0029] Determine whether the area and size of the black spot portion on the calculation result image are smaller than a preset threshold;

[0030] If yes, the target medical mask passes the black spot detection;

[0031] If not, the target medical mask fails the black spot detection and has a black spot defect.

[0032] In some embodiments, the step of performing defect detection on the target medical mask comprises:

[0033] Determine whether the difference between the size of each position in the size information of the target medical mask and the size of each position corresponding to the reference medical mask is less than a preset difference threshold;

[0034] If yes, the target medical mask passes the defect detection;

[0035] If not, the target medical mask fails the defect detection and has a defect.

[0036] In a second aspect, a defect detection device for a medical mask, the device comprising:

[0037] A determination unit, used for collecting medical mask data in a detection area in real time, and determining a target medical mask according to a pre-trained target determination model;

[0038] A detection unit, used to perform defect detection on the target medical mask, and if a defect is detected, mark the target medical mask according to the defect category;

[0039] The reminder unit reminds the staff to process the marked target medical masks.

[0040] In a third aspect, a storage medium stores a computer program that can be executed by one or more processors and can be used to implement the defect detection method for a medical mask as described in the first aspect.

[0041] In a fourth aspect, an electronic device comprises a memory and a processor, wherein a computer program is stored in the memory, and the memory and the processor are communicatively connected to each other, and when the computer program is executed by the processor, the defect detection method for a medical mask as described in the first aspect above is executed.

[0042] The present application provides a defect detection method, device, storage medium and electronic device for medical masks, including: real-time collection of medical mask data in the detection area, and determining the target medical mask according to a pre-trained target determination model; defect detection of the target medical mask, if a defect is detected, marking the target medical mask according to the defect category; reminding the staff to process the marked target medical mask. The present application realizes automatic defect detection of medical masks, which can help quality inspectors to timely determine defects such as black spots, mixed colors, and defects, and eliminate defective parts as soon as possible, avoiding the waste of time, manpower, material resources and other resources caused by the untimely processing of defective parts, and improving production efficiency and the accuracy of defect detection. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] Figure 1 A schematic flow chart of a defect detection method for a medical mask provided in an embodiment of the present application;

[0045] Figure 2 A schematic structural diagram of a defect detection device for a medical mask provided in an embodiment of the present application;

[0046] Figure 3 A connection block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will describe the implementation methods of the present application in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present application applies technical means to solve technical problems and achieve corresponding technical effects can be fully understood and implemented accordingly. The embodiments of the present application and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present application.

[0048] As can be seen from the background technology, due to visual fatigue and human subjectivity, if the production progress is not kept up with in time, defects of medical masks will be missed or cannot be found in time. In addition, defective parts on the production line cannot be guaranteed to be manually discovered and removed, and the failure to remove defective parts in time has a greater impact on qualified products.

[0049] In view of this, the present application provides a defect detection method, device, storage medium and electronic device for a medical mask, which solves the technical problems in the related art of missed detection and undiscovered defects due to manual defect detection.

[0050] Embodiment 1

[0051] Figure 1 A schematic diagram of a defect detection method for a medical mask provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:

[0052] S101, collecting medical mask data in the detection area in real time, and determining the target medical mask according to the pre-trained target determination model;

[0053] S102, performing defect detection on the target medical mask, and if defects are detected, marking the target medical mask according to the defect category;

[0054] S103. Remind the staff to process the marked target medical masks.

[0055] It should be noted that the inspection area obtains data on medical masks passing through the inspection area on the production line through the shooting equipment. Since the inspection area contains data on multiple medical masks, it is necessary to intelligently select the target medical mask for separate defect detection. When a defective medical mask is detected, the medical mask will be marked according to the defect category on the display screen corresponding to the shooting equipment, and the staff will be reminded to process the marked target medical mask, that is, to remove the defective medical mask from the production line. The staff can determine the defective medical mask among multiple medical masks through the markings displayed on the display screen.

[0056] In some embodiments, the training process of the target determination model includes:

[0057] Collect medical mask data in advance, the medical mask data including video, image, depth, sensor measurement data of the medical mask, and model, category, size, process, color, weight, and three-dimensional coordinate information of key points of the medical mask;

[0058] Preprocessing the pre-collected medical mask data;

[0059] According to the pre-collected medical mask data, the target determination model is obtained by training through the YOLACT neural network.

[0060] It should be noted that the three-dimensional coordinates used to collect the three-dimensional coordinate information of the key points are obtained by combining the physical measurement size and the three-dimensional coordinate system. Combined with the shooting scene of the detection area, a suitable real scene fixed position in the scene is selected as the origin to establish a three-dimensional space coordinate system. At the same time, the three-dimensional space coordinate system is also convenient for establishing and displaying the three-dimensional detection results.

[0061] It should be further explained that the trained target determination model can determine the category of medical masks within the detection area and the rectangular frame corresponding to each medical mask, thereby determining the area of ​​the medical mask, and then segmenting the mask of a specific single medical mask through a semantic segmentation method, that is, a specific edge contour, which is manifested as an uneven curved edge, and the segmented single medical mask can be used as the target medical mask.

[0062] In some embodiments, after marking the target medical mask according to the defect category, the method further includes:

[0063] Dynamically track all medical masks in the detection area based on the pre-established Tracktor++ model;

[0064] The motion trajectories of all medical masks are obtained according to dynamic tracking;

[0065] Predicting the movement trends of all medical masks according to the movement trajectory;

[0066] If it is determined that the movement trend of the marked target medical mask among all the medical masks is abnormal, the marked target medical mask is automatically removed.

[0067] It should be noted that in order to achieve dynamic tracking of medical masks, it is necessary to identify which medical masks in the interval video frames in the video data shot in the detection area are the same target. First, video frames are obtained from the video data at a fixed interval of 5 frames, where one frame in the video generally represents the image at 1 / 25 seconds. The target similarity between two adjacent video frames is calculated from the obtained fixed interval video frames. This includes the coordinate changes of the medical mask, as well as the calculation of the similarity of the contour and edge features. The medical masks whose similarity is finally obtained within the set threshold range are determined to be the same target.

[0068] Secondly, after the target is identified, the identified medical mask is dynamically tracked to ensure that the detected defective medical mask will not be confused with the qualified medical mask. Tracktor++ neural network is mainly used to track targets in video data. The timing information of the previous video frame and the next video frame is also one of the judgment bases, mainly calculating its movement direction based on the change of the timing. When the medical mask on the production line is in motion, relative to the unchanging background information, that is, the surface of the production line, the medical mask has movement changes. The collected video data can be used to extract its motion trajectory changes, where the motion trajectory changes can be quantified by the previously established three-dimensional coordinate system.

[0069] Again, after tracking the medical mask target, its movement trend can be predicted based on the movement trajectory of the medical mask. For example, based on the movement trajectory of a medical mask in a very short time and whether the medical mask has passed the inspection, the position it should reach in the next time sequence can be predicted as the predicted movement trend.

[0070] Finally, if it is predicted that the movement trend of a defective medical mask is abnormal, for example, due to manual omission, the defective medical mask will be mixed into qualified medical masks according to the predicted movement trend, then the defective medical mask will be automatically removed before it is added to the qualified medical masks.

[0071] In some embodiments, the target medical mask is subjected to defect detection, and if a defect is detected, the target medical mask is labeled according to the defect category, including:

[0072] Extract the color features, black area, and size information of the target medical mask from the medical mask data collected in real time;

[0073] According to the color characteristics, black area, and size information of the target medical mask, color mixing detection, black spot detection, and defect detection are performed on the target medical mask respectively;

[0074] If at least one defect among color mixing, black spots and defects is detected, the target medical mask is marked according to the defect category.

[0075] It should be noted that after determining the target medical mask, the target medical mask is simultaneously subjected to three defect detections: black spots, color mixing, and defects. The YOLACT neural network with fast real-time detection speed is used to mark the target medical mask with defects according to the defect category, and the color features of the target medical mask are extracted to detect color mixing defects. Black spots are detected by black area extraction, and sensors are used to measure size information to detect defects in the missing part.

[0076] In some embodiments, the color mixing detection of the target medical mask includes:

[0077] Performing image binarization processing on the color features of the target medical mask to obtain processed color features;

[0078] Determining whether the processed color features show uniform color and whether the binary image has no banding;

[0079] If yes, the target medical mask passes the color mixing test;

[0080] If not, the target medical mask fails the color mixing detection and has a color mixing defect.

[0081] It should be noted that the color features of the target color area to be detected are extracted from the target medical mask to determine whether it has mixed color features. The mixed color features are reflected in the image after the image is binarized. The part with mixed color defects is displayed as a distorted band. The qualified medical mask image is displayed after binarization. The image is uniform and normal, and there is no band shape. The judgment is mainly based on color difference. The edge shape of the heterochromatic area is irregular, and the image shows a band edge with an obvious area. In addition, the annotation method for mixed color defects is to annotate the area showing heterochromatic color on the video image of the defective medical mask.

[0082] In some embodiments, the black spot detection on the target medical mask includes:

[0083] Performing image enhancement on the black area of ​​the target medical mask by using a morphological algorithm;

[0084] Performing image difference calculation on the enhanced black area image of the target medical mask and the reference black area image to obtain a calculation result image;

[0085] Determine whether the area and size of the black spot portion on the calculation result image are smaller than a preset threshold;

[0086] If yes, the target medical mask passes the black spot detection;

[0087] If not, the target medical mask fails the black spot detection and has a black spot defect.

[0088] It should be noted that the black area of ​​the target medical mask is extracted, and the black area is enhanced by morphological calculation. The black spot defect feature is that the defective black area image has black circular or elliptical small spots, and the qualified ones are evenly distributed without black or elliptical small spots or their size is less than 0.01mm. The black image extracted and enhanced by the target medical mask and the qualified reference black image are calculated by image difference, and the area and size of the black spot part on the calculation result image are used to determine whether it passes the black spot detection. Among them, the marking method for black spot defects is to mark the black spot coordinate area on the video image of the defective medical mask taken, and the black spot coordinate area is based on the three-dimensional coordinate system described above.

[0089] In some embodiments, the step of performing defect detection on the target medical mask comprises:

[0090] Determine whether the difference between the size of each position in the size information of the target medical mask and the size of each position corresponding to the reference medical mask is less than a preset difference threshold;

[0091] If yes, the target medical mask passes the defect detection;

[0092] If not, the target medical mask fails the defect detection and has a defect.

[0093] It should be noted that for the same position area of ​​the qualified reference medical mask and the target medical mask, the size of the qualified reference medical mask and the size of the target medical mask at the same position are calculated. If the difference between the two sizes is within the allowable range (such as the difference is less than the threshold of 5mm), it is considered a qualified medical mask. The marking method for defect defects is to extract the binary mask of the medical mask through the network structure combination based on the YOLACT neural network, calculate the area fitting value and convex hull key points of the edge contour, and mark the area fitting line and convex hull key points of the edge contour on the captured video image of the defective medical mask.

[0094] In some embodiments, the defect detection method further includes:

[0095] The inspection results of the target medical mask in which defects are detected are saved.

[0096] It should be noted that the saved test results include the type of medical mask that appeared, the three-dimensional display diagram (the test results are displayed based on the three-dimensional coordinate system and the predicted three-dimensional coordinates of the target key points), the defect type (mixed color, black spots or defects), the marked defect location, and the detected data, predicted coordinates and other results are saved locally for subsequent traceability queries.

[0097] In some embodiments, the defect detection method further includes:

[0098] Medical masks that have completed defect inspection are marked and recorded according to production batches.

[0099] It should be noted that, taking a production batch of 2000 medical masks as an example, when the first medical mask appears in the inspection area, it is marked as 1 / 2000, and each medical mask that undergoes defect inspection needs to be included in the production data statistics. Among them, if the 100th medical mask is detected and the first defective medical mask is found, the medical mask will be marked as 0001 / 100, the original mark 100 / 2000 will be removed, and the record will be updated to 99 / 2000, indicating 99 qualified medical masks.

[0100] In summary, the embodiment of the present application provides a defect detection device for medical masks, including: real-time collection of medical mask data within the detection area, and determining the target medical mask according to a pre-trained target determination model; performing defect detection on the target medical mask, and if a defect is detected, marking the target medical mask according to the defect category; and reminding the staff to process the marked target medical mask. The present application realizes automatic defect detection of medical masks, which can help quality inspectors to timely determine defects such as black spots, mixed colors, and defects, and remove defective parts as soon as possible, avoiding the waste of time, manpower, material resources and other resources caused by the untimely processing of defective parts, and improving production efficiency and the accuracy of defect detection.

[0101] Embodiment 2

[0102] Based on the defect detection method of medical masks disclosed in the above embodiment of the present invention, Figure 2 Specifically disclosed is a medical mask defect detection device using the medical mask defect detection method.

[0103] like Figure 2 As shown, an embodiment of the present invention discloses a defect detection device for a medical mask, the device comprising:

[0104] A determination unit 201 is used to collect medical mask data in a detection area in real time and determine a target medical mask according to a pre-trained target determination model;

[0105] A detection unit 202, configured to perform defect detection on the target medical mask, and if a defect is detected, mark the target medical mask according to the defect category;

[0106] The reminding unit 203 reminds the staff to process the marked target medical mask.

[0107] For the specific working process of the determination unit 201, the detection unit 202 and the reminder unit 203 in the defect detection device for a medical mask disclosed in the above embodiment of the present invention, reference may be made to the corresponding content and subsequent supplements in the defect detection method for a medical mask disclosed in the above embodiment of the present invention, and no further description will be given here.

[0108] In summary, the embodiment of the present application provides a defect detection device for medical masks, including: real-time collection of medical mask data within the detection area, and determining the target medical mask according to a pre-trained target determination model; performing defect detection on the target medical mask, and if a defect is detected, marking the target medical mask according to the defect category; and reminding the staff to process the marked target medical mask. The present application realizes automatic defect detection of medical masks, which can help quality inspectors to timely determine defects such as black spots, mixed colors, and defects, and remove defective parts as soon as possible, avoiding the waste of time, manpower, material resources and other resources caused by the untimely processing of defective parts, and improving production efficiency and the accuracy of defect detection.

[0109] Embodiment 3

[0110] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the method steps of the first embodiment can be implemented, and this embodiment will not be repeated here.

[0111] Embodiment 4

[0112] Figure 3 A connection block diagram of an electronic device 300 provided in an embodiment of the present application, such as Figure 3 As shown, the electronic device 300 may include: a processor 301 , a memory 302 , a multimedia component 303 , an input / output (I / O) interface 304 , and a communication component 305 .

[0113] The processor 301 is used to execute all or part of the steps in the defect detection method for medical masks in Example 1. The memory 302 is used to store various types of data, which may include instructions of any application or method in the electronic device, and data related to the application.

[0114] The processor 301 can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the defect detection method for the medical mask in the above-mentioned embodiment 1.

[0115] The memory 302 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 storage, flash memory, disk or optical disk.

[0116] The multimedia component 303 may include a screen and an audio component, the screen may be a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, and the microphone is used to receive external audio signals. The received audio signal may be further stored in a memory or sent via a communication component. The audio component also includes at least one speaker for outputting audio signals.

[0117] The I / O interface 304 provides an interface between the processor 301 and other interface modules, which may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons.

[0118] The communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 305 can include: Wi-Fi module, Bluetooth module, NFC module.

[0119] In summary, the present application provides a defect detection method, device, storage medium and electronic device for medical masks, the method comprising: real-time collection of medical mask data within the detection area, and determining the target medical mask according to a pre-trained target determination model; performing defect detection on the target medical mask, and if a defect is detected, marking the target medical mask according to the defect category; and reminding the staff to process the marked target medical mask. The present application realizes automatic defect detection of medical masks, which can help quality inspectors to timely determine defects such as black spots, mixed colors, and defects, and eliminate defective parts as soon as possible, avoiding waste of time, manpower, material resources and other resources caused by untimely processing of defective parts, and improving production efficiency and the accuracy of defect detection.

[0120] In the several embodiments provided in the present application, it should be understood that the disclosed method can also be implemented in other ways. The method embodiments described above are merely illustrative.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0122] Although the implementation methods disclosed in this application are as above, the above contents are only the implementation methods adopted for facilitating the understanding of this application, and are not intended to limit this application. Any technician in the technical field to which this application belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in this application, but the scope of patent protection of this application shall still be based on the scope defined in the attached claims.

Claims

1. A defect detection method for a medical mask, characterized in that: The method comprises: Collect medical mask data in the detection area in real time, and determine the target medical mask based on the pre-trained target determination model; Performing defect detection on the target medical mask, and if defects are detected, marking the target medical mask according to the defect category, wherein the defect detection includes at least one of color mixing detection, black spot detection, and defect detection; Remind staff to handle the marked target medical masks; After marking the target medical mask according to the defect category, the method further includes: Dynamically track all medical masks in the detection area based on the pre-established Tracktor++ model; The motion trajectories of all medical masks are obtained according to dynamic tracking; Predicting the movement trends of all medical masks according to the movement trajectory; If it is determined that the movement trend of the marked target medical mask among all the medical masks is abnormal, the marked target medical mask is automatically removed.

2. The method according to claim 1, characterized in that The training process of the target determination model includes: Collect medical mask data in advance, the medical mask data including video, image, depth, sensor measurement data of the medical mask, and model, category, size, process, color, weight, and three-dimensional coordinate information of key points of the medical mask; Preprocessing the pre-collected medical mask data; According to the pre-collected medical mask data, the target determination model is obtained by training through the YOLACT neural network.

3. The method according to claim 1, characterized in that: Performing defect detection on the target medical mask, and if defects are detected, marking the target medical mask according to the defect category, including: Extracting the color features, black area, and size information of the target medical mask from the medical mask data collected in real time; According to the color characteristics, black area, and size information of the target medical mask, respectively, color mixing detection, black spot detection, and defect detection are performed on the target medical mask; If at least one defect among color mixing, black spots and defects is detected, the target medical mask is marked according to the defect category.

4. The method according to claim 3, characterized in that The method of performing color mixing detection on the target medical mask includes: Performing image binarization processing on the color features of the target medical mask to obtain processed color features; Determining whether the processed color features show uniform color and whether the binary image has no banding; If yes, the target medical mask passes the color mixing test; If not, the target medical mask fails the color mixing detection and has a color mixing defect.

5. The method according to claim 3, characterized in that: The black spot detection on the target medical mask comprises: Performing image enhancement on the black area of ​​the target medical mask by using a morphological algorithm; Performing image difference calculation on the enhanced black area image of the target medical mask and the reference black area image to obtain a calculation result image; Determine whether the area and size of the black spot portion on the calculation result image are smaller than a preset threshold; If yes, the target medical mask passes the black spot detection; If not, the target medical mask fails the black spot detection and has a black spot defect.

6. The method according to claim 3, characterized in that The defect detection of the target medical mask comprises: Determine whether the difference between the size of each position in the size information of the target medical mask and the size of each position corresponding to the reference medical mask is less than a preset difference threshold; If yes, the target medical mask passes the defect detection; If not, the target medical mask fails the defect detection and has a defect.

7. A defect detection device for a medical mask, characterized in that: The device comprises: A determination unit, used for collecting medical mask data in a detection area in real time, and determining a target medical mask according to a pre-trained target determination model; A detection unit, used for performing defect detection on the target medical mask, and if a defect is detected, marking the target medical mask according to the defect category, wherein the defect detection includes at least one of color mixing detection, black spot detection, and defect detection; after marking the target medical mask according to the defect category, it also includes: dynamically tracking all medical masks in the detection area according to a pre-established Tracktor++ model; obtaining motion trajectories of all medical masks according to the dynamic tracking; predicting the motion trends of all medical masks according to the motion trajectories; if it is determined that the motion trend of the marked target medical mask among all the medical masks is abnormal, automatically removing the marked target medical mask; The reminder unit reminds the staff to process the marked target medical masks.

8. A storage medium, characterized in that: The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the defect detection method for the medical mask as described in any one of claims 1 to 6.

9. An electronic device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and the memory and the processor are communicatively connected to each other, and when the computer program is executed by the processor, the defect detection method for a medical mask according to any one of claims 1 to 6 is executed.

Citation Information

Patent Citations

  • Detection method and device of surface defect of mechanical part based on machine vision

    CN102680478A

  • Casting defect recognition method based on human vision attention mechanism

    CN107230203A

  • Production line product positioning method based on monitoring video

    CN111127517A

  • Equipment image recognition method for unmanned aerial vehicle inspection

    CN112257621A

  • Product manufacturing message processing method and device, and computer storage medium

    WO2021120179A1