I was having major problems compiling TouchLib for Mac, so I took the advice of some here and took a look at LibAVG as an alternative for DI touch tracking.
I’m following the instructions here: https://www.libavg.de/wiki/index.php/Using_libavg_as_a_Tracking_Library on a Mac running OSX 10.4.11 with a Unibrain Fire-I Board camera. However I’m running into a problem.
If I don’t set the AVG_REMOTE_HOST and AVG_REMOTE_PORT variables then I can run remote.py no problem. The window displaying the results through various filters works fine and the terminals window scrolls through details of events it’s detecting. However once I go ahead and set those two environment variables to the values suggested in the instructions remote.py crashes seconds after I start it with the following output:
...
[08-01-28 12:27:36.176] PROFILE: Total frames: 356
[08-01-28 12:27:36.176] PROFILE: Total time: 6.26 seconds
[08-01-28 12:27:36.176] PROFILE: Framerate achieved: 57.0288
[08-01-28 12:27:36.176] PROFILE: Frames too late: 9
[08-01-28 12:27:36.176] PROFILE: Percent of time spent waiting: 96.0224
[08-01-28 12:27:36.176] PROFILE: Framerate goal was: 60
Traceback (most recent call last):
File "./remote.py", line 108, in ?
Player.play()
File "./remote.py", line 31, in onTouch
int(Event.majoraxis[0]), int(Event.majoraxis[1]),
AttributeError: 'TouchEvent' object has no attribute 'majoraxis'
[08-01-28 12:27:36.231] EVENTS: Spurious blob suppressed.
[08-01-28 12:27:36.231] EVENTS: Spurious blob suppressed.
...
If anyone out there with LibAVG/Python experience has suggestions they would be much appreciated.
Thanks, Patrick
