OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
imageDirectoryReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
2 #define OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
3
4 #include <openpose/core/common.hpp>
5 #include <openpose/producer/producer.hpp>
6
7 namespace op
8 {
14 class OP_API ImageDirectoryReader : public Producer
15 {
16 public:
26 explicit ImageDirectoryReader(
27 const std::string& imageDirectoryPath, const std::string& cameraParameterPath = "",
28 const bool undistortImage = false, const int numberViews = -1);
29
30 virtual ~ImageDirectoryReader();
31
32 std::string getNextFrameName();
33
34 inline bool isOpened() const
35 {
36 return (mFrameNameCounter >= 0);
37 }
38
39 inline void release()
40 {
41 mFrameNameCounter = {-1ll};
42 }
43
44 double get(const int capProperty);
45
46 void set(const int capProperty, const double value);
47
48 private:
49 const std::string mImageDirectoryPath;
50 const std::vector<std::string> mFilePaths;
51 Point<int> mResolution;
52 long long mFrameNameCounter;
53
54 cv::Mat getRawFrame();
55
56 std::vector<cv::Mat> getRawFrames();
57
58 DELETE_COPY(ImageDirectoryReader);
59 };
60 }
61
62 #endif // OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::Producer
Definition: producer.hpp:16
op::Point< int >
common.hpp
op::ImageDirectoryReader::release
void release()
Definition: imageDirectoryReader.hpp:39
op::ImageDirectoryReader::isOpened
bool isOpened() const
Definition: imageDirectoryReader.hpp:34
op::ImageDirectoryReader
Definition: imageDirectoryReader.hpp:14
producer.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574