Research on the dimensional measurement method of double end milling processing of wooden windows based on machine vision
Wooden window is usually made from a wood or wood-based composite material as the main components.The precise dimension of a wooden window is a critical factor that determines the quality and functionality of the window.The window components should be accurately measured to ensure a proper fit within the window opening.This is crucial for functionality,preventing issues such as drafts,leaks,or difficulty in opening and closing.To address the limitations associated with traditional wood window double-end milling processing manual size measurements,such as the low pre-cision and low efficiency,the machine vision-based wood window double-end milling processing offers a technological solution to improve the size measurement accuracy and processing efficiency.This study proposed an object plane lifting method for the perspective effect caused by the thickness of wooden windows,in order to eliminate the error caused by perspective projection.Firstly,the image of the wooden window was grayed out,smoothed and denoised,enhanced and segmented to complete the image preprocessing,and the inner and outer contour regions of the wooden window were ex-tracted.The Canny operator was applied to the contour region to obtain the pixel-level contour of the wooden window.The optimized Zernike moment sub-pixel edge extraction algorithm was used to locate the pixel-level edges of the wood window more accurately and obtain the sub-pixel-level contour coordinates.The subpixel contour coordinates were fitted by the least squares method combined with the RANSAC algorithm to obtain the fitted contour and corner coordinates,and the wood window dimensions were calculated using the perspective correction model.The experiments utilized three types of rectangular wooden windows made of pine with the same thickness specifications but different sizes to measure the border dimensions and diagonal dimensions of their inner frames and outer frames respectively and compare them with the corresponding actual physical dimensions to validate the detection accuracy of the proposed method for measu-ring the dimensions of wooden windows.The results showed that the proposed method had an absolute error range of ±0.12 mm and a relative error of±0.1%compared with the actual physical dimensions,and had high efficiency and ac-curacy,which can meet the online dimensional inspection of wooden windows.