Material detection method, system and equipment based on improved yolov8 network and medium
By improving the YOLOv8 network and combining GhostNetV2 and BAM modules, the problems of low parts detection efficiency and insufficient accuracy in industrial manufacturing are solved, accurate detection and automatic picking of high-precision parts are achieved, and production efficiency and product quality are improved.
Patent Information
- Application Number
- CN202410114051.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-27
- Publication Date
- 2024-10-11
AI Technical Summary
Existing parts detection in industrial manufacturing relies on manual labor or traditional sensors, which is inefficient and costly, and cannot accurately and efficiently identify defects in high-precision parts, such as cracks, folds, wear and dimensional deviations in mesh electrodes, which affects production. quality.
Using the improved YOLOv8 network, by adding the GhostNetV2 network and the bottleneck attention module BAM to the model, the feature extraction and detection accuracy is improved, the channel and spatial attention mechanisms are combined for information fusion, the detection results are optimized, and rigid and flexible positioning groups are equipped to achieve Automatically pick up materials.
It achieves accurate and rapid detection and positioning of component defects, improves detection accuracy and efficiency, reduces manual intervention, adapts to the picking needs of different objects, and ensures product quality and production efficiency.
Smart Images

Figure CN118761949A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer-aided processing of industrial parts, and in particular to a material detection and classification method, system, equipment and medium based on an improved YOLOv8 network. Background Art
[0002] With the continuous improvement of industrial automation, assembly lines have become the main production tool for many manufacturing industries. On the assembly line, picking materials is a very important work procedure because it directly affects the efficiency and quality of production.
[0003] In the current industrial manufacturing field, the inspection of parts (such as mesh electrodes) often uses traditional manual inspection or sensor inspection methods, that is, it is necessary to deploy observers on the production line to observe the products with the naked eye to determine whether the product quality meets the standards and pick up the materials. Traditional defect detection and picking up materials require a lot of manual labor, and too much manual intervention leads to the problems of low efficiency, high cost and instability in traditional methods. As the precision of parts in emerging fields becomes higher and higher, the requirements for quality inspection are also increasing. For example, problems such as cracks, folding, wear, and dimensional tolerances that may exist in mesh electrodes cannot be accurately and efficiently dealt with by the naked eye or the existing recognition network, which in turn affects the quality of subsequent production products. In order to meet higher production capacity requirements and improve the accuracy and speed of detection, it is necessary to upgrade the technology of intelligent manufacturing product quality inspection. Therefore, it is imperative to develop a device that can accurately and quickly identify qualified products and locate the objects for picking up materials. Summary of the invention
[0004] In order to solve the existing problems, the present invention aims to provide a material detection and classification method, system, equipment and medium based on an improved yolov8 network.
[0005] In order to achieve the above object, the technical solution adopted by the present invention provides a material detection and classification method based on an improved yolov8 network, comprising:
[0006] S1, add GhostNetV2 network to the yolov8 model to replace the original model Backbone, add the bottleneck attention module BAM before the object detection head module of the yolov8 model to obtain the improved yolov8 model;
[0007] S2, obtaining training images and training data sets of material defects; inputting the training data sets into the improved yolov8 model to obtain a trained model;
[0008] S3, collect the image of the material to be tested, input it into the trained model, and output the test result and classification signal;
[0009] S4, according to the type of signal, select the corresponding positioning group to complete the material picking.
[0010] In some embodiments, S1 includes:
[0011] S1.1: Based on YOLOv8, add GhostNetV2 network structure in Backbone;
[0012] S1.2: Send the image features extracted by the GhostNetV2 network to the Neck end for feature fusion and input into the next result prediction module;
[0013] S1.3: The BAM module is a change to the detection head.
[0014] In some embodiments, the BAM module contains two branches: channel attention and spatial attention.
[0015] In S2 of some embodiments, the material is a mesh electrode and is marked as one or more defects of the whole sheet, crack defect, folding defect, wear defect and size out of tolerance.
[0016] In S3 of some embodiments, the input material image feature X is sent to the Ghost branch and the ECANet branch to obtain the output feature Y and the attention map A respectively, and then the dot product is performed to perform detection and classification, and the detection result and classification signal are output.
[0017] In some embodiments, in the ECANet branch, the input material image feature X is converted into the input Z of ECANet, and the output of the material image feature is the dot product of the results of the two branches:
[0018] O = Sigmoid(A)⊙v(X);
[0019] Among them, A is the attention map of the input material image, v is the operation of the Ghost branch, and X is the material image feature of the input backbone network.
[0020] In S3 of some embodiments, the attention mechanism of the improved yolov8 network extracts and mixes information of the input material image feature X through the channel attention branch and the spatial attention branch, outputs the optimized material image feature, and transmits it to the improved yolov8 neural network as input.
[0021] In some embodiments, the channel attention branch optimizes the input material image feature F to obtain its channel attention map Mc(F), and the spatial attention branch optimizes the input material image feature F to obtain its spatial attention map Ms(F), which are expanded to the same dimension through a broadcast mechanism, and then weighted addition is performed to generate a 3D attention map M(F) of the material image feature; finally, the input material image feature F is element-wise multiplied by M(F), and then added to F through a residual structure to obtain F′, i.e., a reconstructed feature map of the material image feature.
[0022] In some embodiments, the formula for obtaining the channel attention map Mc(F) is:
[0023] Mc(F)=BN(W1(W0AvgPool(F)+b0)+b1)
[0024] Among them, Mc(F) is the channel attention map of the material image feature, F is the material image feature of the input object detection head, BN is batch normalization processing, W0, b0 are the weight and bias of the first fully connected layer, W1, b1 are the weight and bias of the second fully connected layer, and Avgpool is the global average pooling processing.
[0025] In some embodiments, the exponential linear unit activation function ELU is also used to perform nonlinear processing on the material image features. The specific formula is:
[0026]
[0027] Among them, x is the one-dimensional feature vector of the input material image, and α is the coefficient, which ranges from 0.1 to 0.3.
[0028] In some embodiments, the formula for obtaining the spatial attention map Ms(F) is:
[0029]
[0030] Among them, Ms(F) is the spatial attention map of the material image feature, F is the material image feature input to the object detection head, f is the convolution operation, BN is batch normalization, and the superscript is the convolution kernel size.
[0031] In some embodiments, the formula for obtaining the 3D attention map M(F) of the material image features is:
[0032] M(F) = σ(Mc(F) + Ms(F));
[0033] Among them, σ is a sigmoid function, Mc(F) is the channel attention map of material image features, and Ms(F) is the spatial attention map of material image features.
[0034] In some embodiments, the formula for obtaining the reconstructed feature map is: in, represents element-by-element multiplication, and F′ is the reconstructed feature map of the material image features.
[0035] The present invention also provides a material detection and classification system based on an improved yolov8 network, comprising:
[0036] Improved module, used to add GhostNetV2 network to yolov8 model to replace the original model Backbone, add bottleneck attention module BAM before the object detection head module of yolov8 model to obtain improved yolov8 model;
[0037] The training module is used to obtain training images, training data sets of material defects, and input them into the improved yolov8 model to obtain a trained model;
[0038] The acquisition and detection module is used to collect images of materials on the assembly line, input them into the trained model, and output the detection results and classification signals;
[0039] The control module controls the corresponding positioning group to complete material picking according to the type of signal.
[0040] The present invention also provides a material detection and classification device based on an improved yolov8 network, a visual recognition group, including a camera for collecting material images on an assembly line; a rigid positioning group, including a robotic arm and a clamp; a flexible positioning group, including a pneumatic gripper and an adsorption device; and a controller, including one or more processors, for calling and running a computer program from a memory to execute the method described and control the rigid positioning group and the flexible positioning group to complete material picking.
[0041] In some embodiments, the pipeline further includes a pressure sensor communicatively connected to the controller.
[0042] The present invention also provides a storage medium comprising computer executable instructions, which are used to perform the method when executed by a computer processor.
[0043] Compared with the prior art, the present invention selects YOLOv8 target detection as a recognition model, and improves the original YOLOv8 model structure to obtain an improved YOLOv8 model structure, thereby obtaining a detection model with higher accuracy and lower false positive rate.
[0044] The specific optimization and improvements are as follows: 1) The GhostNetV2 module was used to replace the Backbone module of YOLOv8, which strengthened feature extraction while maintaining accuracy; 2) The traditional detection head of YOLOv8 was abandoned and the detection head of the BAM module was used; 3) ELU was used as the activation function to perform nonlinear processing on material image features, which can effectively improve accuracy; the original algorithm was optimized to improve the accuracy of the network, which is conducive to the detection of mesh electrodes.
[0045] The equipment provided by the present invention is equipped with a rigid positioning group and a flexible positioning group, which can adapt to the picking needs of different objects; it can automatically switch the corresponding rigid or flexible positioning group according to the neural network recognition result; the rigid positioning group sweeps away waste products and can speed up work efficiency, and the flexible positioning group picks up qualified products and can prevent surface damage, thereby realizing fast and accurate positioning and control respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 Schematic diagram of the process of the embodiment of the present invention
[0047] Figure 2 This is a schematic diagram of the structure of the GhostNetV2 network;
[0048] Figure 3 It is a schematic diagram of the structure of the attention mechanism bottleneck attention module (BAM);
[0049] Figure 4 It is a schematic diagram of the structure of the device according to the embodiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention will now be further described with reference to the accompanying drawings.
[0051] See also Figure 1 and Figure 3 , Figure 1 and Figure 3 What is shown is an embodiment of the present invention, a material detection and classification method based on an improved yolov8 network, which mainly includes:
[0052] S1, add GhostNetV2 network to the yolov8 model to replace the original model Backbone, add the bottleneck attention module BAM before the object detection head module of the yolov8 model to obtain the improved yolov8 model;
[0053] S2, obtaining training images and training data sets of material defects; inputting the training data sets into the improved yolov8 model to obtain a trained model;
[0054] S3, collect the image of the material to be tested, input it into the trained model, and output the test result and classification signal;
[0055] S4, according to the type of signal, select the corresponding positioning group to complete the material picking.
[0056] Furthermore, S1 of this embodiment includes:
[0057] S1.1: Based on YOLOv8, add GhostNetV2 network structure in Backbone;
[0058] S1.2: Send the image features extracted by the GhostNetV2 network to the Neck end for feature fusion and input into the next result prediction module;
[0059] S1.3: The BAM module is a change to the detection head; preferably, the BAM module has two branches: channel attention and spatial attention.
[0060] Furthermore, S2 of this embodiment includes:
[0061] Step 2.11: Collect the target data set, mainly the mesh electrode defect detection data set;
[0062] A total of 520 pieces of various types were selected, including 110 normal pieces and 410 pieces of various defective pieces. The data set was captured by a camera, and different shooting backgrounds and environmental background colors were selected. The data set was expanded mainly by image rotation. The total number of data sets was expanded to 1,380 pictures. Each picture contains a piece of material.
[0063] Step 2.12: sorting the obtained mesh electrode data set;
[0064] Step 2.13: Use the labeling tool LabelImg to label the obtained image.
[0065] Among them, qualified products refer to products whose indicators meet the production requirements. Unqualified products refer to products that do not meet the production requirements and have the following defects. Therefore, there are five types of specific defects: sample, crack, fold, damaged, and size.
[0066] Cracks: Cracks in mesh parts are generally caused by internal stress concentration in the material or external stress exceeding the material strength limit. Cracks usually appear as fractures with large depth and width, without a certain direction, and generally appear like orange peel or fly feet. Cracks may affect the strength and stability of parts and need to be detected and repaired.
[0067] Folding: Folding of mesh parts is usually caused by uneven surface of the material or uneven force during processing. Folding will make the surface of the parts uneven, affecting the appearance and performance. Wear: Surface damage caused by friction, impact, etc. during the use of parts.
[0068] Size deviation: The actual size of the part does not meet the design requirements and exceeds the allowable range.
[0069] Since the products (net-shaped parts) targeted by this embodiment are relatively delicate, the flexible positioning group is used to pick up qualified products to prevent surface damage, and the rigid positioning group is used to remove waste products to speed up work efficiency.
[0070] During the annotation process, regardless of whether there are defects or not, the sample type will frame the entire sheet, and the crack, fold, damaged, and size types will frame the defect location. The dataset label format used is the PASCAL VOC2007 format. A VOC2007 folder is created under the main directory file, and a JPEGImages folder is created under the folder to store dataset image files. The Annotations folder is created under the folder to store label files. The label file format obtained by the annotation software is .xml.
[0071] The improved yolov8 model will be tested for recognition based on the validation set of patches during training, with each batch containing 16 images. The images contain multiple types of patches in different backgrounds.
[0072] After completing the training of the improved yolov8 model, select the best.pt format file in the weights folder as the model parameter weight for detection, import the image of the sheet when the device is running, and execute the detect.py file for image recognition.
[0073] All the pieces are detected and marked with sample type; cracked pieces are framed with cracked parts, and the crack type and its category probability are marked; folded pieces are framed with folded parts, and the fold type and its category probability are marked; worn pieces are framed with worn parts, and the damaged type and its category probability are marked; out-of-size pieces are framed, and the size type and its category probability are marked. The visual module sends out a rejection signal based on this.
[0074] Furthermore, step 2 of this embodiment also includes:
[0075] S2.21: Set the network parameters of the improved YOLOv8 model. Select the YOLOv8n model for training in Model and the YOLOv8n.pt file for Weights. Set the number of epoch training to 100 and the Batch-size to 1.
[0076] S2.22: Use the training data set to train the improved YOLOv8 network, continuously optimize the network parameters, make the network model reach the best state, and obtain the trained and optimized model.
[0077] Furthermore, S3 of this embodiment collects material images on the assembly line; uses the InterD435 depth camera to sample color images of objects on the assembly line, and then transmits the collected material image information to the computer's material image recognition program through an interface as input.
[0078] By improving the yolov8 network, the defect detection of qualified and unqualified products is performed on the input material (mesh electrode) image, and the network model is trained through the training data set to obtain appropriate parameters. The trained model is used to predict the new input image to achieve object recognition and classification, and give different signals. The relevant neural network involved in this embodiment is based on the yolov8 neural network, and the backbone of the network is replaced by the GhostNetV2 network. See Figure 2 , the structure of GhostNetV2 network, for the input material image feature X, it is sent to two branches, one is the Ghost branch, which obtains the output feature Y, and the other is the ECANet branch, which obtains the attention map A. It is preferred to use 1×1 convolution to transform the input material image feature X of the module into the input Z of ECANet. The final material image feature output is the dot product of the results of the two branches. That is:
[0079] O=Sigmoid(A)⊙v(X)
[0080] Among them, O is the final material image feature output, A is the attention map of the input material image, v is the operation of the Ghost branch, and X is the material image feature of the input backbone network.
[0081] As a preferred method, the yolov8 network is also improved to add an attention mechanism, namely the attention mechanism bottleneck attention module (BAM), whose structure can be found in Figure 3 The specific process is: through the channel attention branch and the spatial attention branch, the input material image features are extracted and mixed, the optimized material image features are output, and transmitted to the neural network as input.
[0082] 1) The channel attention branch optimizes the input material image features to obtain the channel attention map Mc(F) of the material image features. The specific formula is:
[0083] Mc(F)=BN(W1(W0AvgPool(F)+b0)+b1)
[0084] Among them, Mc(F) is the channel attention map of the material image feature, F is the input material image feature, BN is batch normalization processing, W0, b0 are the weight and bias of the first fully connected layer, W1, b1 are the weight and bias of the second fully connected layer, and Avgpool is the global average pooling processing.
[0085] Furthermore, the exponential linear unit activation function ELU is used in the process to perform nonlinear processing on the material image features. The specific formula is:
[0086]
[0087] Where x is the one-dimensional feature vector of the input material image, and α is the coefficient, which generally takes a value between 0.1 and 0.3; here it is taken as 0.3.
[0088] 2) The spatial attention branch optimizes the input material image features to obtain the spatial attention map Ms(F) of the material image features. The specific formula is:
[0089]
[0090] Among them, Ms(F) is the spatial attention map of the material image feature, F is the material image feature input to the object detection head, f is the convolution operation, BN is batch normalization, and the superscript is the convolution kernel size.
[0091] 3) After obtaining the channel attention map Mc(F) and the spatial attention map Ms(F) of the material image features from the two attention branches, they are expanded to the same dimension through the broadcast mechanism, and then the weights are added to generate the 3D attention map M(F) of the material image features. Finally, the material image feature F of the input object detection head is multiplied element by element with M(F), and then added to F through the residual structure to obtain F', which is the reconstructed feature map of the material image features. The specific formula is:
[0092] M(F)=σ(Mc(F)+Ms(F))
[0093] Where σ is a sigmoid function, Mc(F) is the channel attention map of the material image feature, and Ms(F) is the spatial attention map of the material image feature.
[0094]
[0095] in represents element-wise multiplication, F′ is the reconstructed feature map of the material image feature, F is the material image feature input to the object detection head, and M(F) is the 3D attention map M(F) of the material image feature.
[0096] The above neural network is used for product defect detection and size recognition to detect unqualified products. Since the products in this embodiment are relatively delicate, the indicators for qualified products are relatively strict. Then, the flexible positioning group is used to pick up qualified products to prevent surface damage; the rigid positioning group is used to remove waste products to speed up work efficiency. In S4, according to the type of signal, the corresponding positioning group is selected to complete the picking.
[0097] When the controller and control module receive the material category information, they select different robotic arms to power on and wait. When the material reaches the predetermined position, a stop command is sent to the conveyor belt motor, and a material picking signal is sent to the robotic arm. Qualified products are classified, and unqualified products are discarded. When the robotic arm completes the material picking action and returns to the initial position, a running command is sent to the conveyor belt motor through the single-chip microcomputer to restore the conveyor belt to the material conveying state.
[0098] The embodiment of the present invention also provides a material detection and classification system based on an improved yolov8 network, including: an improvement module, which is used to add a GhostNetV2 network to the yolov8 model to replace the original model Backbone, and add a bottleneck attention module BAM before the object detection head module of the yolov8 model to obtain an improved yolov8 model;
[0099] The training module is used to obtain training images, training data sets of material defects, and input them into the improved yolov8 model to obtain a trained model;
[0100] The acquisition and detection module is used to collect images of materials on the assembly line, input them into the trained model, and output the detection results and classification signals;
[0101] The control module controls the corresponding positioning group to complete material picking according to the type of signal.
[0102] See also Figure 4 The embodiment of the present invention also provides a material detection and classification device based on the improved yolov8 network, including a visual recognition group, a rigid positioning group, a flexible positioning group and an assembly line. Among them:
[0103] The visual recognition group includes a camera for collecting images of materials on the assembly line; it includes a camera 1 and a camera frame 2. Preferably, an intel D435 camera is used to obtain images of objects on the assembly line. The camera 1 has the characteristics of high definition and high sensitivity, and can accurately capture objects on the assembly line, providing high-quality image input for the visual recognition module.
[0104] The rigid positioning group includes a high-precision first robot arm 3 and a rigid fixture 4. JAKAPRO5 is preferably used as the first robot arm 3 and ZIMMER HRC-03-100376 is used as the rigid fixture 4. JAKAPRO5 is arranged on both sides of the transport line for accurate positioning and grasping of rigid objects. The rigid positioning group can adapt to rigid objects of different sizes and weights, achieving high-precision and high-efficiency positioning and grasping.
[0105] The flexible positioning group includes a high-precision second robot arm 5 and a flexible clamp 6. JAKA PRO5 is preferably used as the second robot arm 5 and SFG-FTN-M1520 is used as the flexible clamp 6. JAKA PRO5 is arranged on both sides of the transport line to stably and safely grasp and position flexible objects. The flexible positioning group can adapt to flexible objects of different shapes and types, effectively improves the positioning accuracy and grasping stability, and ensures that no damage is caused to the object during operation.
[0106] The assembly line is a part of the mechanism involving the positioning device and the pressure sensor in the copper plate unloading and storage assembly line. The pressure sensor 8 is used to detect whether the object on the conveyor belt 7 has reached the predetermined position, and send the detection signal to the controller. The controller controls the state of the assembly line according to the signal to ensure the accurate positioning and grasping of the object.
[0107] And a controller, including one or more processors, is used to call and run a computer program from a memory to execute any of the above methods and control the rigid positioning group and the flexible positioning group to complete material picking and classification on the assembly line.
[0108] An embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the material detection and classification method as described in any of the above embodiments.
[0109] The memory in this embodiment may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a ROM (Read-Only Memory), a PROM (Programmable ROM), an EPROM (Erasable PROM), an EEPROM (Electrically EPROM), or a flash memory. The volatile memory may be a RAM (Random Access Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as SRAM (Static RAM), DRAM (Dynamic RAM), SDRAM (Synchronous DRAM), DDRSDRAM (Double Data Rate SDRAM), ESDRAM (Enhanced SDRAM), SLDRAM (Synchlink DRAM), and DRRAM (Direct Rambus RAM). The memory described herein is intended to include, but is not limited to, these and any other suitable types of memory. In some embodiments, the memory stores the following elements, upgrade packages, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system and an application.
[0110] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program includes various application programs, which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application program.
[0111] In the embodiment of the present invention, the processor calls a program or instruction stored in the memory, specifically, the program or instruction stored in the application program, and the processor is used for the method steps of the present invention.
[0112] The above describes the implementation mode of the present invention in conjunction with the drawings and embodiments. The embodiments do not constitute a limitation of the present invention. Those skilled in the art can make adjustments as needed. Various deformations or modifications within the scope of the attached claims are within the scope of protection.
Claims
1. A material detection and classification method based on improved yolov8 network, Features: S1, add GhostNetV2 network to the yolov8 model to replace the original model Backbone, add the bottleneck attention module BAM before the object detection head module of the yolov8 model to obtain the improved yolov8 model; S2, obtaining training images and training data sets of material defects; inputting the training data sets into the improved yolov8 model to obtain a trained model; S3, collect the image of the material to be tested, input it into the trained model, and output the test result and classification signal; S4, according to the type of signal, select the corresponding positioning group to complete the material picking.
2. The method according to claim 1, Features: S1 includes: S1.1: Based on YOLOv8, add GhostNetV2 network structure in Backbone; S1.2: Send the image features extracted by the GhostNetV2 network to the Neck end for feature fusion and input into the next result prediction module; S1.3: The BAM module is a change to the detection head; And / or, the BAM module has two branches: channel attention and spatial attention.
3. The method according to claim 1, Features: In S2, the material is a mesh electrode, and is marked as one or more defects of the whole sheet, crack defect, folding defect, wear defect and size deviation.
4. The method according to any one of claims 1 to 3, Features: In S3, the input material image feature X is sent to the Ghost branch and the ECANet branch to obtain the output feature Y and the attention map A respectively, and then the point multiplication is performed for detection and classification, and the detection result and classification signal are output.
5. The method according to claim 4, Features: In the ECANet branch, the input material image feature X is converted into the input Z of ECANet. The output of the material image feature is the dot product of the results of the two branches: O = Sigmoid(A)⊙v(X); Among them, A is the attention map of the input material image, v is the operation of the Ghost branch, and X is the material image feature of the input backbone network.
6. The method according to claim 1, 4 or 5, Features: In S3, the attention mechanism of the improved yolov8 network extracts and mixes the information of the input material image feature X through the channel attention branch and the spatial attention branch, outputs the optimized material image feature, and transmits it to the improved yolov8 neural network as input.
7. The method according to claim 5, Features: The channel attention branch optimizes the input material image feature F to obtain its channel attention map Mc(F), and the spatial attention branch optimizes the input material image feature F to obtain its spatial attention map Ms(F). They are expanded to the same dimension through the broadcast mechanism, and then the weights are added to generate the 3D attention map M(F) of the material image feature. Finally, the input material image feature F is multiplied element-by-element by M(F), and then added to F through the residual structure to obtain F′, which is the reconstructed feature map of the material image feature.
8. A material detection and classification system based on improved yolov8 network, Features include: Improved module, used to add GhostNetV2 network to yolov8 model to replace the original model Backbone, add bottleneck attention module BAM before the object detection head module of yolov8 model to obtain improved yolov8 model; The training module is used to obtain training images, training data sets of material defects, and input them into the improved yolov8 model to obtain a trained model; The acquisition and detection module is used to collect images of materials on the assembly line, input them into the trained model, and output the detection results and classification signals; The control module controls the corresponding positioning group to complete material picking according to the type of signal.
9. A material detection and classification device based on improved yolov8 network, Features: Visual recognition group, including a camera for collecting images of materials on the assembly line; rigid positioning group, including a robotic arm and a fixture; flexible positioning group, including a pneumatic gripper and an adsorption device; And a controller, including one or more processors, for calling and running a computer program from a memory to enable it to execute the method as described in any one of claims 1 to 7, and controlling the rigid positioning group and the flexible positioning group to complete material picking.
10. A storage medium containing computer executable instructions, It is characterized in that The computer executable instructions are used to perform the method according to any one of claims 1 to 7 when executed by a computer processor.
Citation Information
Cited By
Method, device, medium and equipment for detecting article containing flammable identifier
CN119964137A
Storage material state identification method, storage material state identification equipment and medium
CN120747842A
