Hi,
I've attached a sample script that can detect head nods and shakes. The attached zip file contains two files. The file vizmotion.py is a python module that contains the code for detecting head nods and shakes. The file testNodDetection.py is a test script which shows how to use the module. The test script will connect to an intersense and print out when the head motion has changed state. There are currently 3 states:
vizmotion.HEAD_NODDING - head moving up/down
vizmotion.HEAD_SHAKING - head moving left/right
vizmotion.HEAD_NEUTRAL - head not moving
Let me know if this doesn't help
|