Hello~ Im still in the process of learning opencv.
Here is my problem:

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?
↧