![]() |
Companion
1.0.0
Companion is an object recognition framework written with OpenCV.
|
#include <Video.h>
Public Member Functions | |
Video (int device) | |
Video (std::string url) | |
virtual | ~Video ()=default |
cv::Mat | ObtainImage () |
bool | IsFinished () |
void | Finish () |
Video streaming OpenCV realization to obtain images from a video or a live stream.
Companion::Input::Video::Video | ( | int | device | ) |
Connect to a given physical video device.
device | Device number to connect to. |
Companion::Error::Code | if wrong device number is selected. |
Companion::Input::Video::Video | ( | std::string | url | ) |
Play a video stream from the given URL.
url | Path to video stream. |
Companion::Error::Code | if invalid URL is used. |
|
virtualdefault |
Destructor.
|
virtual |
Stop this video stream.
Implements Companion::Input::Stream.
|
virtual |
Indicator if stream has finished.
Implements Companion::Input::Stream.
|
virtual |
Obtain next image from open video stream.
Implements Companion::Input::Stream.