| | #ifndef OPENPOSE_FILESTREAM_FILE_STREAM_HPP |
| | #define OPENPOSE_FILESTREAM_FILE_STREAM_HPP |
| |
|
| | #include <openpose/core/common.hpp> |
| | #include <openpose/filestream/enumClasses.hpp> |
| | #include <openpose/utilities/openCv.hpp> |
| |
|
| | namespace op |
| | { |
| | OP_API std::string dataFormatToString(const DataFormat dataFormat); |
| |
|
| | OP_API DataFormat stringToDataFormat(const std::string& dataFormat); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | OP_API void saveFloatArray(const Array<float>& array, const std::string& fullFilePath); |
| |
|
| | |
| | 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 saveData( |
| | const Matrix& opMat, const std::string cvMatName, const std::string& fileNameNoExtension, |
| | const DataFormat dataFormat); |
| |
|
| | OP_API std::vector<Matrix> loadData( |
| | const std::vector<std::string>& cvMatNames, const std::string& fileNameNoExtension, |
| | const DataFormat dataFormat); |
| |
|
| | OP_API Matrix loadData( |
| | const std::string& cvMatName, const std::string& fileNameNoExtension, const DataFormat dataFormat); |
| |
|
| | |
| | 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 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 saveImage( |
| | const Matrix& matrix, const std::string& fullFilePath, |
| | const std::vector<int>& openCvCompressionParams |
| | = {getCvImwriteJpegQuality(), 100, getCvImwritePngCompression(), 9}); |
| |
|
| | OP_API Matrix loadImage(const std::string& fullFilePath, const int openCvFlags = getCvLoadImageAnydepth()); |
| |
|
| | OP_API std::vector<std::array<Rectangle<float>, 2>> loadHandDetectorTxt(const std::string& txtFilePath); |
| | } |
| |
|
| | #endif |
| |
|