A vision-based detection method for bolt missing and loosening using the optimal hexagon rule is proposed. High-quality images are obtained through preprocessing operations such as perspective transformation and distortion correction. Based on the optimal hexagon rule, combined with a regional attention mechanism and a residual efficient layer aggregation network, a keypoint detection algorithm based on YOLOv26 is developed to precisely locate the six vertex coordinates of the head of standard hexagonal-head bolts. The Graham scan algorithm is adopted to obtain the convex hull of the circumcircle of the six bolt vertices. Taking the centroid of the convex hull as the center, the sum of deviations between the actual and estimated values of the six vertices is minimized. The Broyden-Fletcher-Goldfarb-Shanno (BFGS) quasi-Newton optimization algorithm is used to adjust the vertex coordinates and generate optimized regular hexagon vertex coordinates. By comparing the coordinate states of bolts, the rotation angle of the bolt can be calculated. Bolt joint rotation tests using 16-hole three-color bolt heads (gray, blue, and red) showed that within the loosening angle range of 0–60°, the absolute error of the identified bolt loosening angle ranged from -2° to 2°, with a maximum relative error of 8%, demonstrating that the proposed optimal hexagon method provided high detection accuracy and stability.
| 科 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 |