Currently I have an algorithm using Python and OpenCV that detects geometrical shapes and calculates its length (without accuracy). But I need to make that detection within a specific area, in this case it would be inside a rectangle that I draw with the cv2.rect function but I have no idea how to do it and I couldn't find any information on how to do it on the internet. I am using python 3.7 and OpenCV 3 Can someone help me? Continue reading...