Touchlib doesn’t recognize my camera. 
Posted: 22 May 2008 05:43 AM   [ Ignore ]
New Member
Rank
Total Posts:  2
Joined  2008-05-22

Hey guys,
I’ve successfully compiled OpenCV/OSC and TouchLib on my Linux machine (ubuntu 7.10). Drivers for my Camera (Sony EyeToy, yeah I know.. but the stores are closed today in Austria) are installed and it works with VLC (/dev/video1).

But TouchLib won’t recognize the Camera. Any Ideas, How touchlib can use /dev/video1 (v4l)?

Regards

Profile
 
 
Posted: 22 May 2008 03:11 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  63
Joined  2007-03-04

hrmm… i haven’t had to deal with this in over a year or so, but have you tried a symbolic link to make /dev/video1 appear as /dev/video0 as well? seems like i played around with this last year, and finally i just gave up and rmmod’d the device that was being /dev/video0 so that the device i wanted became that… but i can’t remember right off ;p .... seemed like also maybe i tried to modify CvCaptureFilter, and didn’t get anywhere, nor did playing around with v4l-conf or any of that....

Profile
 
 
Posted: 23 May 2008 10:41 AM   [ Ignore ]   [ # 2 ]
Jr. Member
Avatar
RankRank
Total Posts:  101
Joined  2008-03-02

for now on linux system there isn’t a way to tell touchlib which device to use. There are probably hacks which could help you. (as executing modprobe with some additional info to tell your video driver which /dev/video use)

Profile
 
 
Posted: 23 May 2008 02:35 PM   [ Ignore ]   [ # 3 ]
New Member
Rank
Total Posts:  2
Joined  2008-05-22

Thanks to th0m. A simple “hardlink” worked smile

Profile
 
 
Posted: 03 June 2008 04:30 PM   [ Ignore ]   [ # 4 ]
New Member
Rank
Total Posts:  3
Joined  2008-06-03

Hi everybody,

I’ve a working webcam on /dev/video0 (checked with vlc)
but when i launch ./configapp each windows has no video (only grey background)

The hardlink didn’t work for me.. (I tried to link to /dev/video)

Any idea?

Anyway thanks for everyone’s work

Profile
 
 
Posted: 03 June 2008 04:52 PM   [ Ignore ]   [ # 5 ]
New Member
Rank
Total Posts:  63
Joined  2007-03-04

it is possibly a v4l2 driver and opencv is only v4l1 ? not sure… did you have to do anything special in vlc?

Profile
 
 
Posted: 03 June 2008 04:58 PM   [ Ignore ]   [ # 6 ]
New Member
Rank
Total Posts:  3
Joined  2008-06-03

to have it working in vlc i just had to specify the path /dev/video0 instead of the default /dev/video

I don’t know if my cam uses V4L1 or2 to work with vlc

Thank’s for your quick answer

Profile