logo       

Re: Re: V4L2 Support: msg#00699

lib.opencv

Subject: Re: Re: V4L2 Support

Hi Matthias,

> Thx for answering - I checked out opencv and built it successfully.
> How can I access the cam using v4l2? Just with cvCaptureFromCAM()?

Yes. And OpenCV will select V4L2 if it is available. Do you have look at
the selected configuration at the end of the ./configure step ? You
should have something like:

Configuration:
Compiler: g++
CXXFLAGS: -Wall -fno-rtti -pipe -O3 -DNDEBUG -g
-march=i686 -ffast-math -fomit-frame-pointer

Install path: /com/softs/opencv-cvs/cvs-dev-i686

Use gtk+ 2.x: yes
Use threaded HighGUI yes
Use libjpeg: yes
Use zlib: yes
Use libpng: yes
Use libtiff: yes
Use ffmpeg: yes
Use dc1394 & raw1394: yes
Use v4l: yes
Use v4l2: yes
Use QuickTime: no

Build wrappers for
- Python yes
SWIG is at /usr/bin/swig -c++

Build demo apps yes

Now run make ...

Is in your config "Use v4l2" set to yes ?

> The sample program "camshiftdemo" doesn't work...

It's working here, with both a V4L1 and a V4L2 device.
Have you some errors printed out ?

Have a nice day.

Olivier
--
Olivier Bornet, IDIAP, CP 592, CH-1920 Martigny
http://www.idiap.ch/~bornet/
http://www.idiap.ch/~bornet/pgp/
PGP-key: 0xC53D9218


[Non-text portions of this message have been removed]



Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@xxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise