| The gear studied in this paper is a new type of gear with a spiral of logarithmic spiral.The machine vision method is used to splicing the gear image to obtain a complete gear image,so that the image contains as much information as possible.The machine vision method has many advantages over the general method,which is non-contact,fast,and efficient.In order to facilitate the testing and measurement of various aspects of the gear in the future,it is necessary to first obtain a complete and high quality gear image.This paper uses the machine vision method,selects the appropriate hardware,establishes the measurement system to obtain multiple partial images of the gears,and then preprocesses the image,and then uses the corresponding operator to splicing the preprocessed image to obtain the final image.Finally,this The code export of several parts of the function is integrated into the software of your own design.The main research contents of this paper are as follows:(1)For the overall structural design of the machine vision system,use the selected CCD camera,camera,and image acquisition card to build the hardware platform,and choose Halcon and VS2015 to establish a software platform to facilitate subsequent image processing and software interface design.(2)The hardware system performs calibration to eliminate distortion,and performs pre-processing operations on the acquired gear image to improve image quality.Preventing noise,distortion and other factors affect the image accuracy of splicing.(3)The processed image needs to use the operator in the software for image registration.This paper compares two different registration schemes,and finally uses the Harris operator to complete the image registration.The RANSAC algorithm is used to remove the mismatched points,improve the matching accuracy,and then perform image fusion to complete the splicing operation on the image.(4)Export the code written in the previous steps from Halcon,insert it into the corresponding location,and complete the development of each functional module of the software.Finally,the software interface design,the entire splicing system design is completed. |