| #ifndef OPENPOSE_EXAMPLES_TUTORIAL_USER_POST_PROCESSING_HPP |
| #define OPENPOSE_EXAMPLES_TUTORIAL_USER_POST_PROCESSING_HPP |
|
|
| |
| #include <opencv2/opencv.hpp> |
| |
| #include <openpose/core/common.hpp> |
| #include <openpose/core/cvMatToOpInput.hpp> |
|
|
| namespace op |
| { |
| |
| |
| |
| class UserPostProcessing |
| { |
| public: |
| |
| |
| |
| UserPostProcessing(); |
|
|
| |
| |
| |
| |
| void initializationOnThread(); |
|
|
| |
| |
| |
| |
| |
| |
| void doSomething(cv::Mat& output, const cv::Mat& input); |
|
|
| private: |
| |
| |
| |
| |
| }; |
| } |
|
|
|
|
|
|
|
|
|
|
| |
| namespace op |
| { |
| UserPostProcessing::UserPostProcessing() |
| { |
| try |
| { |
| } |
| catch (const std::exception& e) |
| { |
| error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| } |
| } |
|
|
| void UserPostProcessing::initializationOnThread() |
| { |
| try |
| { |
| } |
| catch (const std::exception& e) |
| { |
| error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| } |
| } |
|
|
| void UserPostProcessing::doSomething(cv::Mat& output, const cv::Mat& input) |
| { |
| try |
| { |
| |
| cv::bitwise_not(input, output); |
| } |
| catch (const std::exception& e) |
| { |
| error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| } |
| } |
|
|
| |
| } |
|
|
| #endif |
|
|