图像处理是尺寸检测算法的关键技术之一。本文主要讨论动态图像的处理与显示,完成运动物体的实时图像处理。首先,为使图像更接近实际物体,对运动物体的图像进行中值滤波、增益校正、图像分割与二值化、角点检测和边缘拟合处理,同时将处理完成的图像实时显示出来,便于图像分析、理解和识别并减少计算量。最后,利用VC++编制人机交互界面,实现数字逻辑变换以及物体图像处理与实时显示。实验证明,本文提出的算法和软件的设计具有良好的实时性、精确性,能够满足工业需求。
Real-time detection for object size has now become a hot topic in the testing field and image processing is the core algorithm. This paper focuses on the processing and display of the collected dynamic images to achieve a real-time image pro- cessing for the moving objects. Firstly, the median filtering, gain calibration, image segmentation, image binarization, cor- ner detection and edge fitting are employed to process the images of the moving objects to make the image close to the real object. Then, the processed images are simultaneously displayed on a real-time basis to make it easier to analyze, understand and identify them, and thus it reduces the computation complexity. Finally, human-computer interaction (HCI)-friendly in- terface based on VC ++ is designed to accomplish the digital logic transform, image processing and real-time display of the objects. The experiment shows that the proposed algorithm and software design have better real-time performance and accu- racy which can meet the industrial needs.