Object dimension measurement
问题 The following image is of a coin (for reference) and a pill. I need to measure the pill's dimensions. The objects are back-illuminated. I followed pyimagesearch.com tutorial for object height and width measurement. The coin has a diameter of 24.97 mm, and the actual dimensions of the pill are 9.43 mm x 19.33 mm. I am getting results with some error ranging from 0.5 mm to 2 mm. As mentioned on the website this is because of distortion and it is to be corrected. Can someone help me in