| Measuring the geometric shape of parts and the geometric dimensions of products has always been an important means to ensure product quality.With the implementation of "Made in China2025",automated production lines and intelligent workshops have gradually entered major domestic manufacturing enterprises.At the same time,measurement methods based on machine vision technology have also received increasing attention.In the process of notebook computer production,there is a large deviation in measuring and correcting the clearance of notebook computer shell by manual method,which leads to poor product consistency.This thesis designs a set of automatic adjustment system of notebook computer shell clearance based on machine vision.This thesis analyzes and studies the application of machine vision measurement technology and PLC control technology in the automatic adjustment system of notebook computer shell clearance.The main research contents are as follows :Research on lighting systems,image acquisition systems,and computer digital image processing algorithms for machine vision measurement systems.By analyzing the characteristics of different color light sources and combining with the characteristics of the area of interest for size measurement,the lighting scheme was developed and the hardware equipment selection of the image acquisition system was completed,and the measurement testing platform was built.A set of image processing algorithms for measuring the gap between notebook computer shells has been designed to meet the measurement requirements.By analyzing and comparing the effects of different edge detection algorithms,an improved Canny algorithm is designed to measure the gap of the laptop case,which solves the image edge blurring problem in the image smoothing process,improves the edge extraction accuracy of the edge detection algorithm.The method improves the overall operation speed of the edge detection algorithm and shortens the image processing time.On this basis,the extracted edge pixel points are fitted to a straight line by least squares method,and the average pixel distance between two straight lines is calculated.By analyzing the relationship between the camera imaging model and the coordinate system,the camera is calibrated to obtain the relationship between the image pixel size and the real physical size,which provides the accurate measurement of the size.Design an automatic adjustment control system with PLC as the control core.By analyzing the system control requirements,determining the control scheme and defining the control flow,and considering factors such as control accuracy and device cost,complete the selection of hardware equipment for the control system.Design system electrical schematic diagram,PLC program flowchart,and HMI program according to the control requirements of each device.Based on the established hardware platform and the use of software such as MATLAB,measurement and adjustment experiments were conducted on laptops in production on the production line.The measurement error was within 0.08 mm,and the retest yield after adjustment was 99.2%,meeting the automatic measurement and adjustment requirements of laptop shell gaps.The experimental results indicate that the automatic adjustment system for laptop shell gap designed in this paper can achieve low-cost and high-precision measurement and adjustment of laptop shell gap,which has high theoretical research significance and practical application value. |