WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-21-2005, 03:26 PM
VAmanda VAmanda is offline
Member
 
Join Date: Sep 2005
Posts: 12
tracking head rotation orientation

is there a way to track head rotation to see if a subject is nodding (rotating in x) or shaking (rotating in y)? our idea right now is to keep the last 20 rotation values in a list and then do some sort of comparison between these values to determine how the head is moving. is there a better way to track nodding or shaking behavior?
Reply With Quote
  #2  
Old 09-21-2005, 04:43 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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
Attached Files
File Type: zip nodshakedetector.zip (1.1 KB, 2279 views)
Reply With Quote
  #3  
Old 09-21-2005, 05:24 PM
VAmanda VAmanda is offline
Member
 
Join Date: Sep 2005
Posts: 12
Thanks for the example code...it seems like it's exactly what we needed. Unfortunately, when we try to run it, it's coming up with an error in the vizmotion.py script on line 8, which is:

HEAD_MOTION_EVENT = viz.eventid('HeadMotionDetectorEvent')

The error reads:

AttributeError: 'module' object has no attribute 'eventid'

Is there something we're doing wrong? Thanks for your help.
Reply With Quote
  #4  
Old 09-21-2005, 05:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You will need version 2.53f or above to use this script. Which version do you have? If you do not want to update to the latest version then I can modify the script to work with your version.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC