File size: 808 Bytes
7fc5a59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef OPENPOSE_POSE_POSE_RENDERER_HPP
#define OPENPOSE_POSE_POSE_RENDERER_HPP

#include <map>
#include <openpose/core/common.hpp>
#include <openpose/pose/enumClasses.hpp>

namespace op
{
    class OP_API PoseRenderer
    {
    public:
        PoseRenderer(const PoseModel poseModel);

        virtual ~PoseRenderer();

        virtual void initializationOnThread(){};

        virtual std::pair<int, std::string> renderPose(
            Array<float>& outputData, const Array<float>& poseKeypoints, const float scaleInputToOutput,
            const float scaleNetToOutput = -1.f) = 0;

    protected:
        const PoseModel mPoseModel;
        const std::map<unsigned int, std::string> mPartIndexToName;

    private:

        DELETE_COPY(PoseRenderer);
    };
}

#endif // OPENPOSE_POSE_POSE_RENDERER_HPP