Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read input from a webcam in C++?

is it possible to read data from a generic webcam in C++ as you would from a stream object? Is there a common API or standard that works with all webcams?

I'm talking about C++ in *nix environment.

Thanks in advance.

like image 203
tunnuz Avatar asked Feb 16 '09 11:02

tunnuz


1 Answers

For linux, V4L. AFAIR, BSD uses the same codebase. I do not know about the others...

like image 89
Malkocoglu Avatar answered Sep 23 '22 17:09

Malkocoglu