Testing TouchLib without a camera? 
Posted: 04 June 2007 08:51 PM   [ Ignore ]
New Member
Rank
Total Posts:  76
Joined  2007-03-27

Now I’m planning to make a table based on TouchLib, but before I start anything I would really prefer to test that the software works properly before building anything. Is there a way to test the software’s functionality with a mouse?

 Signature 

Worlds youngest in the multitouch field of research. See my blog.

Profile
 
 
Posted: 04 June 2007 10:34 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  88
Joined  2007-04-28

Hey Mammoth,

I am stuck in the same boat as you are. But I don’t have all of TouchLib working yet, only configapp and sampleapp. It seems to me that TouchLib needs to register multiple points, not just one point from your mouse.

Profile
 
 
Posted: 05 June 2007 03:24 AM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  12
Joined  2007-06-01

The sample app can use an AVI as the source of input for testing purposes.  There are sample movies in the tests/ directory, and XML config files in the bin/ directory.  Copy one of the AVI XML’s over config.xml and then run sampleapp.  You seem to have to move the mouse over the window to get it to start, or maybe its looking for a keypress, I’ve not looked at the code.

You could modify sampleapp to use mouse input (mouse down = finger down, mouse move = finger update, mouse up = finger up) if required, but you’ll only be able to test single blobs.  My plan was to test first with the supplied AVI’s and see if there was any obvious mods to the code for speed or accuracy, as these are nice canned examples to benchmark against.  Then for ease I’m probably going to do some backlight IR onto glass before I consider building an FTIR table.

Profile
 
 
Posted: 05 June 2007 03:51 AM   [ Ignore ]   [ # 3 ]
Jr. Member
Avatar
RankRank
Total Posts:  114
Joined  2007-03-15

I have recently found the best solution for this. Basicly you install some software that installs fake webcam drivers then you select an AVI file and the software plays it through the fake webcam. Then all you do is select the fake webcam from your input device list in VVVV or touchlib.

Here are links to help you get started…

FakeCam
http://www.fakewebcam.com/

VirtualCamera
http://www.soundmorning.com/

Then download some test avi files from here…
http://touchlib.googlecode.com/svn/multitouch/tests/

If someone could create and upload more test avi files that would be helpful for those of us unable to bring their entire rig to work smile

Profile
 
 
Posted: 07 June 2007 05:44 AM   [ Ignore ]   [ # 4 ]
Jr. Member
Avatar
RankRank
Total Posts:  114
Joined  2007-03-15

Scrap those 2, ive found a better one…

http://www.webcammax.com/en/index.php

Profile
 
 
Posted: 07 June 2007 03:40 PM   [ Ignore ]   [ # 5 ]
Administrator
RankRank
Total Posts:  114
Joined  2006-11-09

dandm is right, if you are using touchlib just use the provided config files and you can test with whatever avi you want (no need to install a special webcam driver).

Profile
 
 
Posted: 10 June 2007 11:02 PM   [ Ignore ]   [ # 6 ]
New Member
Rank
Total Posts:  76
Joined  2007-03-27
WhiteNoiz - 07 June 2007 03:40 PM

dandm is right, if you are using touchlib just use the provided config files and you can test with whatever avi you want (no need to install a special webcam driver).

How stupid of I to read over the compiling instructions a hundred times and not remember the testapp stuff. rasberry

 Signature 

Worlds youngest in the multitouch field of research. See my blog.

Profile
 
 
Posted: 12 June 2007 12:18 AM   [ Ignore ]   [ # 7 ]
Administrator
RankRank
Total Posts:  185
Joined  2007-06-12

I’m got a sheet hanging over an open box with a camera in the back.  I then use flashlights to test the software.

Profile