View Single Post
Old 09-21-2005, 03:43 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

I've attached a sample script that can detect head nods and shakes. The attached zip file contains two files. The file is a python module that contains the code for detecting head nods and shakes. The file 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
Attached Files
File Type: zip (1.1 KB, 823 views)
Reply With Quote