By Date: <-- -->
By Thread: <-- -->

Capture image from frame grabber in C



Jayant Biswas a écrit :
Hello,

I am trying to write a simple program in C using v4l to grab an image from
a framegrabber and save it as a jpg or any other format. This program will
be later become a part of a device server written in C++. So it would be
even better if someone could lead me in the right direction to develop a
simple C++ program to grab an image from the frame grabber.

So if anyone could show me some code in C or C++ that grabs an image from
a frame grabber card. Then it would be great. Also some comments would be
helpful.

Thank you,
Jayant Biswas


Hi

Have you looked at the video capture example from the V4L2 API specification ?
You can find the source code at :
http://v4l2spec.bytesex.org/v4l2spec/capture.c


Jean-Claude

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list