1 #ifndef OPENPOSE_PRODUCER_WEBCAM_READER_HPP
2 #define OPENPOSE_PRODUCER_WEBCAM_READER_HPP
28 const bool throwExceptionIfNoOpened =
true,
const std::string& cameraParameterPath =
"",
29 const bool undistortImage =
false);
37 double get(
const int capProperty);
39 void set(
const int capProperty,
const double value);
43 const bool mWebcamStarted;
44 long long mFrameNameCounter;
47 std::mutex mBufferMutex;
48 std::atomic<bool> mCloseThread;
52 std::atomic<int> mDisconnectedCounter;
57 std::vector<Matrix> getRawFrames();
59 void bufferingThread();
WebcamReader(const int webcamIndex=0, const Point< int > &webcamResolution=Point< int >{}, const bool throwExceptionIfNoOpened=true, const std::string &cameraParameterPath="", const bool undistortImage=false)
double get(const int capProperty)
std::string getNextFrameName()
void set(const int capProperty, const double value)
#define DELETE_COPY(className)