Garment defect detection system and garment defect detection method
By designing a garment defect detection system, the lamp post device and visual detection device automatically collect and detect garment images, the problem of low manual detection accuracy is solved and efficient and accurate defect detection is achieved.
Patent Information
- Application Number
- CN202411580531.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-01-03
AI Technical Summary
The current detection of garment defects depends on manual labor, resulting in low accuracy and prone to missed inspections.
Design a garment defect detection system, including a lamp post device, a visual detection device and a defect detection terminal, drive the lamp post to rotate through a driving mechanism, the image acquisition device collects the garment image, and the defect detection terminal performs object detection processing, and automatically identify and display defects. Improve detection accuracy.
Without relying on labor, accurate defect detection of ready-made garments is achieved, the accuracy and efficiency of detection is improved, and the manual labor and error rate is reduced.
Smart Images

Figure CN119246533A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of clothing production, and in particular to a garment defect detection system, method, computer-readable storage medium and computer program product. Background Art
[0002] After the garments are sewn, defect detection is required to remove the garments with defects. In the related art, the garment defect detection is usually performed manually, which is prone to false detection and missed detection, resulting in a low accuracy rate of garment defect detection. Summary of the invention
[0003] Based on this, it is necessary to provide a garment defect detection system and a garment defect detection method that can improve the accuracy of garment defect detection in order to address the technical problem of low accuracy of garment defect detection mentioned above.
[0004] In a first aspect, the present application provides a garment defect detection system, comprising:
[0005] Mounting table;
[0006] A lamp post device, the lamp post device comprising a lamp post body arranged on the mounting platform; the lamp post body is used for setting the garment to be inspected;
[0007] The lamp post device further comprises a driving mechanism which is drivingly connected to the lamp post body; the driving mechanism is used to drive the lamp post body to rotate;
[0008] A visual inspection device, the visual inspection device comprising an image acquisition device arranged toward the lamp post body; the image acquisition device is used to acquire an image of the garment to be inspected which is mounted on the lamp post body;
[0009] The visual inspection device also includes a defect detection terminal arranged on the mounting platform; the defect detection terminal is electrically connected to the driving mechanism for controlling the operation of the driving mechanism, and the defect detection terminal is communicatively connected to the image acquisition device for performing target detection processing on the garment image acquired by the image acquisition device to obtain defect detection results of the garment to be inspected.
[0010] In one of the embodiments, the defect detection terminal is further used to control the driving mechanism to stop driving when it is determined based on the garment image that the defect detection result of the garment to be inspected is that there is a defect, and to display the garment image and the defect type of the garment defect existing in the garment to be inspected.
[0011] In one embodiment, the driving mechanism is further used to stop driving the lamp post body when the lamp post body rotates one circle.
[0012] In one embodiment, the system further comprises a control mechanism electrically connected to the driving mechanism; the control mechanism is used to control the driving mechanism to start driving.
[0013] In one embodiment, the control mechanism is a foot switch.
[0014] In one embodiment, the driving mechanism is a stepping motor.
[0015] In one embodiment, the lamp post body is in the shape of a frustum that is small at the top and large at the bottom.
[0016] In a second aspect, the present application also provides a method for detecting defects in garments, comprising:
[0017] The driving mechanism in the garment defect detection system is used to drive the lamp post body in the garment defect detection system to rotate; the lamp post body is in a light-emitting state, and the garment to be detected is sleeved on the lamp post body;
[0018] Based on the image acquisition device in the garment defect detection system, the garment image of the garment to be detected set on the lamp post body is acquired; the image acquisition device is used to transmit the acquired garment image to the defect detection terminal in the garment defect detection system;
[0019] The defect detection terminal performs target detection processing on the garment image to obtain a defect detection result of the garment to be detected.
[0020] In one embodiment, the step of performing target detection processing on the garment image by a defect detection terminal in the garment defect detection system to obtain a defect detection result of the garment to be detected includes:
[0021] Performing target detection processing on the garment image by the defect detection terminal to determine the presence of garment defects in the garment image;
[0022] In the case where the garment defect exists in the garment image, determining that a defect detection result of the garment to be detected is that a defect exists, and determining a defect type of the garment defect;
[0023] After determining the defect type of the garment defect, it also includes:
[0024] The driving mechanism is controlled to stop driving by the defect detection terminal, and the garment image and the defect type of the garment defect are displayed by the defect detection terminal.
[0025] In one embodiment, after displaying the garment image and the defect type of the garment defect through the defect detection terminal, the method further includes:
[0026] The control mechanism in the garment defect detection system is used to control the driving mechanism to drive the lamp post body to continue rotating, and return to the step of collecting the garment image of the garment to be detected set on the lamp post body based on the image acquisition device in the garment defect detection system, until the lamp post body rotates one circle, and the driving mechanism ends the driving of the lamp post body.
[0027] The above-mentioned garment defect detection system and garment defect detection method can drive the lamp post body for mounting the garments to be inspected to rotate through a driving mechanism, can acquire the garment image of the garments to be inspected mounted on the lamp post body through an image acquisition device, and can perform target detection processing on the garment image through a defect detection terminal to obtain defect detection results of the garments to be inspected; based on the above-mentioned garment defect detection system, accurate defect detection of garments can be performed without relying on manual labor, thereby improving the accuracy of garment defect detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0029] FIG1 is a schematic structural diagram of a garment defect detection system in one embodiment;
[0030] FIG2 is a schematic diagram of a flow chart of a method for detecting defects in garments in one embodiment;
[0031] FIG3 is a schematic flow chart of a method for detecting defects in garments in another embodiment;
[0032] FIG4 is a schematic diagram of the structure of a system for detecting garment defects using visual technology in one embodiment;
[0033] FIG. 5 is a diagram showing the internal structure of a computer device in one embodiment.
[0034] Explanation of the reference numerals: 100, mounting platform; 200, lamp post device; 220, lamp post body; 240, driving mechanism; 300, visual inspection device; 320, image acquisition device; 340, defect inspection terminal; 342, display; 344, chassis; 400, control mechanism. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0037] It can be understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
[0038] Spatially relative terms such as "under," "beneath," "below," "under," "above," "above," and the like may be used herein to describe the relationship of an element or feature shown in the figures to other elements or features. It should be understood that, in addition to the orientations shown in the figures, spatially relative terms also include different orientations of the device in use and operation. For example, if the device in the accompanying drawings is flipped, an element or feature described as "under other elements" or "under it" or "under it" will be oriented as being "above" the other elements or features. Thus, the exemplary terms "under" and "under" may include both upper and lower orientations. In addition, the device may also include additional orientations (e.g., rotated 90 degrees or other orientations), and the spatial descriptors used herein are interpreted accordingly.
[0039] It should be noted that when an element is considered to be "connected" to another element, it can be directly connected to the other element, or connected to the other element through an intermediate element. In addition, the "connection" in the following embodiments should be understood as "electrical connection", "communication connection", etc. if there is transmission of electrical signals or data between the connected objects.
[0040] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0041] In one embodiment, as shown in FIG. 1 , a garment defect detection system is provided. The system includes a mounting platform 100 , a lamp post device 200 , and a visual detection device 300 .
[0042] Specifically, the lamp post device 200 includes a lamp post body 220 disposed on the mounting platform 100. The lamp post body 220 is used for setting the garment to be inspected.
[0043] 1 , a lamp post body 220 is disposed on a table surface of a mounting table 100 , and the number of the lamp post body 220 is at least one.
[0044] In a specific application, the lamp post body 220 can emit light. After the garment to be inspected is put on the lamp post body 220, the light spot illuminated by the light through the defect on the garment to be inspected is different from the light spot illuminated by the light through the normal area on the garment to be inspected. Therefore, the defect on the garment to be inspected can be detected by the lamp post body 220. In practical applications, the lamp post body 220 can be an LED (Light Emitting Diode) lamp post.
[0045] Specifically, the lamp post device 200 further includes a driving mechanism 240 drivingly connected to the lamp post body 220. The driving mechanism 240 is used to drive the lamp post body 220 to rotate.
[0046] 1 , the driving mechanism 240 is disposed below the surface of the mounting platform 100 .
[0047] In a specific application, the driving mechanism 240 may be a motor or a stepping motor, or a driving mechanism based on any driving principle such as hydraulic drive, starter drive or mechanical transmission.
[0048] In actual application, referring to FIG. 1 , a rotatable disc is disposed on the mounting platform 100 , the lamp post body 220 is disposed on the disc, the driving mechanism 240 is drivingly connected to the disc, and the driving mechanism 240 drives the lamp post body 220 to rotate by driving the disc to rotate.
[0049] Specifically, the visual inspection device 300 includes an image acquisition device 320 disposed toward the lamp post body 220. The image acquisition device 320 is used to acquire images of garments to be inspected that are mounted on the lamp post body 220.
[0050] In a specific application, the image acquisition device 320 can be arranged on the bracket of the mounting platform 100, or on the visual inspection device 300, or can be arranged independently, as long as it can capture the image of the garment to be inspected mounted on the lamp post body 220 while facing the lamp post body 220.
[0051] In practical applications, the image acquisition device 320 may be a device with image acquisition function such as a camera or a webcam.
[0052] Specifically, the visual inspection device 300 further includes a defect detection terminal 340 disposed on the mounting platform 100. The defect detection terminal 340 is electrically connected to the driving mechanism 240 to control the operation of the driving mechanism 240, and the defect detection terminal 340 is communicatively connected to the image acquisition device 320 to perform target detection processing on the garment image acquired by the image acquisition device 320 to obtain the defect detection result of the garment to be inspected.
[0053] 1 , the defect detection terminal 340 is disposed on a table top of the installation table 100 .
[0054] In specific applications, the defect detection terminal 340 can be, but is not limited to, various terminals with data processing capabilities, such as personal computers, laptops, smart phones, and tablet computers. Furthermore, the defect detection terminal 340 has a pre-trained target detection model for detecting whether there are garment defects in the input image, and for identifying the types of existing garment defects, and determining the defect types of the garment defects (such as holes, stains, hooked yarn, roving, cotton knots, thread ends, etc.).
[0055] Referring to FIG. 1 , in a specific application, the defect detection terminal 340 is composed of a display 342 and a chassis 344. The chassis contains a host of the defect detection terminal 340, and the host contains a memory and a processor of the defect detection terminal 340. Further, the image acquisition device 320 can be arranged in the chassis 344 of the defect detection terminal 340 and extend through a hole opened on the chassis 344. Further, the defect detection terminal 340 can display the image of the garment to be inspected and the defect type of the existing garment defect when the defect detection result is that the garment has a defect through the display 342.
[0056] The defect detection terminal 340 can control the driving mechanism 240 to stop driving to stop the rotation of the lamp post body 220 , or start driving to start the rotation of the lamp post body 220 .
[0057] The stop driving control of the driving mechanism 240 by the defect detection terminal 340 is triggered when the defect detection result indicates that a defect exists.
[0058] In one implementation, the defect detection terminal 340 may be provided with a corresponding control mechanism, and the defect detection terminal 340 starts driving and controlling the driving mechanism 240 in response to the triggering operation of the control mechanism by the inspector. The control mechanism may be a foot switch or a key switch.
[0059] In another implementation, the defect detection terminal 340 can also display the control contacts corresponding to the drive mechanism 240 through the display 342, and the start-up drive control of the drive mechanism 240 by the defect detection terminal 340 is triggered in response to the triggering operation of the control contacts by the inspector.
[0060] The working principle of the garment defect detection system provided in this embodiment is explained below: first, the inspector sets the garment to be inspected on the lamp post body 220, and controls the lamp post body 220 to be in a light-emitting state; then, the lamp post body 220 is driven to rotate by the driving mechanism 240; at the same time, the image acquisition device 320 collects the garment image of the garment to be inspected set on the lamp post body 220 in real time, and transmits the collected garment image to the defect detection terminal 340; finally, the defect detection terminal 340 performs target detection processing on the garment image to obtain the defect detection result of the garment to be inspected.
[0061] In the above-mentioned garment defect detection system, the lamp post body used to mount the garment to be inspected can be driven to rotate through the driving mechanism, the garment image of the garment to be inspected mounted on the lamp post body can be acquired through the image acquisition device, and the garment image can be subjected to target detection processing through the defect detection terminal to obtain the defect detection result of the garment to be inspected; based on the above-mentioned garment defect detection system, accurate defect detection of garments can be performed without relying on manual labor, thereby improving the accuracy of garment defect detection.
[0062] In an exemplary embodiment, the defect detection result includes the presence of a defect and the absence of a defect.
[0063] The defect detection terminal 340 is also used to control the driving mechanism 240 to stop driving when it is determined based on the garment image that the defect detection result of the garment to be detected is that there is a defect, and to display the garment image and the defect type of the garment defect existing in the garment to be detected.
[0064] Among them, garment defects include many types, such as holes, stains, hooked yarn, coarse yarn, cotton knots, thread ends, etc.
[0065] 1 , the defect detection terminal 340 further includes a display 342. When the defect detection result of the garment to be detected is determined to be defective based on the garment image, the defect detection terminal 340 controls the driving mechanism 240 to stop driving to stop the rotation of the lamp post body 220 through electrical connection with the driving mechanism 240, and displays the garment image at this time and the defect type of the garment defect existing in the garment to be detected through the display 342.
[0066] For example, assuming that there is a hole in a certain area of the garment to be inspected, when the hole area of the garment to be inspected mounted on the lamp post body 220 is directed toward the image acquisition device 320 as the lamp post body 220 rotates, the image acquisition device 320 will acquire a garment image containing the hole area, and the defect detection terminal 340 performs target detection processing on the garment image, and can determine that there is a garment defect in the garment image, so the defect detection result of the garment to be inspected is that there is a defect (the defect existing in the garment to be inspected is the garment defect existing in the garment image), and it can be further determined that the garment defect is a hole; then, the defect detection terminal 340 controls the driving mechanism 240 to stop driving, so that the lamp post body 220 stops rotating, and at the same time displays the garment image at this time and the defect type "hole" of the garment defect existing in the garment image through the display 342.
[0067] In the present embodiment, when the garment to be inspected has a garment defect, the defect detection terminal can enable the inspector to quickly know the existence of the garment defect and the defect type of the garment defect by displaying the garment image and the defect type of the garment defect, and can enable the inspector to quickly locate the garment defect on the garment to be inspected by controlling the driving mechanism to stop driving, thereby improving the efficiency of garment defect detection.
[0068] In an exemplary embodiment, the driving mechanism 240 is also used to stop driving the lamp post body 220 when the lamp post body 220 rotates one circle.
[0069] In a specific application, after the lamp post body 220 rotates one circle, the driving mechanism 240 stops driving the lamp post body 220 , and the defect detection of the garment to be detected set on the lamp post body 220 is completed.
[0070] In one implementation, the driving mechanism 240 detects whether the lamp post body 220 rotates one circle. If it is detected that the lamp post body 220 rotates one circle, the driving mechanism 240 stops driving the lamp post body 220 .
[0071] In another implementation, the defect detection terminal 340 detects whether the lamp post body 220 rotates one circle. If it is detected that the lamp post body 220 rotates one circle, the driving mechanism 240 is controlled to stop driving the lamp post body 220 .
[0072] In this embodiment, the defect detection of the garment to be detected can be completed by the driving mechanism finishing the driving of the lamp post body.
[0073] In an exemplary embodiment, referring to FIG. 1 , the garment defect detection system further includes a control mechanism 400 electrically connected to the driving mechanism 240 .
[0074] The control mechanism 400 is used to control the driving mechanism 240 to start driving to start the lamp post body 220. In a specific application, the control mechanism 400 can be directly electrically connected to the driving mechanism 240, or can be electrically connected to the defect detection terminal 340 and then indirectly electrically connected to the driving mechanism 240.
[0075] In a specific application, when the inspector starts to inspect the garment to be inspected, the inspector triggers the control mechanism 400 to control the driving mechanism 240 to start driving, thereby starting the rotation of the lamp post body 220; then, the image acquisition device 320 collects the garment image of the garment to be inspected mounted on the lamp post body 220 in real time for the defect detection terminal 340 to perform target detection processing. When the defect detection terminal 340 determines that the defect detection result of the garment to be inspected is a defect based on the garment image, it controls the driving mechanism 240 to stop driving to stop the rotation of the lamp post body 220, and displays the garment image at this time and the defect type of the garment defect existing in the garment to be inspected; after the inspector confirms and records the detected garment defect, the inspector triggers the control mechanism 400 to control the driving mechanism 240 to start driving, thereby starting the rotation of the lamp post body 220 again, so as to continue the garment defect detection on the garment to be inspected, until the lamp post body 220 rotates one circle and the driving mechanism 240 stops driving the lamp post body 220.
[0076] In this embodiment, through the control mechanism, the inspector can restart the rotation of the lamp post body after detecting the defects of the garments, and continue to inspect the defects of the garments to be inspected.
[0077] In an exemplary embodiment, the control mechanism 400 is a foot switch.
[0078] In a specific application, the foot switch is arranged below the visual inspection device, so that after the inspector confirms and records the detected garment defects, he can trigger the foot switch to start the rotation of the lamp post body 220 again to continue the garment defect inspection for the garment to be inspected.
[0079] In this embodiment, by setting the control mechanism as a foot switch, it is convenient for the inspector to trigger the control mechanism while observing or recording the information displayed by the defect detection terminal, thereby improving the efficiency of garment defect detection.
[0080] In an exemplary embodiment, the driving mechanism 240 is a stepper motor.
[0081] Among them, the stepper motor can achieve precise position control, thereby providing precise angle control and being able to accurately adjust the rotation of the lamp post body.
[0082] In this embodiment, by configuring the driving mechanism as a stepping motor, the rotation of the lamp post body can be accurately controlled.
[0083] In an exemplary embodiment, referring to FIG. 1 , the lamp post body 220 is in the shape of a frustum with a small top and a large bottom, so as to facilitate the setting of the garment to be inspected.
[0084] In this embodiment, by setting the lamp post body to be a frustum with a small top and a large bottom, it is possible to facilitate the installation of the garment to be inspected, thereby further improving the efficiency of garment defect detection.
[0085] In an exemplary embodiment, referring to FIG. 1 , there may be a plurality of lamp post bodies 220 .
[0086] In one implementation, each lamp post body 220 can be mounted with a piece of garment to be inspected, so that multiple garments to be inspected can be inspected for garment defects at the same time, thereby improving the efficiency of garment defect detection.
[0087] In another implementation, a piece of garment to be inspected may be mounted on a plurality of lamp post bodies 220, so that garment defects can be inspected for garments with a larger circumference.
[0088] Based on the same inventive concept, the embodiment of the present application also provides a garment defect detection method applied to the garment defect detection system involved above. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme recorded in the above system, so the specific limitations in one or more garment defect detection method embodiments provided below can refer to the limitations of the garment defect detection system above, and will not be repeated here.
[0089] In an exemplary embodiment, a method for detecting defects in garments is provided as shown in FIG2 , and the method is described by taking the method applied to the garment defect detection system as shown in FIG1 as an example, and the method comprises the following steps:
[0090] Step S202, driving the lamp post body in the garment defect detection system to rotate through the driving mechanism in the garment defect detection system.
[0091] 1 , the garment defect detection system includes a mounting platform 100 , a lamp post device 200 and a visual detection device 300 . The lamp post device 200 includes a lamp post body 220 and a driving mechanism 240 ; the visual detection device 300 includes an image acquisition device 320 and a defect detection terminal 340 .
[0092] The lamp post body 220 is in a light-emitting state, and the lamp post body 220 is covered with the garment to be detected.
[0093] Specifically, the inspector first sets the garment to be inspected on the lamp post body 220 and controls the lamp post body 220 to be in a light-emitting state. Then, the inspector drives the lamp post body 220 to rotate through the driving mechanism 240 .
[0094] In one implementation, referring to Fig. 1, the defect detection terminal 340 may be provided with a corresponding control mechanism 400, and the defect detection terminal 340 starts driving control of the driving mechanism 240 in response to the triggering operation of the control mechanism 400 by the inspector. The control mechanism may be a foot switch or a key switch.
[0095] In another implementation, referring to FIG. 1 , the defect detection terminal 340 includes a display 342 , and the defect detection terminal 340 displays the control contacts corresponding to the drive mechanism 240 through the display 342 . The start-up drive control of the drive mechanism 240 by the defect detection terminal 340 is triggered in response to the triggering operation of the control contacts by the inspector.
[0096] Step S204, using the image acquisition device in the garment defect detection system, the garment image of the garment to be detected mounted on the lamp post body is acquired.
[0097] The image acquisition device 320 is used to transmit the acquired garment image to the defect detection terminal 340 in the garment defect detection system.
[0098] Specifically, the image acquisition device 320 acquires images of the garments to be inspected mounted on the lamp post body 220 in real time, and transmits the acquired images of the garments to the defect inspection terminal 340 .
[0099] Step S206, performing target detection processing on the garment image by the defect detection terminal to obtain defect detection results of the garment to be detected.
[0100] Among them, the defect detection terminal 340 has a pre-trained target detection model, which is used to detect whether there are garment defects in the input image, and to identify the type of the existing garment defects and determine the defect type of the garment defects (such as holes, stains, hooked yarn, coarse yarn, cotton knots, thread ends, etc.).
[0101] Specifically, the defect detection terminal 340 inputs the garment image into a pre-trained target detection model, performs target detection processing on the garment image through the target detection model, determines the presence of garment defects in the garment image, and obtains defect detection results for the garment to be detected based on the presence of garment defects.
[0102] For example, if the target detection model detects that there are defects in the garment image, the defect detection result of the garment to be detected is determined as the presence of defects; if the target detection model detects that there are no defects in the garment image, the defect detection result of the garment to be detected is determined as the absence of defects.
[0103] In the above-mentioned garment defect detection method, the lamp post body used to mount the garment to be inspected can be driven to rotate through the driving mechanism, the garment image of the garment to be inspected mounted on the lamp post body can be acquired through the image acquisition device, and the garment image can be subjected to target detection processing through the defect detection terminal to obtain the defect detection result of the garment to be inspected; based on the above-mentioned garment defect detection system, accurate defect detection of garments can be performed without relying on manual labor, thereby improving the accuracy of garment defect detection.
[0104] In an exemplary embodiment, the above step S206, performing target detection processing on the garment image by the defect detection terminal in the garment defect detection system to obtain the defect detection result of the garment to be detected, specifically includes the following contents: performing target detection processing on the garment image by the defect detection terminal to determine the presence of garment defects in the garment image; when there are garment defects in the garment image, determining that the defect detection result of the garment to be detected is the presence of defects, and determining the defect type of the garment defect.
[0105] Specifically, the defect detection terminal 340 inputs the garment image into a pre-trained target detection model, performs target detection processing on the garment image through the target detection model, and determines the presence of garment defects in the garment image. If there are garment defects in the garment image, the defect detection terminal 340 determines that the defect detection result of the garment to be inspected is that there are defects, and further determines the defect type corresponding to the garment defect among a plurality of preset defect types.
[0106] After the defect type of the garment defect is determined in the above steps, the following contents are specifically included: controlling the driving mechanism to stop driving through the defect detection terminal, and displaying the garment image and the defect type of the garment defect through the defect detection terminal.
[0107] Specifically, referring to Figure 1, the defect detection terminal 340 includes a display 342. When the defect detection result of the garment to be inspected is determined to be a defect based on the garment image, the defect detection terminal 340 controls the drive mechanism 240 to stop driving through an electrical connection with the drive mechanism 240 to stop the rotation of the lamp post body 220, and displays the garment image at this time and the defect type of the garment defect existing in the garment to be inspected through the display 342.
[0108] For example, assuming that there is a hole in a certain area of the garment to be inspected, when the hole area of the garment to be inspected mounted on the lamp post body 220 is directed toward the image acquisition device 320 as the lamp post body 220 rotates, the image acquisition device 320 will acquire a garment image containing the hole area, and the defect detection terminal 340 performs target detection processing on the garment image, and can determine that there is a garment defect in the garment image, so the defect detection result of the garment to be inspected is that there is a defect (the defect existing in the garment to be inspected is the garment defect existing in the garment image), and it can be further determined that the garment defect is a hole; then, the defect detection terminal 340 controls the driving mechanism 240 to stop driving, so that the lamp post body 220 stops rotating, and at the same time displays the garment image at this time and the defect type "hole" of the garment defect existing in the garment image through the display 342.
[0109] In the present embodiment, when the garment to be inspected has a garment defect, the defect detection terminal can enable the inspector to quickly know the existence of the garment defect and the defect type of the garment defect by displaying the garment image and the defect type of the garment defect, and can enable the inspector to quickly locate the garment defect on the garment to be inspected by controlling the driving mechanism to stop driving, thereby improving the efficiency of garment defect detection.
[0110] In an exemplary embodiment, after the above steps of displaying the image of the garment and the defect type of the garment defect through the defect detection terminal, the following contents are specifically included: controlling the driving mechanism to drive the lamp post body to continue to rotate through the control mechanism in the garment defect detection system, and returning to the step of collecting the garment image of the garment to be detected set on the lamp post body by the image acquisition device based on the garment defect detection system, until the lamp post body rotates one circle, and the driving of the lamp post body is terminated through the driving mechanism.
[0111] Specifically, referring to FIG1 , the garment defect detection system further includes a control mechanism 400. After the inspector confirms and records the detected garment defects, the inspector triggers the control mechanism 400 to control the driving mechanism 240 to start driving, thereby starting the rotation of the lamp post body 220 again, so as to continue to perform garment defect detection on the garment to be inspected, until the lamp post body 220 rotates one circle and the driving mechanism 240 stops driving the lamp post body 220.
[0112] In this embodiment, through the control mechanism, the inspector can restart the rotation of the lamp post body after detecting the defects of the garments, and continue to inspect the defects of the garments to be inspected.
[0113] In an exemplary embodiment, the control mechanism 400 is a foot switch.
[0114] In an exemplary embodiment, the driving mechanism 240 is a stepper motor.
[0115] In an exemplary embodiment, the lamp post body 220 is in the shape of a frustum that is small at the top and large at the bottom.
[0116] In an exemplary embodiment, the pre-trained target detection model in the defect detection terminal 340 is trained by the following process:
[0117] A large number of sample images of various garment defects are collected; each sample image is labeled, and based on each sample image and its annotation, supervised iterative training is performed on the target detection model to be trained until the target detection model meets the iteration conditions, thereby obtaining a trained target detection model.
[0118] In an exemplary embodiment, as shown in FIG3 , another garment defect detection method is provided, which is described by taking the method applied to the garment defect detection system shown in FIG1 as an example, and includes the following steps:
[0119] Step S302: driving the lamp post body to rotate by means of a driving mechanism.
[0120] Step S304: collecting images of the garments to be inspected which are mounted on the lamp post body using an image acquisition device.
[0121] Step S306: Perform target detection processing on the garment image by the defect detection terminal to determine the presence of garment defects in the garment image.
[0122] Step S308: when there are defects in the garment image, determining the defect detection result of the garment to be detected as the presence of defects, and determining the defect type of the garment defect.
[0123] Step S310, controlling the driving mechanism to stop driving through the defect detection terminal, and displaying the garment image and the defect type of the garment defect through the defect detection terminal.
[0124] Step S312, the control mechanism controls the driving mechanism to drive the lamp post body to continue rotating, and returns to step S304, until the lamp post body rotates one circle, and the driving mechanism stops driving the lamp post body.
[0125] In this embodiment, firstly, the lamp post body for setting the garment to be detected can be driven to rotate by the driving mechanism, the garment image of the garment to be detected set on the lamp post body can be collected by the image acquisition device, and the garment image can be processed by the defect detection terminal to obtain the defect detection result of the garment to be detected; based on the above-mentioned garment defect detection system, the garment can be accurately detected without relying on manual work, thereby improving the accuracy of garment defect detection. Secondly, when the garment to be detected has a garment defect, the defect detection terminal can display the garment image and the defect type of the garment defect, so that the inspector can quickly know the presence of the garment defect and the defect type of the garment defect in the garment to be detected. By controlling the driving mechanism to stop driving, the inspector can quickly locate the garment defect on the garment to be detected, thereby improving the efficiency of garment defect detection. Thirdly, through the control mechanism, the inspector can start the lamp post body to rotate again after detecting the garment defect, and continue to perform garment defect detection on the garment to be detected.
[0126] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0127] In order to more clearly illustrate the garment defect detection system and garment defect detection method provided by the embodiments of the present application, the garment defect detection system and garment defect detection method provided by the present application are specifically described below with a specific embodiment, but it should be understood that the embodiments of the present application are not limited thereto. In one exemplary embodiment, the present application also provides a system for detecting garment defects based on visual technology and a method for using the same, which specifically includes the following contents:
[0128] As shown in FIG4 , the system for detecting garment defects based on visual technology provided by this embodiment is shown. Referring to FIG4 , the system includes a frame, a lamp post part and a visual detection part. Among them, the right side of the lamp post is a host chassis, the left side of the chassis has a hole, and the camera extends out of the hole; the lamp post part is composed of a lamp post and a stepper motor, and the visual detection part is composed of a display, a host and a foot switch. Among them, the stepper motor is connected to the lamp post drive to drive the lamp post to rotate; the host is electrically connected to the stepper motor to control the stepper motor to stop driving the lamp post; the switch is electrically connected to the stepper motor to control the stepper motor to start driving the lamp post.
[0129] When in use, the user manually puts the clothes on the lamp post, steps on the foot switch, and the stepper motor drives the lamp post to rotate one circle. During the rotation of the lamp post, the camera captures the image of the clothes in real time, and detects defects on the image through the target detection model in the host. If a defect is detected, the host controls the lamp post to stop through the stepper motor and displays the image of the defect and its type on the display. After the manual processing is completed, the lamp post is controlled to continue rotating through the foot switch.
[0130] In this embodiment, the system can be used to detect garment defects, which can reduce manual labor and avoid eye fatigue caused by long-term gaze at the lamp post. At the same time, the use of visual technology to automatically detect defects can also avoid omissions caused by fatigue.
[0131] In an exemplary embodiment, a computer device is provided, which may be a defect detection terminal, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, each step executed by the above-mentioned defect detection terminal is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0132] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0133] In an exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, each step performed by the above-mentioned defect detection terminal is implemented.
[0134] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps performed by the above-mentioned defect detection terminal are implemented.
[0135] In an exemplary embodiment, a computer program product is provided, including a computer program, which implements the steps performed by the above-mentioned defect detection terminal when executed by a processor.
[0136] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0138] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A garment defect detection system, characterized in that: The system comprises: Mounting table; A lamp post device, the lamp post device comprising a lamp post body arranged on the mounting platform; the lamp post body is used for setting the garment to be inspected; The lamp post device further comprises a driving mechanism which is drivingly connected to the lamp post body; the driving mechanism is used to drive the lamp post body to rotate; A visual inspection device, the visual inspection device comprising an image acquisition device arranged toward the lamp post body; the image acquisition device is used to acquire an image of the garment to be inspected which is mounted on the lamp post body; The visual inspection device also includes a defect detection terminal arranged on the mounting platform; the defect detection terminal is electrically connected to the driving mechanism for controlling the operation of the driving mechanism, and the defect detection terminal is communicatively connected to the image acquisition device for performing target detection processing on the garment image acquired by the image acquisition device to obtain defect detection results of the garment to be inspected.
2. The system according to claim 1, characterized in that The defect detection terminal is also used to control the driving mechanism to stop driving when it is determined based on the garment image that the defect detection result of the garment to be detected is that there is a defect, and to display the garment image and the defect type of the garment defect existing in the garment to be detected.
3. The system according to claim 1, characterized in that The driving mechanism is also used to stop driving the lamp post body when the lamp post body rotates one circle.
4. The system according to any one of claims 1 to 3, characterized in that: The system further comprises a control mechanism electrically connected to the driving mechanism; the control mechanism is used for controlling the driving mechanism to start driving.
5. The system according to claim 4, characterized in that The control mechanism is a foot switch.
6. The system according to any one of claims 1 to 3, characterized in that: The driving mechanism is a stepping motor.
7. The system according to any one of claims 1 to 3, characterized in that: The lamp post body is in the shape of a frustum that is small at the top and large at the bottom.
8. A method for detecting defects in garments, characterized in that: Applied to the garment defect detection system according to any one of claims 1 to 7, the method comprises: The driving mechanism in the garment defect detection system is used to drive the lamp post body in the garment defect detection system to rotate; the lamp post body is in a light-emitting state, and the garment to be detected is sleeved on the lamp post body; Based on the image acquisition device in the garment defect detection system, the garment image of the garment to be detected set on the lamp post body is acquired; the image acquisition device is used to transmit the acquired garment image to the defect detection terminal in the garment defect detection system; The defect detection terminal performs target detection processing on the garment image to obtain a defect detection result of the garment to be detected.
9. The method according to claim 8, characterized in that The step of performing target detection processing on the garment image by the defect detection terminal in the garment defect detection system to obtain the defect detection result of the garment to be detected includes: Performing target detection processing on the garment image by the defect detection terminal to determine the presence of garment defects in the garment image; In the case where the garment defect exists in the garment image, determining that a defect detection result of the garment to be detected is that a defect exists, and determining a defect type of the garment defect; After determining the defect type of the garment defect, it also includes: The driving mechanism is controlled to stop driving by the defect detection terminal, and the garment image and the defect type of the garment defect are displayed by the defect detection terminal.
10. The method according to claim 9, characterized in that After displaying the garment image and the defect type of the garment defect through the defect detection terminal, the method further includes: The control mechanism in the garment defect detection system is used to control the driving mechanism to drive the lamp post body to continue rotating, and return to the step of collecting the garment image of the garment to be detected set on the lamp post body based on the image acquisition device in the garment defect detection system, until the lamp post body rotates one circle, and the driving mechanism ends the driving of the lamp post body.
Citation Information
Patent Citations
Gray cloth defect on-line detecting system based on machine vision and achieving method
CN102818809A
Bearing component for industrial defect detection
CN104275658A
Precise rotary displacement stage
CN106352836A
Detection method and system of cloth surface defects based on machine vision
CN107369155A
Construction and detection method of textile fabric defect detection model based on artificial intelligence
CN115294136A
Cited By
A garment detection line and method of detection thereof
CN122702701A
