#include <videoReader.hpp>
Inherits op::VideoCaptureReader.
VideoReader is a wrapper of the cv::VideoCapture class for video. It allows controlling a video (e.g. extracting frames, setting resolution & fps, etc).
op::VideoReader::VideoReader |
( |
const std::string & |
videoPath | ) |
|
|
explicit |
Constructor of VideoReader. It opens the video as a wrapper of cv::VideoCapture. It includes a flag to indicate whether the video should be repeated once it is completely read.
- Parameters
-
videoPath | const std::string parameter with the full video path location. |
double op::VideoReader::get |
( |
const int |
capProperty | ) |
|
|
inlinevirtual |
This function is a wrapper of cv::VideoCapture::get. It allows getting different properties of the Producer (fps, width, height, etc.). See the OpenCV documentation for all the available properties.
- Parameters
-
capProperty | int indicating the property to be modified. |
- Returns
- double returning the property value.
Implements op::VideoCaptureReader.
std::string op::VideoReader::getFrameName |
( |
| ) |
|
|
virtual |
This function returns a unique frame name (e.g. the frame number for video, the frame counter for webcam, the image name for image directory reader, etc.).
- Returns
- std::string with an unique frame name.
Implements op::VideoCaptureReader.
void op::VideoReader::set |
( |
const int |
capProperty, |
|
|
const double |
value |
|
) |
| |
|
inlinevirtual |
This function is a wrapper of cv::VideoCapture::set. It allows setting different properties of the Producer (fps, width, height, etc.). See the OpenCV documentation for all the available properties.
- Parameters
-
capProperty | int indicating the property to be modified. |
value | double indicating the new value to be assigned. |
Implements op::VideoCaptureReader.
The documentation for this class was generated from the following file:
- /home/travis/build/CMU-Perceptual-Computing-Lab/openpose/include/openpose/producer/videoReader.hpp