There’s a multitouch system called PointIR but so far those people haven’t published any code that I can find, and they are certainly using every library under the sun. Also, they use numpy, and other fast-C like hacks, and that seems to be the norm…
I’ve managed to build some working things on top of this script:
http://winningham.googlepages.com/pyTUIO.py
Requires liblo, mostly working on Ubuntu, but I can’t get liblo compiled on Win32 (ming, feh) or else I’m sure it’d probably work there. This is mostly array munging.
... but mostly I have been reinventing the wheel, as it were, of the various things that the ActionScript in the Touchlib library. I was wondering if any other Pythonistas had any comments, or if this helps out at all…
Also:
1. How much history of a finger do you want to keep?
2. We need to be both maintaining an internal state of all fingers, their histories, as well as being event driven and see each new event in the context of those histories?
3. X,Y is pretty easily yanked from TUIO, but I noticed the availability of other messages is somewhat up to the implementer of each piece… and do these extra things really help? Like, motion vector, rotation vector? I’m not sure touchlib’s OSC executable spouts those kinds of messages, and how would they be helpful anyway?
4. Is this script the right direction? Is anyone excited about making an open project wrt to Python?
Thank you all for your comments / ideas ... this is a really great forum. I wanted to share at least this little bit because I couldn’t find much else on the topic wrt python source code at moment.
