1 #ifndef OPENPOSE_FILESTREAM_FILE_STREAM_HPP
2 #define OPENPOSE_FILESTREAM_FILE_STREAM_HPP
4 #include <opencv2/core/core.hpp>
5 #include <opencv2/highgui/highgui.hpp>
28 OP_API void saveData(
const std::vector<cv::Mat>& cvMats,
const std::vector<std::string>& cvMatNames,
34 OP_API std::vector<cv::Mat>
loadData(
const std::vector<std::string>& cvMatNames,
44 const bool humanReadable);
49 const std::string& fileName,
const bool humanReadable);
53 const std::vector<int>& openCvCompressionParams
54 = {CV_IMWRITE_JPEG_QUALITY, 100, CV_IMWRITE_PNG_COMPRESSION, 9});
61 #endif // OPENPOSE_FILESTREAM_FILE_STREAM_HPP
OP_API void 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 saveData(const std::vector< cv::Mat > &cvMats, const std::vector< std::string > &cvMatNames, const std::string &fileNameNoExtension, const DataFormat dataFormat)
OP_API DataFormat stringToDataFormat(const std::string &dataFormat)
std::array< T, N > array
Definition: cl2.hpp:594
OP_API void saveFloatArray(const Array< float > &array, const std::string &fullFilePath)
DataFormat
Definition: enumClasses.hpp:6
OP_API cv::Mat loadImage(const std::string &fullFilePath, const int openCvFlags=CV_LOAD_IMAGE_ANYDEPTH)
OP_API void 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 std::string dataFormatToString(const DataFormat dataFormat)
OP_API std::vector< cv::Mat > loadData(const std::vector< std::string > &cvMatNames, const std::string &fileNameNoExtension, const DataFormat dataFormat)
OP_API std::vector< std::array< Rectangle< float >, 2 > > loadHandDetectorTxt(const std::string &txtFilePath)
std::vector< T, Alloc > vector
Definition: cl2.hpp:567
#define OP_API
Definition: macros.hpp:15
std::string string
Definition: cl2.hpp:574