ya, that's true.
but my question is suppose drivers are available for 3 of the platform,
then any library is useful that can work on 3 of the platform,
and provide video streaming,and other webcam functions.?
ya, that's true.
but my question is suppose drivers are available for 3 of the platform,
then any library is useful that can work on 3 of the platform,
and provide video streaming,and other webcam functions.?
You can't decouple the lib from the driver, since there is no standard for it, which all the camera manufacturers follow.
Any lib you have will have to interface with the driver.
Therefore only manufacturers that ship their camera with driver and an interface lib for developers can be accessed by user applications.
But there is not general such lib - AFAIK.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hi,
I've seen that the OpenCV library is mentioned a lot when people ask about using webcams. It's cross-platform.
Best regards,
Marc
OpneCV is a computer vision lib.
It is not responsible for data acquisition.
You have to feed it the data you want to work on.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Open CV is one of the option,
but what I want is the library using which I can write the code that will run on 3(Windows,MAC,Linux) of the platform.
OpenCV as number of other libs which are cross platform are libs which allow you to work with image data.
They do NOT do image acquisition, certainly not in cross platform way.
There is no lib that can acquire image data from any camera in a cross platform way, since there is no standard for writing camera drivers, and or, camera hardware.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
OpenCV has the highgui module, which can be used to perform simple camera image acquisition on multiple platforms. For windows it uses vfw, and v4l for linux/unix. I don't know about mac. Here's the link : highgui
It's very simple, I'm not even sure if it allows to change the capture resolution.
Ok, but this will only work with cameras which support these drivers.
Its not general, but agreed, it will allow you to work with at least some cameras.
I just found this link which sounds interesting as well, again, as long as you are comfortable with the limitation of using cameras that only support vfw and v4l, or in general the list of camera/ camrea types it lists.
http://en.wikipedia.org/wiki/Integrating_Vision_Toolkit
Yes, it's very simple and limited solution, I'm not even sure if this will work with firewire devices. But if OP want's only to capture from webcam, maybe highgui or library from your link will fit he's needs. I guess if he's using C++, the IVT is better than C-style highgui interface.
Bookmarks