WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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
  #2  
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
  #3  
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
  #4  
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
  #5  
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
  #6  
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
Reply


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 05:18 AM.


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