To measure the diameter of the tip, We first use OpenCV to convert the original images into black-and-white images. After that, we then reduced the noise such as taint and reflection in the new pictures and did edge detection by adding a 3*3 elliptical shaped kernel and using several mor...