1 #ifndef OPENPOSE_FILESTREAM_FILE_STREAM_HPP
2 #define OPENPOSE_FILESTREAM_FILE_STREAM_HPP
28 const std::vector<Matrix>& opMats,
const std::vector<std::string>& cvMatNames,
29 const std::string& fileNameNoExtension,
const DataFormat dataFormat);
32 const Matrix& opMat,
const std::string cvMatName,
const std::string& fileNameNoExtension,
36 const std::vector<std::string>& cvMatNames,
const std::string& fileNameNoExtension,
40 const std::string& cvMatName,
const std::string& fileNameNoExtension,
const DataFormat dataFormat);
44 const Array<float>& keypoints,
const std::vector<std::vector<std::array<float,3>>>& candidates,
45 const std::string& keypointName,
const std::string& fileName,
const bool humanReadable);
49 const std::vector<std::pair<
Array<float>, std::string>>& keypointVector,
50 const std::vector<std::vector<std::array<float,3>>>& candidates,
const std::string& fileName,
51 const bool humanReadable);
55 const Matrix& matrix,
const std::string& fullFilePath,
56 const std::vector<int>& openCvCompressionParams
OP_API std::vector< std::array< Rectangle< float >, 2 > > loadHandDetectorTxt(const std::string &txtFilePath)
OP_API int getCvImwritePngCompression()
OP_API DataFormat stringToDataFormat(const std::string &dataFormat)
OP_API int getCvLoadImageAnydepth()
OP_API Matrix loadImage(const std::string &fullFilePath, const int openCvFlags=getCvLoadImageAnydepth())
OP_API void saveImage(const Matrix &matrix, const std::string &fullFilePath, const std::vector< int > &openCvCompressionParams={getCvImwriteJpegQuality(), 100, getCvImwritePngCompression(), 9})
OP_API std::string dataFormatToString(const DataFormat dataFormat)
OP_API std::vector< Matrix > loadData(const std::vector< std::string > &cvMatNames, const std::string &fileNameNoExtension, const DataFormat dataFormat)
OP_API void saveData(const std::vector< Matrix > &opMats, const std::vector< std::string > &cvMatNames, const std::string &fileNameNoExtension, const DataFormat dataFormat)
OP_API void saveFloatArray(const Array< float > &array, const std::string &fullFilePath)
OP_API int getCvImwriteJpegQuality()
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)