How to Get coordinates of detected area in opencv using python
I suppose you have the coordinates for the bounding boxes of both eyes.
Something like X1:X2 Y1:Y2 for both boxes.
You just have to find the center of these boxes: (X2-X1)/2+X1 and (Y2-Y1)/2+Y1
You'll get two XY coordinates from this, basically just do the above again with these coordinates, and you'll get the center point
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