OpenPose
1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
|
#include <wrapperStructInput.hpp>
Public Member Functions | |
WrapperStructInput (const ProducerType producerType=ProducerType::None, const std::string &producerString="", const unsigned long long frameFirst=0, const unsigned long long frameStep=1, const unsigned long long frameLast=std::numeric_limits< unsigned long long >::max(), const bool realTimeProcessing=false, const bool frameFlip=false, const int frameRotate=0, const bool framesRepeat=false, const Point< int > &cameraResolution=Point< int >{-1,-1}, const double webcamFps=30., const std::string &cameraParameterPath="models/cameraParameters/", const bool undistortImage=true, const unsigned int imageDirectoryStereo=1) | |
Public Attributes | |
ProducerType | producerType |
std::string | producerString |
unsigned long long | frameFirst |
unsigned long long | frameStep |
unsigned long long | frameLast |
bool | realTimeProcessing |
bool | frameFlip |
int | frameRotate |
bool | framesRepeat |
Point< int > | cameraResolution |
double | webcamFps |
std::string | cameraParameterPath |
bool | undistortImage |
unsigned int | imageDirectoryStereo |
WrapperStructInput: Input (images, video, webcam, etc.) configuration struct. WrapperStructInput allows the user to set up the input frames generator.
op::WrapperStructInput::WrapperStructInput | ( | const ProducerType | producerType = ProducerType::None , |
const std::string & | producerString = "" , |
||
const unsigned long long | frameFirst = 0 , |
||
const unsigned long long | frameStep = 1 , |
||
const unsigned long long | frameLast = std::numeric_limits< unsigned long long >::max() , |
||
const bool | realTimeProcessing = false , |
||
const bool | frameFlip = false , |
||
const int | frameRotate = 0 , |
||
const bool | framesRepeat = false , |
||
const Point< int > & | cameraResolution = Point< int >{-1,-1} , |
||
const double | webcamFps = 30. , |
||
const std::string & | cameraParameterPath = "models/cameraParameters/" , |
||
const bool | undistortImage = true , |
||
const unsigned int | imageDirectoryStereo = 1 |
||
) |
Constructor of the struct. It has the recommended and default values we recommend for each element of the struct. Since all the elements of the struct are public, they can also be manually filled.
std::string op::WrapperStructInput::cameraParameterPath |
Directory path for the camera parameters (intrinsic and extrinsic parameters).
Point<int> op::WrapperStructInput::cameraResolution |
Camera resolution (only for Webcam and FlirCamera).
unsigned long long op::WrapperStructInput::frameFirst |
First image to process. Default: 0.
bool op::WrapperStructInput::frameFlip |
Whether to flip (mirror) the image.
unsigned long long op::WrapperStructInput::frameLast |
Last image to process. Default: -1 (i.e., process all frames).
int op::WrapperStructInput::frameRotate |
Image rotation. Only 4 possible values: 0 (default, no rotation), 90, 180 or 270 degrees
bool op::WrapperStructInput::framesRepeat |
Whether to re-open the producer if it reaches the end (e.g., video or image directory after the last frame).
unsigned long long op::WrapperStructInput::frameStep |
Step or gap across processed frames. Default: 1 (i.e., process all frames). Example: A value of 5 would mean to process frames 0, 5, 10, etc.
unsigned int op::WrapperStructInput::imageDirectoryStereo |
Number of camera views recorded (only for prerecorded produced sources, such as video and image directory).
std::string op::WrapperStructInput::producerString |
Path of the producer (image directory path for ImageDirectory, video path for Video, camera index for Webcam and FlirCamera, URL for IPCamera, etc.). Default: "".
ProducerType op::WrapperStructInput::producerType |
Desired type of producer (FlirCamera, ImageDirectory, IPCamera, Video, Webcam, None, etc.). Default: ProducerType::None.
bool op::WrapperStructInput::realTimeProcessing |
Whether to skip or sleep in order to keep the same FPS as the frames producer.
bool op::WrapperStructInput::undistortImage |
Whether to undistort the image given the camera parameters.
double op::WrapperStructInput::webcamFps |
Frame rate of the camera (only for some producers).