For the low detection accuracy problem of small targets and low-contrast defects on the surface of latex gloves,an improved YOLOv(you only look once version)8n algorithm for defects detection on the surface of latex gloves is proposed.The receptive field attention convolution module is introduced in the feature extraction network to dynamically adjust the spatial feature weights within the receptive field,and to enhance the network's focus on defect features. The C2f module is redesigned based on the proposed multi-scale convolution,which captures the contextual information from shallow features through multi-scale convolutional kernels,and improves the network's ability to extract shallow features.The context and the spatial feature calibration network are added to the feature fusion network,where feature calibration refines and aligns contextual information and spatial features,and further enhances the representation of defect features.Experimental results show that on the homemade dataset,the mean average precision(mAP)of the improved algorithm reaches 93.2%,which is 3.1%higher than that of YOLOv8n.It effectively improves the surface defect detection accuracy of latex gloves.In addition,on the VisDrone2019Det and steel defect detection datasets,the mAP reaches 36.1%and 79.8%,respectively,which are 1.1%and 2.7%higher than that of YOLOv8n,and further verifies the effectiveness of the improved algorithm.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |