Abstract:In order to realize the non-contact inspection of mercury thermometer products in the assembly line, a kind of reading inspection system was designed. Images were acquired with line-scan digital camera based on the mechanical vehicle platform, the image was processed based on OpenCV open-source vision library, a kind of image algorithm based on template matching and longitudinal scanning for the endpoint lookup, thermometer reading was calculated through the interested points in the image, which are located in scale line and mercury lift side; The system can realize real-time inspection without external measuring instrument, which can effectively replace the traditional manual operation mode. The experimental results showed that the system has stable operation,good real-time performance and high precision, the measurement uncertainty is less than 0.1 ℃.