How to Get coordinates of detected area in opencv using python
So you already detected the eye? You also have a bounding box around the eye?
So your question comes down to calculatiing the distance between 2 bounding boxes and then dividing it by 2?
Or do I misunderstand?
If you need exact the center between the two eyes a good way to go about that would be to take the center of the 2 boxes bounding the 2 eyes.
Calculate the distance between those two points and divide it by 2.
If you're willing to post your code I'm willing to help more with writing code.
I have been able to successfully detect an object(face and eye) using haar cascade classifier in python using opencv. When the object is detected, a rectangle is shown around the object. I want to get coordinates of mid point of the two eyes. and want to store them in a array. Can any one help me? how can i do this. any guide