The concept is very similar to ThomasEgi’s headtracking demo. The preliminary demo can be viewed at:
Source code at:
It requires opencv version 1.1
Opencv version 1.1 python wrapper is on python 2.6, and the implementation is not very good. I use this one instead:
Basically the camclient3.py is based on the camshiftdemo, which locate the table-tennis racket and send the information to panda application through socket message.