| Based on a practical engineering application,this paper studies and implements a machine vision-based automatic detection method for the relative deviation of the axis between two cylinders.The related results of this paper can also provide reference for other similar systems.For example,the coaxiality between transmission shafts is called centering automatic adjustment.In the assembly of the rotating shaft,it is very important to detect the coupling deviation between the two shafts,that is,whether the central axis is on the same straight line.Improving the accuracy of the two-axis alignment can reduce equipment damage and ensure the normal operation of the equipment.The shaft alignment detection and correction technology is of great value in industrial production.The current shaft alignment detection technology requires highly skilled personnel to implement it,and it has disadvantages such as low level of automated detection and difficulty in improving alignment accuracy.This paper proposes a method of shaft deviation detection based on machine vision combined with laser triangulation,which can realize non-contact and automatic detection of shaft deviation.At the same time,the measured axis deviation data is used to adjust the position of the axis,so that the two axes are aligned.In this paper,a cylinder is used as a rotation axis for detection,the distance between the cylinder and the camera plane is measured by machine vision and laser triangulation,and the slope of the cylinder is calculated by detecting the upper and lower edges of the cylinder.First,the measurement error brought by the imaging model of the camera is analyzed,and the influence of the best distance of the camera to collect the image and the placement of the camera and the laser on the detection accuracy is tested.A system for measuring and correcting the deviation between cylindrical shafts was designed,and the scheme was verified,which confirmed the feasibility of the scheme,the relative error of the test results reached expectations,and the accuracy of the test met the actual requirements. |