Well, other than a dumbass bug in my code, it worked!
So let me explain - here I'm using the Raspberry running Python under Linux. It has a camera pointed at a picture of Scruffy on the wall. The purple box is the eyeball. It starts out perfectly centered in the image. Then I tell it to find Scruffy's face, I want the center of the purple box to be exactly on Scruffy's upper lip.
You can see it worked, the vertical part worked perfectly but I forgot to add w/2 to the left side of the box. I got lazy cause I wanted something working, so now I have to go back and properly align the centers and add half the height and width and etc etc.
The pic of Scruffy is from the Stanford dog database, it's a standardized training set for machine learning.
At this point the motor is still disconnected from the Raspberry, I'm just getting the control loop to work. Next week I'll have the motor connected and then we can try some movies.
So let me explain - here I'm using the Raspberry running Python under Linux. It has a camera pointed at a picture of Scruffy on the wall. The purple box is the eyeball. It starts out perfectly centered in the image. Then I tell it to find Scruffy's face, I want the center of the purple box to be exactly on Scruffy's upper lip.
You can see it worked, the vertical part worked perfectly but I forgot to add w/2 to the left side of the box. I got lazy cause I wanted something working, so now I have to go back and properly align the centers and add half the height and width and etc etc.
The pic of Scruffy is from the Stanford dog database, it's a standardized training set for machine learning.
At this point the motor is still disconnected from the Raspberry, I'm just getting the control loop to work. Next week I'll have the motor connected and then we can try some movies.

Seriously, the forum keeps me honest, I have to post work product on a regular basis. If I get bored (which happens frequently) the work has to continue.