v4l2pp
Object oriented interface for well known library Video4Linux2 (V4L2). This is wrapper for C++ language. It is to use V4L2 using a few commands.
It allows to get image from camera easily as shown in the following example:
V4L2::Camera camera(640, 480);
// Select device
camera.setDevice("/dev/video0");
// Open device
camera.open();
// Start capturing
camera.startCapturing();
// While capturing it is possible to get image
unsigned char *image = camera.getImage();
// Release resources before exit
camera.stopCapturing();
camera.close();
It is very simple and may have some bugs, which I hope to fix soon.
Everyone who is interested in contribution this wrapper, please contact me (ementos at gmail dott com)