Touchlib OS X / Config app crashing / Camera select
Posted: 25 May 2008 12:58 PM   [ Ignore ]
New Member
Rank
Total Posts:  5
Joined  2008-05-25

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?

Profile
 
 
Posted: 25 May 2008 09:42 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  6
Joined  2008-05-22
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).

Profile
 
 
Posted: 26 May 2008 10:44 AM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  5
Joined  2008-05-25

Thanks a lot for the link. I will have a look in to it. I just got the carboard multitouch thingy running on Windows during the lunch break (stunned all of my coworkers grin). Seems like the mac version is not as stable at the moment.....

Prallels currently seems to have some issues with USB cameras, so Bootcamp is the only solution.

Those of you having trouble getting opencv to compile under OS X:

Check out the source as mentioned in the wiki, also install the required libraries via fink:

http://nuigroup.com/wiki/Installing_OpenCV_on_Mac_OS_X/

If you run in to this error:

cvcap_qt.cpp:1145warningunused variable 'status'
cvcap_qt.cppIn member function 'virtual bool CvCapture_QT_Cam_CPP::open(int)':
cvcap_qt.cpp:1501error'icvCaptureFromCam_QT' was not declared in this scope
cvcap_qt
.cppAt global scope:
cvcap_qt.cpp:587warning'CvCapture_QT_Cam* icvCaptureFromCAM_QT(int)' defined but not used
make[3]
: *** [cvcap_qt.lo] Error 1
make[2]
: *** [all-recursive] Error 1
make[1]
: *** [all-recursive] Error 1
make
: *** [all] Error 2

do the following:

Open the file otherlibs/highgui/cvcap_qt.cpp in a editor of your choice.

Go to line: 1501

replace:

captureQT icvCaptureFromCam_QTindex );

with:

captureQT icvCaptureFromCAM_QTindex );

recompile and you are done…

Profile
 
 
Posted: 26 May 2008 02:47 PM   [ Ignore ]   [ # 3 ]
New Member
Avatar
Rank
Total Posts:  29
Joined  2008-05-15

about drivers for touchlib ??

i want to know where is the driver for blob recognition and is open source??

rasberry

i want to set this totally on my mac

 Signature 

DAEMON IS’NT A DIGIMON ¬¬

Profile
 
 
Posted: 26 May 2008 03:20 PM   [ Ignore ]   [ # 4 ]
New Member
Rank
Total Posts:  88
Joined  2008-05-17

I’m getting a different error, I’ve tried installing external libraries through fink and darwinports, but I keep getting the same or similar error, even after changing captureQT

this one came after removing and reinstalling fink, then installing the libraries with fink commander, then adjusting cvcap_qt.cpp, then ../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" , make , sudo make install

powerpc-apple-darwin8-g++-4.0.1: @UNICAP_PACKAGE_CFLAGS@: No such file or directory
powerpc
-apple-darwin8-g++-4.0.1: @UCIL_PACKAGE_CFLAGS@: No such file or directory
make[3]
: *** [dummy.lo] Error 1
make[2]
: *** [all-recursive] Error 1
make[1]
: *** [all-recursive] Error 1
make
: *** [all] Error 2

Thanks.

 Signature 

Nuigroup wiki

Profile
 
 
Posted: 26 May 2008 05:31 PM   [ Ignore ]   [ # 5 ]
New Member
Rank
Total Posts:  88
Joined  2008-05-17

finally - opencv compiled/install on tiger (ppc)

i tried through darwinports again, this time it worked. if you are having troubles let me know where and I might be able to retrace my steps.

touchlib is compiling..., will post back if it’s successful

 Signature 

Nuigroup wiki

Profile
 
 
Posted: 26 May 2008 07:46 PM   [ Ignore ]   [ # 6 ]
New Member
Rank
Total Posts:  88
Joined  2008-05-17

touchlib compiles, configapp crashes after a few seconds, but I didn’t make any changes to touchlib to get it to compile.

 Signature 

Nuigroup wiki

Profile
 
 
Posted: 08 August 2008 11:15 AM   [ Ignore ]   [ # 7 ]
New Member
Rank
Total Posts:  2
Joined  2008-08-08

Hello…

I’ve been trying to install opencv as this site is suggesting.....
http://nuigroup.com/wiki/Installing_Touchlib_on_Mac_OS_X/

I’m stuck in opencv installation.
First, i tried with macports however I keep getting an error saying “configure: error: IJG JPEG library not found at /opt/local/lib”

I moved onto the second way and now im getting
make[3]: *** [_cv_la-_cv.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

at the end of make.

If anyone’s still around, could you help me!?
I appreciate any suggestions or sharing.

Profile
 
 
Posted: 10 September 2008 11:17 AM   [ Ignore ]   [ # 8 ]
New Member
Rank
Total Posts:  3
Joined  2008-07-07

Did you ever figure out how to fix that error?

Profile
 
 
Posted: 30 September 2008 02:18 AM   [ Ignore ]   [ # 9 ]
New Member
Rank
Total Posts:  2
Joined  2008-08-08

Sorry for the late reply.
When I was installing it, I eventually looked at this reference. http://www.nabble.com/cvs-python-wrapper-compilation-error-td17288820.html

Then it worked out, however crashed right after launching it as everyone else said. (I use Mac)
I haven’t checked out the deal of Touchlib with Mac situation, but im using opentouch for now.

Profile