Another Java blob tracker
Posted: 13 May 2007 06:07 AM   [ Ignore ]
Rank
Joined  2007-01-26
Total Posts:  18
New Member

Here’s a first version for another webcam blob tracker in Java. It exports blobs as AWT Polygons and/or Areas (it detects dark spots in the blobs and extracts them).

I am planning on expanding it with shape, gesture and handwriting detection and interaction with Windows. For now, it’s just a nice example for when you want to develop your own multitouch code and it’s a lot more comprehensible than the other libraries.

There is a delay when there are lots of blobs, but that’s because of the Polygon drawing code, not the detection itself. The algorithm appears to be optimal for multitouch (although the implementation would of course be faster in machine code). It finds a transition from dark to bright or vice versa and walks around the blob in a clockwise fashion while gathering the coordinates of the edge. There is no CPU intensive blur involved to soften the edges; instead, pixels with 3 dark surrounding pixels are ignored.

You need Java 5 and JMF installed.

Image Attachments
screen1.jpgscreen2.jpg
File Attachments
multitouch.zip  (File Size: 7KB - Downloads: 132)
Profile
 
 
Posted: 13 May 2007 08:45 AM   [ Ignore ]   [ # 1 ]
RankRankRankRank
Joined  2007-01-08
Total Posts:  1008
Member

looks nice, glad ur still alive, thought u were dead after not hearing from you for a while and no updates on the lumenlab forum about ur screen

Profile
 
 
Posted: 13 May 2007 04:07 PM   [ Ignore ]   [ # 2 ]
Rank
Joined  2007-01-26
Total Posts:  18
New Member

Here’s an extension with primitive cursor & window movement support (for testing/demonstration purposes).

File Attachments
multitouch_cursors.zip  (File Size: 5KB - Downloads: 138)
Profile
 
 
Posted: 14 May 2007 03:28 AM   [ Ignore ]   [ # 3 ]
RankRankRankRank
Joined  2007-01-08
Total Posts:  1008
Member

thanks, will check it lateron

Profile
 
 
   
 
 
‹‹ Touch Tracer v0.1      Multiple cameras? ››