Finger stats questions (and a really basic Python TUIO script!)
Posted: 29 May 2008 04:19 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  49
Joined  2007-03-04

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.

Profile
 
 
Posted: 30 May 2008 11:55 AM   [ Ignore ]   [ # 1 ]
Jr. Member
RankRank
Total Posts:  49
Joined  2007-03-04

doh! there is another script called the same at http://code.google.com/p/pytuio/ ... reasonably well done and simple… no history considerations, though. has object tracking! i’ll rename my thing as soon as i finish some more layers of abstraction

Profile
 
 
Posted: 29 July 2008 04:43 PM   [ Ignore ]   [ # 2 ]
Jr. Member
Avatar
RankRank
Total Posts:  49
Joined  2008-05-06

That PointIR video was certainly interesting. Too bad they never released any source code from it…

Profile
 
 
Posted: 29 July 2008 04:45 PM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  49
Joined  2007-03-04

yeah i wish they had… oh well.. i’m sure i’m treading in the same waters somewhat… i hope to get some more updates on this soon… but as for now, there should be a somewhat generic script for tuio processing, and then a photo application that implements flickr tags, rotating, and zooming of arbitrary pictures from that flickr tag.

Profile