OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
op::WrapperStructInput Struct Reference

#include <wrapperStructInput.hpp>

Public Member Functions

 WrapperStructInput (const std::shared_ptr< Producer > producerSharedPtr=nullptr, const unsigned long long frameFirst=0, const unsigned long long frameLast=-1, const bool realTimeProcessing=false, const bool frameFlip=false, const int frameRotate=0, const bool framesRepeat=false)
 

Public Attributes

std::shared_ptr< ProducerproducerSharedPtr
 
unsigned long long frameFirst
 
unsigned long long frameLast
 
bool realTimeProcessing
 
bool frameFlip
 
int frameRotate
 
bool framesRepeat
 

Detailed Description

WrapperStructInput: Input (images, video, webcam, etc.) configuration struct. WrapperStructInput allows the user to set up the input frames generator.

Constructor & Destructor Documentation

op::WrapperStructInput::WrapperStructInput ( const std::shared_ptr< Producer producerSharedPtr = nullptr,
const unsigned long long  frameFirst = 0,
const unsigned long long  frameLast = -1,
const bool  realTimeProcessing = false,
const bool  frameFlip = false,
const int  frameRotate = 0,
const bool  framesRepeat = false 
)

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.

Member Data Documentation

unsigned long long op::WrapperStructInput::frameFirst

First image to obtain. Default: 0.

bool op::WrapperStructInput::frameFlip

Whether to flip (mirror) the image.

unsigned long long op::WrapperStructInput::frameLast

Last image to obtain. Default: -1 (i.e. obtain 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).

std::shared_ptr<Producer> op::WrapperStructInput::producerSharedPtr

Producer which will generate the frames. Set to nullptr to disable the whole input, i.e. if the user is going to use his own frames generator.

bool op::WrapperStructInput::realTimeProcessing

Whether to skip or sleep in order to keep the same FPS as the frames producer.


The documentation for this struct was generated from the following file: