libeblearntools
|
#include <camera_opencv.h>
Public Member Functions | |
camera_opencv (int id, int height=-1, int width=-1) | |
virtual | ~camera_opencv () |
Destructor. | |
virtual idx< Tdata > | grab () |
Return a new frame. |
The camera_opencv class interfaces with the opencv camera and images. It allows to grab images from opencv in the idx format, and also to save gui outputs into video files.
ebl::camera_opencv< Tdata >::camera_opencv | ( | int | id, |
int | height = -1 , |
||
int | width = -1 |
||
) |
Initialize opencv camera using id to choose which camera_opencv to use. height and width are optional parameters that resize the input image to those dimensions if given (different than -1). One may want to decrease the input resolution first to speed up operations, for example when computing multiple resolutions.
id | The ID of the camera. -1 chooses the first available camera. |
height | Resize input frame to this height if different than -1. |
width | Resize input frame to this width if different than -1. |