# opentl::input::OpenCVCamera Class Reference

Interface class for using OpenCV to access (USB,...) cameras. More...

Inherits opentl::input::ImageSensor.

List of all members.

## Public Member Functions
virtual void | captureNext ()
| capture the next image from the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
virtual void | captureStart ()
| start the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
virtual void | captureStop ()
| stop the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
virtual void | close ()
| closes the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
virtual const opentl::core::cvdata::Image & | image ()
| returns current frame
virtual void | init ()
| initializes the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
virtual void | open ()
| opens the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
| OpenCVCamera (int camIndex=-1, int width=0, int height=0, double fps=-1.0)
virtual | ~OpenCVCamera ()
## Protected Attributes
int | mCamIndex
CvCapture * | mCapture
double | mFPS

## Detailed Description

Interface class for using OpenCV to access (USB,...) cameras.

Author:
  Thorsten Roeder <roeder@in.tum.de>

## Constructor & Destructor Documentation

opentl::input::OpenCVCamera::OpenCVCamera | ( | int | camIndex = `-1`,
|  | int | width = `0`,
|  | int | height = `0`,
|  | double | fps = `-1.0` |
| ) |  |  |

virtual opentl::input::OpenCVCamera::~OpenCVCamera | ( |  | ) | `[virtual]`

## Member Function Documentation

virtual void opentl::input::OpenCVCamera::captureNext | ( |  | ) | `[virtual]`

capture the next image from the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class

Reimplemented from opentl::input::ImageSensor.

virtual void opentl::input::OpenCVCamera::captureStart | ( |  | ) | `[virtual]`

start the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class

Reimplemented from opentl::input::ImageSensor.

virtual void opentl::input::OpenCVCamera::captureStop | ( |  | ) | `[virtual]`

stop the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class

Reimplemented from opentl::input::ImageSensor.

virtual void opentl::input::OpenCVCamera::close | ( |  | ) | `[virtual]`

closes the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class

Reimplemented from opentl::input::AbstractSensor.

virtual const opentl::core::cvdata::Image& opentl::input::OpenCVCamera::image | ( |  | ) | `[virtual]`

returns current frame

Reimplemented from opentl::input::ImageSensor.

virtual void opentl::input::OpenCVCamera::init | ( |  | ) | `[virtual]`

initializes the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class

Reimplemented from opentl::input::AbstractSensor.

virtual void opentl::input::OpenCVCamera::open | ( |  | ) | `[virtual]`

opens the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class

Reimplemented from opentl::input::AbstractSensor.

## Member Data Documentation

int opentl::input::OpenCVCamera::mCamIndex`[protected]`

CvCapture* opentl::input::OpenCVCamera::mCapture`[protected]`

double opentl::input::OpenCVCamera::mFPS`[protected]`