33#include <opencv2/core/core.hpp>
36#include <Image/ByteImage.h>
37#include <Math/Math2d.h>
40#include <openpose/core/headers.hpp>
41#include <openpose/pose/headers.hpp>
42#include <openpose/utilities/headers.hpp>
45#if __has_include(<openpose/core/string.hpp>)
46#define OP_CUSTOM_STRING_HEADERS = 1
48#if __has_include(<openpose/core/matrix.hpp>)
49#define OP_CUSTOM_MATRIX_HEADERS = 1
55#include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
57#include <VisionX/interface/components/OpenPoseEstimationInterface.h>
83#if defined(OP_CUSTOM_STRING_HEADERS)
97#if defined(OP_CUSTOM_MATRIX_HEADERS)
101 return op::Matrix(&
x);
113 const CByteImage* rgbImage)
const;
120 const op::Array<float>& keypoints,
121 CByteImage& resultImage,
122 float renderThreshold);
125 armarx::DrawColor24Bit
129 void setupOpenPoseEnvironment();
OpenPoseSettings settings
op::Array< float > getOpenposeKeypoints(const CByteImage *imageBuffer)
std::shared_ptr< op::CvMatToOpInput > cvMatToOpInput
std::shared_ptr< op::ScaleAndSizeExtractor > scaleAndSizeExtractor
std::shared_ptr< op::PoseExtractorCaffe > poseExtractorCaffe
std::mutex op_running_mutex
static cv::Mat ConvertToOPCustomType(const cv::Mat &x)
std::shared_ptr< op::OpOutputToCvMat > opOutputToCvMat
OpenPoseAdapter(const OpenPoseSettings &)
void render2DResultImage(const CByteImage &inputImage, const op::Array< float > &keypoints, CByteImage &resultImage, float renderThreshold)
armarx::DrawColor24Bit getDominantColorOfPatch(const CByteImage &image, const Vec2d &point, int windowSize) const
HumanPose2DMap convert2DKeypointsToIce(const op::Array< float > &op_keypoints, const CByteImage *rgbImage) const
static std::string ConvertToOPCustomType(const std::string &x)
std::shared_ptr< op::CvMatToOpOutput > cvMatToOpOutput
std::vector< unsigned int > getPoseBodyPartPairsRender() const
std::vector< float > getPoseColors() const
const std::string ModelId
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< OpenPoseAdapter > MonocularOpenPoseEstimationPtr
unsigned int minimum_number_of_valid_keypoints_per_entitiy
std::string output_resolution
std::string net_resolution