Tim Roth - 26 October 2007 01:40 AM
Hi Ulli,
so I installed libavg, and I really have no idea what to do now. I was looking for a simple tracker, that sends
data via osc to my flash clinet software. Is something like this even possible with libavg? Just tracking? Or do
you have to use libavg for the client side as well? I thought that loop arena used processing as a client, while libavg did
the tracking? If so, how did you send the data to processing?
It would be nice if you elaborate a little on libavg, because it sounds really nice for me as a mac user, and also my
di setup. I am basically looking for a mac compatible and fast tracking solution to replace touchlib…
thanks
libavg is meant to handle the client side as well, but there’s a small python module that will turn the libavg events into OSC messages. Then you can connect anything that understands OpenSoundControl. The scripts are available through this subversion url:
https://www.libavg.de/svn/trunk/avg_media/mtc/remote/
Starting remote.py brings up a screen that shows the fingers and hands detected. There’s a document here:
https://www.libavg.de/wiki/index.php/Tracker_Setup
that describes how to set up the tracker. The ip address and port to send the osc messages to are hardcoded in remote.py, so you’ll have to change them in the code.
We’ve had libavg running alongside a processing applications at 60 Hz on a mac mini. The tracking takes up one of the processor cores, so you have the second core left to do graphics.
I’ve meant to clean this part up for a while, particularly since we also have a cool calibration routine that’s thoughtfully hidden in one of the demo applications (https://www.libavg.de/svn/trunk/avg_media/mtc/videochooser2) . I’ll see what I can do about fixing that…