An online inspection method based on machine vision was proposed and validated to address the issues of high work intensity, low efficiency, low accuracy, and risk of missed inspection in traditional sampling methods for screw threads of rebar head. Firstly, an industrial camera was used to capture real-time images of the processed rebar thread heads, preprocess the images, and locate the target positions in the images to reduce the complexity and running time of subsequent algorithms. Then, the Canny operator was used to roughly extract the edge feature information of the rebar head, and the Shi–Tomasi algorithm was used for corner inspection to achieve precise optimization of sub-pixel level corners. Based on robust linear regression, the diagonal points were fitted with lines to detect the corresponding size parameters. Finally, an inspection system on screw threads of rebar head parameter was designed and developed, which consisted of an image-acquisition device, Siemens PLC controller, and inspection software. Test results show that this method can achieve online inspection without contact, with inspection accuracy reaching the micrometer level, and 8–10 rebar heads can be inspected per second.
Read full abstract