Measuring apparent length of object (in pixels) using OpenCV
问题 I have used blender to render different images of my 3D object from different angles/poses. The object has colored edges (as shown in the image). Now, I aim to measure the length of the orange and blue edge ( Lo and Lb ) in pixels, using OpenCV. Had the edge been made of a single pixel (i.e., a line made of a single edge), it would be an easy task. But, this is not the case here. Any help is appreciated. 回答1: Here is one way in Python OpenCV. - Read the input - Threshold on one of the colors