|
libeblearntools
|
#include <camera_windows.h>
Public Member Functions | |
| camera_windows (int height=-1, int width=-1) | |
| virtual | ~camera_windows () |
| Destructor. | |
| virtual idx< Tdata > | grab () |
| Return a new frame. | |
Protected Attributes | |
| bool | started |
| < resize or not during postproc. | |
| int | nbuffers |
| void * | buffers |
| int * | sizes |
| int | fd |
The camera_windows class interfaces with the camera and images under Microsoft Windows. It allows to grab images from a webcam in the idx format, and also to save gui outputs into video files.
| ebl::camera_windows< Tdata >::camera_windows | ( | int | height = -1, |
| int | width = -1 |
||
| ) |
Initialize a camera under Windows. 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.
| height | Resize input frame to this height if different than -1. |
| width | Resize input frame to this width if different than -1. |