1 #ifndef OPENPOSE_PRODUCER_PRODUCER_HPP
2 #define OPENPOSE_PRODUCER_PRODUCER_HPP
20 explicit Producer(
const ProducerType type,
const std::string& cameraParameterPath,
const bool undistortImage,
21 const int mNumberViews);
105 virtual double get(
const int capProperty) = 0;
114 virtual void set(
const int capProperty,
const double value) = 0;
166 unsigned int mNumberEmptyFrames;
169 unsigned long long mFirstFrameTrackingFps;
170 unsigned long long mNumberFramesTrackingFps;
171 unsigned int mNumberSetPositionTrackingFps;
172 std::chrono::high_resolution_clock::time_point mClockTrackingFps;
185 const std::string& cameraParameterPath =
"models/cameraParameters/",
const bool undistortImage =
true,
186 const int numberViews = -1);
void setProducerFpsMode(const ProducerFpsMode fpsMode)
virtual std::vector< Matrix > getCameraMatrices()
virtual std::vector< Matrix > getCameraExtrinsics()
virtual double get(const int capProperty)=0
virtual bool isOpened() const =0
virtual std::vector< Matrix > getCameraIntrinsics()
double get(const ProducerProperty property)
std::vector< Matrix > getFrames()
Producer(const ProducerType type, const std::string &cameraParameterPath, const bool undistortImage, const int mNumberViews)
virtual Matrix getRawFrame()=0
virtual void set(const int capProperty, const double value)=0
virtual std::string getNextFrameName()=0
void checkFrameIntegrity(Matrix &frame)
void ifEndedResetOrRelease()
virtual std::vector< Matrix > getRawFrames()=0
void set(const ProducerProperty property, const double value)
void keepDesiredFrameRate()
#define DELETE_COPY(className)
OP_API std::shared_ptr< Producer > createProducer(const ProducerType producerType=ProducerType::None, const std::string &producerString="", const Point< int > &cameraResolution=Point< int >{-1,-1}, const std::string &cameraParameterPath="models/cameraParameters/", const bool undistortImage=true, const int numberViews=-1)