Go to the documentation of this file.
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
54 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
55 #include <VisionX/interface/components/OpenPoseEstimationInterface.h>
81 #if defined(OP_CUSTOM_STRING_HEADERS)
93 #if defined(OP_CUSTOM_MATRIX_HEADERS)
106 HumanPose2DMap
convert2DKeypointsToIce(
const op::Array<float>& op_keypoints,
const CByteImage* rgbImage)
const;
112 void render2DResultImage(
const CByteImage& inputImage,
const op::Array<float>& keypoints, CByteImage& resultImage,
float renderThreshold);
118 void setupOpenPoseEnvironment();
Eigen::Matrix< T, 3, 3 > Matrix
HumanPose2DMap convert2DKeypointsToIce(const op::Array< float > &op_keypoints, const CByteImage *rgbImage) const
OpenPoseAdapter(const OpenPoseSettings &)
std::shared_ptr< op::PoseExtractorCaffe > poseExtractorCaffe
void render2DResultImage(const CByteImage &inputImage, const op::Array< float > &keypoints, CByteImage &resultImage, float renderThreshold)
std::shared_ptr< OpenPoseAdapter > MonocularOpenPoseEstimationPtr
VectorXD< 2, double > Vec2d
std::shared_ptr< op::OpOutputToCvMat > opOutputToCvMat
std::vector< float > getPoseColors() const
std::shared_ptr< op::ScaleAndSizeExtractor > scaleAndSizeExtractor
std::mutex op_running_mutex
static std::string ConvertToOPCustomType(const std::string &x)
armarx::DrawColor24Bit getDominantColorOfPatch(const CByteImage &image, const Vec2d &point, int windowSize) const
static cv::Mat ConvertToOPCustomType(const cv::Mat &x)
op::Array< float > getOpenposeKeypoints(const CByteImage *imageBuffer)
std::shared_ptr< op::CvMatToOpInput > cvMatToOpInput
std::shared_ptr< op::CvMatToOpOutput > cvMatToOpOutput
std::string output_resolution
unsigned int minimum_number_of_valid_keypoints_per_entitiy
std::string net_resolution
std::vector< unsigned int > getPoseBodyPartPairsRender() const
const std::string ModelId
OpenPoseSettings settings
This file offers overloads of toIce() and fromIce() functions for STL container types.