Abstract
This system mainly uses USB camera samples the image of screwdriver. Then, it will detect the edge of the image to extract the outline of the screwdriver. Finally, it will measure the outline to get the screwdriver’s diameter.
The system uses OpenCV reading and writing functions of OpenCV to capture USB camera, and collects sampleing image of screwdriver. After which it convers the image collected by USB camera to grayscale, that is turning 24-bit true color picture into 8-bit grayscale picture. Then the system will process the grayscale picture by canny edge detection so as to get a clear, complete outline of the driver and calculate the diameter of the screwdriver which is measured by pixels. Next step is Re-calibrateing the camera to find the corresponding inch to eatch pixel,by which ,Finally,it can get the actual diameter, and show it to the user. The system also can support the specified location detection, calculating average diameter and the function of preservation the measuring result. Several tests has shown that the system has high accuracy and reliability.
Keywords: Edge Detection;OpenCV;Image Processing