Body Pose Estimation¶
- SDK.estimate_pose(self: tfsdk.SDK, tf_image: tfsdk.TFImage, bounding_boxes: List[tfsdk.BoundingBox]) → List[List[tfsdk.Landmark]]¶
Estimate body pose.
- Parameters
tf_image – the input
tfsdk.TFImage
, returned bytfsdk.SDK.preprocess_image()
.bounding_boxes –
tfsdk.BoundingBoxes
returned bytfsdk.SDK.detect_objects()
.
- Returns
The
ERRORCODE
and a list of the bodytfsdk.Landmark
, in that order.
- SDK.draw_pose(self: tfsdk.SDK, tf_image: tfsdk.TFImage, landmarks: List[List[tfsdk.Landmark]]) → None¶
- Draw body pose on the image.
Note, you should not run any inference functions on the image after calling this method.
- Parameters
tf_image – the input
tfsdk.TFImage
on which to draw the pose.landmarks – a list of
tfsdk.Landmark
returned bytfsdk.SDK.estimate_pose()
.