WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-16-2008, 05:30 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Arrington Plugin

Hello,

I am trying to interface an Arrington Eye Tracker with the Vizard platform. When I am trying to access the tracker data by using

import vpx
point = vpx.getSmoothedGazePoint()

I am getting this error

import vpx
ImportError: DLL load failed: The specified module could not be found.


I have seen that my vizard\bin file has the vpx.dll.

If anyone can suggest me something, it would be really helpful to me.

Thanks

Uttama
Reply With Quote
  #2  
Old 07-17-2008, 07:40 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Another thing I forgot to mention. Presently I am running both the applications on the same PC.

Thanks

Uttama
Reply With Quote
  #3  
Old 07-17-2008, 11:45 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Which version of the Arrington Eye ViewPoint software are you running? Also, is the ViewPoint folder on your system path. The vpx plug-in depends on some DLLs that are in the ViewPoint folder. So either that folder must be on the system path, or your script has to be run from inside that folder.
Reply With Quote
  #4  
Old 07-17-2008, 11:53 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello Farshizzo,

The Viewpoint version I am running is ViewPoint(2.8.4 beta L4 437B). The Viewpoint.exe is in the Viewpoint Folder. It is running fine.

The vpx.dll folder which I have downloaded from the Worldviz Downloads section is in Vizard\bin\dll folder.

I have also tried loading the vpx.dll in the ViewPoint folder. It did not work.
Again, I loaded the vpx.dll in the folder where I my vizard program .py is. Still it gives the same error.

Thanks in advance for your time. I am not being able to solve this...your suggestions would be really valuable.

Thanks

Uttama
Reply With Quote
  #5  
Old 07-17-2008, 01:50 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello Farshizzo,

Your suggestions are always great!! Yes, now I have copied my .py file and the vpx.dll into the ViewPoint folder and now the error does not appear again.

But, it seems, I am getting the x and y coordinates and that too of one eye. I want to access those for the other eye (as I am using a binocular system) and also the ROI and other parameters.

point = vpx.getSmoothedGazePoint()

gives x,y coordinates and that too for one eye.

If you can suggest me some ways to access the other data as well.

Thanks

Uttama
Reply With Quote
  #6  
Old 07-17-2008, 04:02 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

I am finding no commands explicitly mentioned for Arrington Tracker in the Help menu.

From the downloads page, I got only,

import vpx
point = vpx.getSmoothedGazePoint()

The Help file alongwith Vizard package also does not show these.

Thanks

Uttama
Reply With Quote
  #7  
Old 07-21-2008, 11:37 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The vpx plugin only supports getting the gaze point of one eye. You could use the ctypes module to manually access the function of the Arrington Viewpoint API. What specific functions do you need, other than getting the gaze point of both eyes?
Reply With Quote
  #8  
Old 07-21-2008, 12:34 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

At present, I want to access the Pupil Width (APW and BPW), Quality of eye movement data (AQU and BQU), Fixation Duration (AFX and BFX) and the x,y gaze direction coordinates (ALX, ALY and BLX, BLY) for both the eyes.

Thanks for your patient help.

Uttama
Reply With Quote
  #9  
Old 07-22-2008, 04:07 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Actually, I would be carrying out some psychological experiments using the Arrington eye tracker. So, Pupil Width (APW and BPW), Quality of eye movement data (AQU and BQU)-if possible, Fixation Duration (AFX and BFX) and the x,y gaze direction coordinates (ALX, ALY and BLX, BLY) for both the eyes would be required.

I was looking for the ctypes in the Vizard help menu. I could not find sustantial amount of information regarding ctypes. So, any help in using ctypes would be really appreciated.

Thanks in advance for valuable suggestions.

Uttama
Reply With Quote
  #10  
Old 07-25-2008, 01:31 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
ctypes is 3rd party plugin for Python. You can find a tutorial for the plugin here:
http://python.net/crew/theller/ctypes/tutorial.html
Reply With Quote
  #11  
Old 07-28-2008, 10:24 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Thanks for the suggestion. I have downloaded the ctypes.

When, I am writing:

from ctypes import *

There occurs no error.

The tutorial says....

libc = cdll.msvcrt
libc.printf

I am getting <_FuncPtr object at 0x00B80B70>

So, in my case....do I use.....?

vpx = ......msvcrt
vpx.printf

Any suggestions.....actually, I want to access vpx.dll and insert the other features such as coordinates of both the eye gazes...I hope my question is clear...

In fact, I am little confused regarding the approach to be used.....and not sure whether I am going the correct way.

Any suggestions would be really appreciated.

Thanks for giving your valuable time.
Reply With Quote
  #12  
Old 07-31-2008, 07:10 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Any further suggestion regarding ctypes would be really appreciated. I have given my problem...in the last posting.

If required, I will clarify further.

Thanks

Uttama
Reply With Quote
  #13  
Old 07-31-2008, 05:21 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I'm not very familiar with ctypes, so I cannot help you that much. I think the important thing is that you are using the correct function name. In your example, you are using printf, which is not a function exported by the vpx.dll
Reply With Quote
  #14  
Old 08-18-2008, 02:58 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Sorry for the delay in replying.

How do I know which are allowed and which are not allowed in vpx.dl? Like...printf is not allowed in vpx.dll.

It would be really good, if I have the .cpp or .c file corresponding to the vpx.dll, so that I can put some thinking how to modify it so as to incorporate the tracking of the other eye?

Thanks

Uttama
Reply With Quote
  #15  
Old 08-19-2008, 09:53 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to obtain the vpx API from Arrington, which will contain a header file defining all the functions exported by the dll.
Reply With Quote
  #16  
Old 01-22-2014, 09:12 PM
kpraveen kpraveen is offline
Member
 
Join Date: Oct 2013
Posts: 3
I am trying to interface the Arrington eye tracker with the vizard platform and try to get the gaze point values in real time.
When i run the program there is no error but it does not show the gaze point in real time too.Hereby,i will send you my program and the following command i am getting.

Program:

from ctypes import *
import viz
import os
import sys
import vpx
viz.go()
point=vpx.getSmoothedGazePoint()
print 'point'
print point

Command:

********************************
** Loading arrington.py
**********************************
point
(0.0, 0.0)
** Load Time: 0.22 seconds

kindly,help me out to get the data's in real time and for your information i have downloaded vpx.dll from the hardware support section of worldviz and saved it in the working vizard directory and all the files are saved in ViewPoint 2.9.2.5 directory and i am using windows xp 32-bit system.

if anyone can suggest me the way of getting the data's in real time and it is really helpful for me.
Reply With Quote
  #17  
Old 01-23-2014, 08:57 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
Use the arrington plug-in to get gaze point data.
Code:
import viz
import vizact
viz.go()

#Create arrington extension 
arrington = viz.add('arrington.dle')

#Connect to eye tracker
tracker = arrington.addEyeTracker()

def printData():
	#Print smoothed gaze position (default)
	print tracker.getPosition()
	#Print raw gaze position
	print tracker.getPosition(arrington.RAW)

vizact.onupdate(0,printData)
Reply With Quote
  #18  
Old 01-23-2014, 09:36 PM
kpraveen kpraveen is offline
Member
 
Join Date: Oct 2013
Posts: 3
Thank you for your reply Jeff,

I executed the code which is in Arrington plug-in and also send by you and getting the following command...

[0.0, 1.0, 0.0]
[0.0, 1.0, 0.0]
[0.0, 1.0, 0.0]
[0.0, 1.0, 0.0]
[0.0, 1.0, 0.0]
[0.0, 1.0, 0.0].........it is continuously going on and unable to get the real time value of Gaze point.

so,give me suggestions to get the value in real time.Thank you for spending time to solve my issue.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Vizard Sensor Plugin farshizzo Plug-in development 25 08-01-2019 12:24 AM
Live Characters plugin Frank Verberne Vizard 7 03-01-2012 02:23 AM
Vicon Plugin Micheal Plug-in development 2 08-29-2007 03:03 AM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM
Shooting Star Plugin duda Vizard 3 03-14-2005 11:52 AM


All times are GMT -7. The time now is 07:44 AM.


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