Detection of dress code for anti-static equipment is an important management link in clean workshops. To address the issue of difficulty in deploying multi-scale dress code detection methods for anti-static equipment in embedded systems, a lightweight real-time detection method for dress code of anti-static equipment is proposed. This article uses the MobileNetV3-small backbone network to extract features of anti-static equipment, making the model lightweight and easy to deploy. Adopting BiFPN structure to enhance the feature fusion ability of anti-static equipment at multiple scales, and using CIoU Loss and DIoU-NMS to accurately locate anti-static equipment targets, and improving the problem of missed detection of anti-static equipment when people are crowded, and improving the accuracy of dress code detection for anti-static equipment. The experimental results show that the algorithm improves accuracy by 2.1%, reduces parameter count by 43.8%, and reduces model size by 40.6% compared to YOLOv5s. The recognition speed on the Jeston Xavier NX system is 27FPS, and the recognition accuracy of wearing anti-static hats, anti-static clothing, and anti-static shoes is 98. 1%, 96.2%, 95.8%, 94.2%, and 94.1%, respectively. It meets the requirements of real-time detection of anti-static equipment dress code.