v2026.4.1
All Bundles

OpenPoseSession

OpenPose inference session for human pose estimation (17-keypoint COCO skeleton). Uses letterbox preprocessing with inverse keypoint mapping for accurate coordinates. Supports 18/19/25/26/57-channel output configurations. Example labels := ["nose", "left_eye", "right_eye", "left_ear", "right_ear", "left_shoulder", "right_shoulder", "left_elbow", "right_elbow", "left_wrist", "right_wrist", "left_hip", "right_hip", "left_knee", "right_knee", "left_ankle", "right_ankle"]; session := OpenPoseSession->New("openpose.onnx"); result := session->Inference(image_bytes, labels); each(kp in result->GetClassifications()) { if(kp->GetConfidence() > 0) { "{kp->GetName()}: [{kp->GetNormalizedX()}, {kp->GetNormalizedY()}]"->PrintLine(); }; }; session->Close();

Operations

Close

Closes the session

method : public : Close() ~ Nil

Inference

OpenPose image inference

method : public : Inference(image:Byte[], ) ~ API.Onnx.OpenPoseResult

Parameters

NameTypeDescription
imageBytewidth width

New

Constructor.

New(model:String)

Parameters

NameTypeDescription
modelStringOpenPose model path

New

Constructor.

New(model:String, config:Map<String,String>)

Parameters

NameTypeDescription
modelStringOpenPose model path
configMap<String,String>session configuration parameters