It's well-known that this can be done, see Bradski (1998).
I lately saw it "in action" in a video provided by YouTube user "xathria". Looked promising.
What I do here is to apply a simple threshold (video width or height divided by 20) to the rectangle's centroid deviation from the window centre. The resulting 4 commands are dispatched via the MS SendInput API (VK_LEFT, VK_RIGHT, VK_UP, VK_DOWN).
Works better than expected, but I still prefer my keyboard.
References:
Bradski, G.R. (1998). Computer Vision Face Tracking For Use in a Perceptual User Interface. Intel Technology Journal Q2 '98.
Link to this comment:
All Comments (0)