OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
flagsToOpenPose.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_UTILITIES_FLAGS_TO_OPEN_POSE_HPP
2 #define OPENPOSE_UTILITIES_FLAGS_TO_OPEN_POSE_HPP
3 
9 
10 namespace op
11 {
12  OP_API PoseModel flagsToPoseModel(const std::string& poseModeString);
13 
14  OP_API ScaleMode flagsToScaleMode(const int keypointScale);
15 
16  OP_API ScaleMode flagsToHeatMapScaleMode(const int heatMapScale);
17 
18  // Determine type of frame source
19  OP_API ProducerType flagsToProducerType(const std::string& imageDirectory, const std::string& videoPath,
20  const std::string& ipCameraPath, const int webcamIndex,
21  const bool flirCamera);
22 
23  OP_API std::shared_ptr<Producer> flagsToProducer(const std::string& imageDirectory, const std::string& videoPath,
24  const std::string& ipCameraPath, const int webcamIndex,
25  const bool flirCamera = false,
26  const std::string& cameraResolution = "-1x-1",
27  const double webcamFps = 30.,
28  const std::string& cameraParameterPath = "models/cameraParameters/",
29  const bool undistortImage = true,
30  const unsigned int imageDirectoryStereo = 1,
31  const int flirCameraIndex = -1);
32 
33  OP_API std::vector<HeatMapType> flagsToHeatMaps(const bool heatMapsAddParts = false,
34  const bool heatMapsAddBkg = false,
35  const bool heatMapsAddPAFs = false);
36 
37  OP_API RenderMode flagsToRenderMode(const int renderFlag, const bool gpuBuggy = false,
38  const int renderPoseFlag = -2);
39 
40  OP_API DisplayMode flagsToDisplayMode(const int display, const bool enabled3d);
41 
42  OP_API Point<int> flagsToPoint(const std::string& pointString, const std::string& pointExample = "1280x720");
43 }
44 
45 #endif // OPENPOSE_UTILITIES_FLAGS_TO_OPEN_POSE_HPP
PoseModel
Definition: enumClasses.hpp:9
OP_API DisplayMode flagsToDisplayMode(const int display, const bool enabled3d)
OP_API ScaleMode flagsToScaleMode(const int keypointScale)
OP_API ScaleMode flagsToHeatMapScaleMode(const int heatMapScale)
DisplayMode
Definition: enumClasses.hpp:10
OP_API ProducerType flagsToProducerType(const std::string &imageDirectory, const std::string &videoPath, const std::string &ipCameraPath, const int webcamIndex, const bool flirCamera)
ScaleMode
Definition: enumClasses.hpp:6
OP_API std::vector< HeatMapType > flagsToHeatMaps(const bool heatMapsAddParts=false, const bool heatMapsAddBkg=false, const bool heatMapsAddPAFs=false)
RenderMode
Definition: enumClasses.hpp:24
OP_API PoseModel flagsToPoseModel(const std::string &poseModeString)
OP_API std::shared_ptr< Producer > flagsToProducer(const std::string &imageDirectory, const std::string &videoPath, const std::string &ipCameraPath, const int webcamIndex, const bool flirCamera=false, const std::string &cameraResolution="-1x-1", const double webcamFps=30., const std::string &cameraParameterPath="models/cameraParameters/", const bool undistortImage=true, const unsigned int imageDirectoryStereo=1, const int flirCameraIndex=-1)
OP_API Point< int > flagsToPoint(const std::string &pointString, const std::string &pointExample="1280x720")
ProducerType
Definition: enumClasses.hpp:26
#define OP_API
Definition: macros.hpp:18
OP_API RenderMode flagsToRenderMode(const int renderFlag, const bool gpuBuggy=false, const int renderPoseFlag=-2)
std::string string
Definition: cl2.hpp:574