OpenPose
1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
|
#include <videoReader.hpp>
Public Member Functions | |
VideoReader (const std::string &videoPath, const std::string &cameraParameterPath="", const bool undistortImage=false, const int numberViews=-1) | |
virtual | ~VideoReader () |
std::string | getNextFrameName () |
bool | isOpened () const |
double | get (const int capProperty) |
void | set (const int capProperty, const double value) |
Public Member Functions inherited from op::VideoCaptureReader | |
VideoCaptureReader (const int index, const bool throwExceptionIfNoOpened, const std::string &cameraParameterPath, const bool undistortImage, const int numberViews) | |
VideoCaptureReader (const std::string &path, const ProducerType producerType, const std::string &cameraParameterPath, const bool undistortImage, const int numberViews) | |
virtual | ~VideoCaptureReader () |
void | release () |
Public Member Functions inherited from op::Producer | |
Producer (const ProducerType type, const std::string &cameraParameterPath, const bool undistortImage, const int mNumberViews) | |
virtual | ~Producer () |
Matrix | getFrame () |
std::vector< Matrix > | getFrames () |
virtual std::vector< Matrix > | getCameraMatrices () |
virtual std::vector< Matrix > | getCameraExtrinsics () |
virtual std::vector< Matrix > | getCameraIntrinsics () |
void | setProducerFpsMode (const ProducerFpsMode fpsMode) |
ProducerType | getType () |
double | get (const ProducerProperty property) |
void | set (const ProducerProperty property, const double value) |
Additional Inherited Members | |
Protected Member Functions inherited from op::VideoCaptureReader | |
void | resetWebcam (const int index, const bool throwExceptionIfNoOpened) |
Protected Member Functions inherited from op::Producer | |
void | checkFrameIntegrity (Matrix &frame) |
void | ifEndedResetOrRelease () |
void | keepDesiredFrameRate () |
VideoReader is a wrapper of the cv::VideoCapture class for video. It allows controlling a video (e.g., extracting frames, setting resolution & fps, etc).
Definition at line 13 of file videoReader.hpp.
|
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.
videoPath | const std::string parameter with the full video path location. |
cameraParameterPath | const std::string parameter with the folder path containing the camera parameters (only required if imageDirectorystereo > 1). |
numberViews | const int parameter with the number of images per iteration (>1 would represent stereo processing). |
|
virtual |
|
virtual |
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.
capProperty | int indicating the property to be modified. |
Implements op::VideoCaptureReader.
|
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.).
Implements op::VideoCaptureReader.
|
inlinevirtual |
This function returns whether the Producer instance is still opened and able to retrieve more frames.
Reimplemented from op::VideoCaptureReader.
Definition at line 33 of file videoReader.hpp.
|
virtual |
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.
capProperty | int indicating the property to be modified. |
value | double indicating the new value to be assigned. |
Implements op::VideoCaptureReader.