Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Distance between shapes

$
0
0
Hello~ Im still in the process of learning opencv. Here is my problem: ![image description](/upfiles/14960492622876235.png) I want to determine the distance between the center of the red box and the left corner of the black box. The red box positions wont change only the black ones changes. My goal here is to find the positions of the black box, the left red box would obtain the **X** distance while the bottom red box would obtain the **Y** distance. Can anyone give me tips and sample code to solve this problem?

Viewing all articles
Browse latest Browse all 2088

Trending Articles