Mike Walder - 25 May 2008 12:58 PM
Hello World!
I just managed to compile touchlib on OS X . The sampleapp crashes after running a few seconds (this has been discused in a other thread).
Since im working on a Mac Book Pro, touchlib uses my iSight camera. Is there some way of telling touchlib to use the USB camera I connected?
As I am just starting out, myself (don’t even have all the hardware to start my build yet) so I don’t know the precise answer but I can give you a place to start looking, at least.
First of all, as I understand things, camera coompatibility depends on opencv (on top of which touchlib is built). This page http://opencvlibrary.sourceforge.net/ lists some compatible cameras and for the Mac, it doesn’t look good (though I suspect that ANY firewire camera will work fine, USB seems to be another matter.)
With that said, you can change the source in the config.xml file. You’ll see something like this:
<cvcapture label="cvcapture0">
<source value="cam">
I think you should be able to change the “cam” value in the source tag to something else. I’m not sure what it would be in this case, though.
You might also want to look at this thread, which looks interesting: http://nuigroup.com/forums/viewthread/1534/.
It sounds like there are several people working on other OS X related projects (opentouch, Lux, etc)- I’m not sure how much collaboration is going on there. Nor am I sure what the state of touchlib development on OS X is, in the long term. As I understand things, though, any software that can detect and track blobs and that uses the TUIO protocol to send that information to applications should work fine with any apps written to work with touchlib (provided the apps themselves can be run on OS X, of course).