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
fileStream.hpp File Reference
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <openpose/core/common.hpp>
#include <openpose/filestream/enumClasses.hpp>

Go to the source code of this file.

Namespaces

 op
 

Functions

OP_API std::string op::dataFormatToString (const DataFormat dataFormat)
 
OP_API DataFormat op::stringToDataFormat (const std::string &dataFormat)
 
OP_API void op::saveFloatArray (const Array< float > &array, const std::string &fullFilePath)
 
OP_API void op::saveData (const std::vector< cv::Mat > &cvMats, const std::vector< std::string > &cvMatNames, const std::string &fileNameNoExtension, const DataFormat dataFormat)
 
OP_API void op::saveData (const cv::Mat &cvMat, const std::string cvMatName, const std::string &fileNameNoExtension, const DataFormat dataFormat)
 
OP_API std::vector< cv::Mat > op::loadData (const std::vector< std::string > &cvMatNames, const std::string &fileNameNoExtension, const DataFormat dataFormat)
 
OP_API cv::Mat op::loadData (const std::string &cvMatName, const std::string &fileNameNoExtension, const DataFormat dataFormat)
 
OP_API void op::savePeopleJson (const Array< float > &keypoints, const std::vector< std::vector< std::array< float, 3 >>> &candidates, const std::string &keypointName, const std::string &fileName, const bool humanReadable)
 
OP_API void op::savePeopleJson (const std::vector< std::pair< Array< float >, std::string >> &keypointVector, const std::vector< std::vector< std::array< float, 3 >>> &candidates, const std::string &fileName, const bool humanReadable)
 
OP_API void op::saveImage (const cv::Mat &cvMat, const std::string &fullFilePath, const std::vector< int > &openCvCompressionParams={CV_IMWRITE_JPEG_QUALITY, 100, CV_IMWRITE_PNG_COMPRESSION, 9})
 
OP_API cv::Mat op::loadImage (const std::string &fullFilePath, const int openCvFlags=CV_LOAD_IMAGE_ANYDEPTH)
 
OP_API std::vector< std::array
< Rectangle< float >, 2 > > 
op::loadHandDetectorTxt (const std::string &txtFilePath)