Improved YOLOv8 fabric defect detection method
By improving the YOLOv8 model, combining the ConvNeXt v2 module and the GAM attention mechanism, the problem of low fabric defect detection accuracy and slow speed was solved, a real-time detection system and experimental platform were built, and high-precision and rapid detection in fabric production was achieved.
Patent Information
- Application Number
- CN202410664158.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing fabric defect detection methods are difficult to balance high accuracy and real-time detection performance, and lack effective real-time detection systems and experimental platforms.
The YOLOv8 model is improved by replacing the C2f module in Backbone with the ConvNeXt v2 module, adding the GAM attention mechanism, and replacing the CIoU bounding box loss function with WIoU. It combines the PyQt5 software to build a detection system and the RbtPB linear mobile device to build an experimental platform to realize the detection of fabric defects. High-precision and rapid detection.
It improves the accuracy of fabric defect detection and bounding box regression performance, realizes real-time detection during the fabric production process, and meets the needs of the textile industry for fast and high-precision detection.
Smart Images

Figure CN118608472A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fabric defect detection, and in particular relates to a fabric defect detection method based on improved YOLOv8. Background Art
[0002] China is one of the world's largest textile manufacturers and exporters. At the same time, the huge scale of the textile industry has also played an important supporting role in my country's economic development and social stability.
[0003] In textile production, fabric defect detection is a crucial link, which can effectively improve the quality of textiles. Its purpose is to prevent fabric defects from having a negative impact on the quality of cloth, thereby significantly affecting the value and sales of textiles. For a long time, the quality inspection of fabric products has relied on manual visual inspection. Workers check the quality of fabrics according to their personal experience. Although this method can effectively improve the quality of fabric products, it still has many shortcomings. First, the current social aging trend is obvious, and labor shortage has become a realistic problem. In addition, the textile industry, which has high physical labor intensity and a lot of cotton fiber dust in the working environment, poses certain challenges to the physical and mental health of workers. Secondly, due to the insufficient degree of mechanization, the speed of manual cloth inspection is very slow. In addition, due to the influence of the subjective factors of the inspectors on the defects, the inspection results lack objective consistency and accuracy, which often leads to false detection and missed detection. Therefore, the inspection method of manual naked eyes can no longer meet the needs of the rapid development of the current textile industry. And with the continuous advancement of science and technology, the degree of intelligence of industrial production is increasing, and traditional manual visual inspection methods are gradually being eliminated. Realizing real-time automatic detection of fabric defects during the production process has become an urgent need in the textile production process.
[0004] At present, domestic and foreign experts and scholars have conducted a lot of research on the detection of fabric defects and proposed many methods. The Chinese invention patent "A detection method for defective areas of colored fabric pieces" (application publication number CN 111402197 A) discloses a detection method for defective areas of colored fabric pieces. This method calculates the residual between the image of the fabric to be tested and the image reconstructed by the model, performs mathematical morphological analysis, and realizes defect detection and positioning of colored woven shirt pieces. It can effectively avoid practical problems such as the scarcity of defect samples, imbalance of defect types, high cost of constructing artificially designed defect features, and poor feature generalization ability. However, it can only handle some non-periodic fabric image defects, and the detection accuracy is not high for some subtle defects. The Chinese invention patent "Fabric defect detection method based on Gaussian mixture model" (application publication number CN114693652A) discloses a fabric defect detection method based on Gaussian mixture model. The method obtains the defect area of each fabric image to be detected according to the number of change points in the cumulative distance curve corresponding to each piece of fabric image to be detected and the pixel value corresponding to the change point, which reduces the false detection rate and missed detection rate, and no longer needs to rely on manual defect detection of the fabric to be detected. However, this method is sensitive to noise, which affects the accuracy of defect detection. The Chinese invention patent "A fabric defect detection method based on improved YOLOv7-Tiny network model" (application publication number CN 117173111 A) discloses a fabric defect detection method based on improved YOLOv7-Tiny network model. The method is based on the YOLOv7-Tiny network model, combined with the SPD-Conv module and the hybrid attention module, to construct a fabric defect detection model suitable for fabric defect detection, which can not only improve the accuracy of fabric defect detection, but also greatly reduce the amount of calculation, but lacks a defect detection system and cannot directly perform real-time detection of fabric defects.
[0005] In summary, the current methods for detecting fabric defects do not achieve high-precision detection of fabric defects while maintaining fast real-time performance; and there is a lack of specific methods for real-time detection in the fabric production process, and there is no effective real-time detection system and real-time detection experimental platform that can be fully referenced. Summary of the invention
[0006] The purpose of the present invention is to provide a fabric defect detection method that improves YOLOv8, so as to solve the problem that the current fabric defect detection cannot meet the dual requirements of accuracy and real-time detection performance, and realize high-precision and rapid detection of textured fabrics.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is: improving the fabric defect detection method of YOLOv8, which is specifically implemented according to the following steps:
[0008] Step 1: Use the Mosaic data enhancement method to expand the fabric dataset;
[0009] Step 2: Based on the YOLOv8 model, the characteristics of the fabric dataset obtained in step 1 are analyzed and improved to improve the detection performance of the YOLOv8 model;
[0010] Step 3, using the improved YOLOv8 model in step 2 and building a fabric defect detection system based on PyQt5 software;
[0011] Step 4: Build an experimental platform based on RbtPB linear mobile device;
[0012] Step 5: Fabric defect detection is performed using the improved YOLOv8 model combined with the detection system built based on PyQt5 software and the experimental platform based on the RbtPB linear mobile device.
[0013] As a preferred technical solution of the present invention, the step 1 is specifically implemented according to the following steps:
[0014] Step 1.1, use LabelImg to label the dataset and get the input photos;
[0015] Step 1.2, segment the input image;
[0016] Step 1.3, adjust the annotation box of each segmented image to ensure that the annotation box matches the segmented image;
[0017] Step 1.4, stitch the segmented images into a new image in units of four;
[0018] Step 1.5, transform the color gamut of the new image and adjust the hue, saturation and brightness;
[0019] Step 1.6: merge all segmented annotation boxes to obtain new images and corresponding annotation boxes, that is, the data set expanded by data enhancement;
[0020] Step 1.7, divide the expanded data set into training set, validation set, and test set with a division ratio of 7:2:1.
[0021] As a preferred technical solution of the present invention, the step 2 is specifically implemented according to the following steps:
[0022] Step 2.1, replace the C2f module in Backbone with the ConvNeXt v2 module to obtain the YOLOv8-ConvNeXt v2 model;
[0023] Step 2.2, based on the YOLOv8-ConvNeXt v2 model, add the GAM attention mechanism through analysis and comparison to obtain the YOLOv8-ConvNeXt v2-GAM model;
[0024] Step 2.3, based on the YOLOv8-ConvNeXt v2-GAM model, by replacing the bounding box loss function CIoU with WIoU, a YOLOv8-ConvNeXt v2-GAM-WIoU fabric defect detection model, that is, the improved YOLOv8 model, is proposed.
[0025] As a preferred technical solution of the present invention, the step 3 is specifically implemented according to the following steps:
[0026] Step 3.1, build the login and registration interface through Qt Designer software;
[0027] Step 3.2, build the defect detection interface through Qt Designer software;
[0028] Step 3.3, build the test result display interface through Qt Designer software;
[0029] Step 3.4, build the result saving interface through Qt Designer software;
[0030] Step 3.5: Convert the UI file of the interface built in steps 3.1 to 3.4 into a Python file through PYUIC, and integrate it to obtain the fabric defect detection system.
[0031] As a preferred technical solution of the present invention, the step 4 is specifically implemented according to the following steps:
[0032] Step 4.1, install the control card driver of the RbtPB linear mobile device on the PC;
[0033] Step 4.2: Make correct electrical connections according to the labels on the control box and platform connection cables of the RbtPB linear mobile device and turn on the power switch of the control box;
[0034] Step 4.3. Select the network card and control card ID on the control card quick test tool of the RbtPB linear mobile device, and click "Connect" to complete the connection between the linear mobile device and the control card;
[0035] Step 4.4, open the programmable universal motion control system of the RbtPB linear mobile device;
[0036] Step 4.5: Before the motion control system works, enter the system setting page of the RbtPB linear mobile device, select the network card connected to the control card and the ID of the control card, and complete the connection between the programmable universal motion control system and the RbtPB linear mobile device. ;
[0037] Step 4.6, enter the zero point setting interface of the RbtPB linear moving device to set the zero point of the translation stage, so that when you click the negative direction of the X / Y / Z axis to find zero, the X / Y / Z axis will automatically move to the zero position;
[0038] Step 4.7, enter the manual operation interface of the RbtPB linear mobile device to control the position of the linear mobile device. Use the positive direction jog buttons [X+], [Y+], ..., etc. to control the motor to rotate in the positive direction when pressed; and the negative direction jog buttons [X-], [Y-], ..., etc. to control the motor to rotate in the negative direction when pressed.
[0039] As a preferred technical solution of the present invention, the step 5 is specifically implemented according to the following steps:
[0040] Step 5.1, set the YOLOv8-ConvNeXt v2-GAM-WIoU model hyperparameters;
[0041] Step 5.2, train the YOLOv8-ConvNeXt v2-GAM-WIoU model according to the data set divided in step 1, and save the model weights;
[0042] Step 5.3, add the model weights to the detection system built in step 3;
[0043] Step 5.4, run the Python file generated in step 3 to open the detection system;
[0044] Step 5.5, turn on the camera switch in the detection system, thereby turning on the camera in the experimental platform built in step 4;
[0045] Step 5.6: Perform real-time detection.
[0046] The beneficial effects of the present invention are as follows: the present invention proposes an improved fabric defect detection algorithm based on the YOLOv8 model, mainly by first replacing the C2f module in Backbone with the ConvNeXt v2 module, realizing multi-scale feature extraction for fabric defects, and improving the detection accuracy of the model; then aiming at the characteristics of irregularity and texture interference of fabric defects, the GAM attention mechanism is selected to be added through analysis and comparison; finally, aiming at the characteristics of imbalanced categories of fabric defect pictures, the bounding box loss function CIoU is replaced with WIoU, thereby further improving the detection accuracy and bounding box regression performance of the YOLOv8 model; then, a detection system based on PyQt5 software and an experimental platform based on RbtPB linear mobile device are built, and an effective fabric defect detection method is proposed for how to perform real-time detection in a fabric production process. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a defect detection flow chart of a fabric defect detection method of improving YOLOv8 of the present invention;
[0048] Figure 2 It is an image preprocessing flow chart of a fabric defect detection method of improving YOLOv8 of the present invention;
[0049] Figure 3 It is a flow chart of the interface construction of a fabric defect detection system of a fabric defect detection method of improving YOLOv8 in the present invention;
[0050] Figure 4 This is a registration interface diagram of a fabric defect detection system of an improved YOLOv8 fabric defect detection method of the present invention;
[0051] Figure 5 This is a login interface diagram of a fabric defect detection system of a fabric defect detection method of improving YOLOv8 according to the present invention;
[0052] Figure 6 It is a defect detection interface diagram of a fabric defect detection system of a fabric defect detection method of improving YOLOv8 of the present invention;
[0053] Figure 7 This is a defect detection result display interface diagram of a fabric defect detection system of a fabric defect detection method of improving YOLOv8 according to the present invention;
[0054] Figure 8 This is a result saving interface diagram of a fabric defect detection system of a fabric defect detection method improved by YOLOv8 according to the present invention;
[0055] Fig. 9It is a flow chart of building an experimental platform based on RbtPB linear mobile device for a fabric defect detection method of improving YOLOv8 of the present invention;
[0056] Fig.10 It is a fabric defect detection flow chart of a fabric defect detection method of improving YOLOv8 in the present invention. DETAILED DESCRIPTION
[0057] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0058] Example 1
[0059] Combination Figure 1 The improved YOLOv8 fabric defect detection method of the present invention can be divided into data preprocessing, YOLOv8 model improvement, defect detection system construction, defect detection experimental platform construction, and real-time defect detection, which is specifically implemented in the following steps:
[0060] Step 1: Use the Mosaic data enhancement method to expand the fabric dataset and improve the generalization ability of the YOLOv8 model;
[0061] Step 2: Based on the YOLOv8 model, the characteristics of the fabric dataset obtained in step 1 are analyzed and improved to improve the detection performance of the YOLOv8 model;
[0062] Step 3, using the improved YOLOv8 model in step 2 and building a fabric defect detection system based on PyQt5 software to achieve real-time detection;
[0063] Step 4: Build an experimental platform based on the RbtPB linear mobile device to achieve real-time detection;
[0064] Step 5: Fabric defect detection is performed using the improved YOLOv8 model combined with the detection system built based on PyQt5 software and the experimental platform based on the RbtPB linear mobile device.
[0065] The invention discloses a fabric defect detection method for improving YOLOv8, which firstly labels and enhances the fabric data set to improve the generalization ability of the model. Then, an improved fabric defect detection algorithm based on the YOLOv8 model is proposed, which mainly replaces the C2f module in Backbone with the ConvNeXt v2 module to realize multi-scale feature extraction of fabric defects and improve the detection accuracy of the model; then, according to the characteristics of irregularity and texture interference of fabric defects, the GAM attention mechanism is added through analysis and comparison; finally, according to the characteristics of imbalanced categories of fabric defect pictures, the bounding box loss function CIoU is replaced with WIoU, which further improves the detection accuracy and bounding box regression performance of the YOLOv8 model. Then, a detection system based on PyQt5 software and an experimental platform based on RbtPB linear mobile device are built, and an effective solution is proposed for how to perform real-time detection in the fabric production process, which solves the problems of low accuracy, slow speed and difficulty in implementing real-time detection of fabric defects.
[0066] Example 2
[0067] The invention provides a fabric defect detection method that improves YOLOv8, combining Figure 2 , and its step 1 is specifically as follows:
[0068] Step 1.1, use LabelImg to label the dataset and get the input photos;
[0069] First, in the LabelImg interface, click the Open Dir button and select the image folder in the TILDA dataset; click Change Save Dir and select a path to save the annotation file; then use the rectangular box annotation method to mark the fabric defect area, and finally save each annotated fabric defect information.
[0070] Step 1.2, segment the input image, the input image size is 768*512;
[0071] Step 1.3, adjust the annotation box of each segmented image accordingly to ensure that the annotation box matches the processed image;
[0072] Step 1.4, stitch the segmented images into a new image in units of four;
[0073] Step 1.5, transform the color gamut of the new image and adjust the hue, saturation and brightness;
[0074] Step 1.6: merge all segmented annotation boxes to obtain new images and corresponding annotation boxes, that is, the data set expanded by data enhancement;
[0075] Step 1.7, divide the expanded data set into training set, validation set, and test set with a division ratio of 7:2:1.
[0076] Example 3
[0077] The present invention provides a method for detecting fabric defects by improving YOLOv8, wherein step 2 is specifically as follows:
[0078] Step 2.1, replace the C2f module in Backbone with the ConvNeXt v2 module and propose the YOLOv8-ConvNeXt v2 model;
[0079] Step 2.2, through analysis and comparison, we choose to add the GAM attention mechanism and propose the YOLOv8-ConvNeXt v2-GAM model;
[0080] Step 2.3. By replacing the bounding box loss function CIoU with WIoU, a YOLOv8-ConvNeXt v2-GAM-WIoU fabric defect detection model is proposed.
[0081] The principle of WIoU loss function in step 2:
[0082] The WIoU loss function weights the IoU by considering the area between the predicted box and the true box, improving the problem of inaccurate measurement of traditional IoU. First, the IoU score of the predicted box and the true box is calculated; then the area between the two boxes is calculated, and the distance between them is calculated using the center points of the bounding boxes of the predicted box and the true box, and this distance is used as the maximum distance between the two boxes, and then the area between the two boxes is calculated; according to the area between the two boxes, the weight coefficient is calculated, which measures the relationship between the two boxes and can be used to weight the IoU score; finally, by introducing the area between the boxes and the weight coefficient, WIoU can more accurately evaluate the target detection results and avoid the bias problem of traditional IoU. There are three versions of WIoU, including WIoU v1 ,WIoU v2 ,WIoU v3 , the formulas are shown in formula (1), formula (2), and formula (3) respectively. WIoU v1 Constructed distance attention, WIoU v2 and WIoU v3 At WIoU v1 Based on this, a focusing mechanism is introduced, where WIoU v3 The performance is better.
[0083] L WIoUv1 =R WIoU L IoU (1)
[0084]
[0085] Example 4
[0086] The invention provides a fabric defect detection method that improves YOLOv8, combining Figure 3 , and step 3 is specifically as follows:
[0087] Step 3.1: Use Qt Designer software to build Figure 4 The registration interface shown is similar to Figure 5 The login interface shown;
[0088] Step 3.2: Use Qt Designer software to build Figure 6 The defect detection interface shown;
[0089] Step 3.3: Use Qt Designer software to build Figure 7 The inspection result display interface shown includes the number of defects and the coordinate position of each defect;
[0090] Step 3.4: Use Qt Designer software to build Figure 8 The result saving interface shown;
[0091] Step 3.5: Convert the UI file of the interface building interface into a Python file through PYUIC.
[0092] Example 5
[0093] Different from Example 1, the fabric defect detection method of the present invention improves YOLOv8 by combining Fig. 9 , and step 4 is specifically as follows:
[0094] Step 4.1, install the control card driver of the RbtPB linear mobile device on the PC;
[0095] Step 4.2: Make correct electrical connections according to the labels on the control box and platform connection cables of the RbtPB linear mobile device and turn on the power switch of the control box;
[0096] Step 4.3. Select the network card and control card ID on the control card quick test tool of the RbtPB linear mobile device, and click "Connect" to complete the connection between the linear mobile device and the control card;
[0097] Step 4.4, open the programmable universal motion control system of the RbtPB linear mobile device;
[0098] Step 4.5: Before the motion control system works, enter the system setting page of the RbtPB linear mobile device, select the network card connected to the control card and the ID of the control card, and complete the connection between the programmable universal motion control system and the RbtPB linear mobile device. ;
[0099] Step 4.6, enter the zero point setting interface of the RbtPB linear moving device to set the zero point of the translation stage, so that when you click the negative direction of the X / Y / Z axis to find zero, the X / Y / Z axis will automatically move to the zero position;
[0100] Step 4.7, enter the manual operation interface of the RbtPB linear mobile device to control the position of the linear mobile device. Use the positive direction jog buttons [X+], [Y+], ..., etc. to control the motor to rotate in the positive direction when pressed; and the negative direction jog buttons [X-], [Y-], ..., etc. to control the motor to rotate in the negative direction when pressed.
[0101] Example 6
[0102] Different from Example 1, the fabric defect detection method of the present invention improves YOLOv8 by combining Fig.10 , and step 5 is specifically as follows:
[0103] Step 5.1. Set the YOLOv8-ConvNeXt v2-GAM-WIoU model hyperparameters, set the learning rate Lr to 0.001, the batch size Batch Size to 16; the epoch is set to 300, and the input image size is set to 640*640.
[0104] Step 5.2: Train the YOLOv8-ConvNeXt v2-GAM-WIoU model according to the data set divided in step 1 and save the model weights;
[0105] Step 5.3: embed the model weights into the detection system built in step 3;
[0106] Step 5.4: Run the Python file generated in step 3 to open the detection system;
[0107] Step 5.5, turn on the camera switch in the detection system to turn on the camera in the experimental platform built in step 4. The camera uses the HIKROBOT MV-CS060-10UC-PRO industrial camera, and its parameters are shown in Table 1;
[0108] Table 1
[0109] Camera parameters Parameter Value sensor CMOS, rolling shutter Sensor Model IMX178 Target size 1 / 1.8" Pixel size 2.4μm×2.4μm Frame rate 59.6fps@3072×2048 Resolution 3072×2048 Data Interface USB3.0
[0110] Step 5.6: Perform real-time detection.
[0111] By testing on an artificially created data set, the improved fabric defect detection method of the present invention can achieve a detection speed of 29 frames. Among the artificially created fabric defects, there are 30 defects of four types, namely holes, oil spots or wrong colors, thread errors, and foreign matter. The detection results are shown in Table 2. It can be seen from the table that 2 holes were not detected, 3 oil spots or wrong colors were not detected, 5 thread errors were not detected, and 1 foreign matter was not detected. The detection success rates of the four defects are 93.3%, 90%, 83.3%, and 96.7%, respectively. Experiments have shown that the real-time detection system can meet the real-time defect detection requirements in fabric production and has industrial application value.
[0112] Table 2
[0113] Hole Oily or wrong color Wrong line foreign body Number of positive inspections 28 27 25 29 Number of unchecked 2 3 5 1
Claims
1. Improved YOLOv8 fabric defect detection method, characterized in that: Follow the steps below to implement it: Step 1: Use the Mosaic data enhancement method to expand the fabric dataset; Step 2: Based on the YOLOv8 model, the characteristics of the fabric dataset obtained in step 1 are analyzed and improved to improve the detection performance of the YOLOv8 model; Step 3, using the improved YOLOv8 model in step 2 and building a fabric defect detection system based on PyQt5 software; Step 4: Build an experimental platform based on RbtPB linear mobile device; Step 5: Fabric defect detection is performed using the improved YOLOv8 model combined with the detection system built based on PyQt5 software and the experimental platform based on the RbtPB linear mobile device.
2. The fabric defect detection method of improved YOLOv8 according to claim 1, characterized in that: The step 1 is specifically implemented according to the following steps: Step 1.1, use LabelImg to label the dataset and get the input photos; Step 1.2, segment the input image; Step 1.3, adjust the annotation box of each segmented image to ensure that the annotation box matches the segmented image; Step 1.4, stitch the segmented images into a new image in units of four; Step 1.5, transform the color gamut of the new image and adjust the hue, saturation and brightness; Step 1.6: merge all segmented annotation boxes to obtain new images and corresponding annotation boxes, that is, the data set expanded by data enhancement; Step 1.7, divide the expanded data set into training set, validation set, and test set with a division ratio of 7:2:
1.
3. The fabric defect detection method of improved YOLOv8 according to claim 2, characterized in that: The step 2 is specifically implemented according to the following steps: Step 2.1, replace the C2f module in Backbone with the ConvNeXt v2 module to obtain the YOLOv8-ConvNeXt v2 model; Step 2.2, based on the YOLOv8-ConvNeXt v2 model, add the GAM attention mechanism through analysis and comparison to obtain the YOLOv8-ConvNeXt v2-GAM model; Step 2.3, based on the YOLOv8-ConvNeXt v2-GAM model, by replacing the bounding box loss function CIoU with WIoU, a YOLOv8-ConvNeXt v2-GAM-WIoU fabric defect detection model, that is, the improved YOLOv8 model, is proposed.
4. The fabric defect detection method of improved YOLOv8 according to claim 3, characterized in that: The step 3 is specifically implemented according to the following steps: Step 3.1, build the login and registration interface through Qt Designer software; Step 3.2, build the defect detection interface through Qt Designer software; Step 3.3, build the test result display interface through Qt Designer software; Step 3.4, build the result saving interface through Qt Designer software; Step 3.5: Convert the UI file of the interface built in steps 3.1 to 3.4 into a Python file through PYUIC, and integrate it to obtain the fabric defect detection system.
5. The fabric defect detection method of improved YOLOv8 according to claim 4, characterized in that: The step 4 is specifically implemented according to the following steps: Step 4.1, install the control card driver of the RbtPB linear mobile device on the PC; Step 4.2: Make correct electrical connections according to the labels on the control box and platform connection cables of the RbtPB linear mobile device and turn on the power switch of the control box; Step 4.
3. Select the network card and control card ID on the RbtPB linear mobile device control card quick test tool, and click "Connect" to complete the connection between the linear mobile device and the control card. Step 4.4, open the programmable universal motion control system of the RbtPB linear mobile device; Step 4.5: Before the motion control system works, enter the system setting page of the RbtPB linear mobile device, select the network card connected to the control card and the ID of the control card, and complete the connection between the programmable universal motion control system and the RbtPB linear mobile device; Step 4.6, enter the zero point setting interface of the RbtPB linear moving device to set the zero point of the translation stage, so that when you click the negative direction of the X / Y / Z axis to find zero, the X / Y / Z axis will automatically move to the zero position; Step 4.7, enter the manual operation interface of the RbtPB linear moving device to control the position of the linear moving device; use the positive direction jog buttons [X+], [Y+], ..., etc. to control the motor to rotate in the positive direction when pressed; use the negative direction jog buttons [X-], [Y-], ..., etc. to control the motor to rotate in the negative direction when pressed.
6. The fabric defect detection method of improved YOLOv8 according to claim 5, characterized in that: The step 5 is specifically implemented according to the following steps: Step 5.1, set the YOLOv8-ConvNeXt v2-GAM-WIoU model hyperparameters; Step 5.2, train the YOLOv8-ConvNeXt v2-GAM-WIoU model according to the data set divided in step 1, and save the model weights; Step 5.3, add the model weights to the detection system built in step 3; Step 5.4, run the Python file generated in step 3 to open the detection system; Step 5.5, turn on the camera switch in the detection system, thereby turning on the camera in the experimental platform built in step 4; Step 5.6, perform real-time detection.
Citation Information
Cited By
Tomato leaf trialeurodes vaporariorum insect pest pesticide application method based on visual detection
CN119867042A
