The optical inspection equipment based on nut defects (line online inspection equipment) mainly uses machine vision technology to realize the automatic and high-precision inspection of nuts on the production line. This equipment can identify and judge whether there is a nut missing, dislocation, appearance defects (such as defects, scratches, dents, color abnormalities, etc.) and other problems, so as to ensure product quality and production efficiency.