The invention discloses an automobile hexagonal anti-loosening fastening nut full appearance detection method and
system.The method comprises the steps of nut placement and lighting, to-be-detected image collection, detection model construction and nut defect detection, and in the nut placement and lighting step, fine lighting control is achieved through a multi-angle adjustable
light source system; the lamp bead combination, brightness and angle are adjusted, and a lighting
evaluation result is output; in the to-be-detected
image acquisition step, hexahedral images of a nut are acquired through a multi-camera
system, and detection blind areas are eliminated; in the detection model construction step, a training
data set is constructed based on a non-reflective area image, and a
deep learning model is optimized in combination with a lighting
evaluation result; in the nut defect detection step, real-time defect identification and standard exceeding judgment are realized through a defect detection model, and a lighting
evaluation result is associated to guarantee the detection reliability, so that the problem of
metal surface reflection interference is solved, full-dimensional, high-precision and high-stability nut appearance detection is realized, the detection requirements of nuts of multiple specifications are met, and the detection efficiency is improved. The efficient quality inspection requirement of an industrial
production line is met.