draw.poses
Description
Draws keypoints on a detected pose.
- class Node(config=None, **kwargs)[source]
Draws poses onto image.
The
draw.poses
node uses the keypoints, keypoint_scores, and keypoint_conns predictions from pose models to draw the human poses onto the image. For better understanding, check out the pose models such asHRNet
andPoseNet
.- Inputs
img
(numpy.ndarray
): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.keypoints
(numpy.ndarray
): A NumPy array of shape \((N, K, 2)\) containing the \((x, y)\) coordinates of detected poses where \(N\) is the number of detected poses, and \(K\) is the number of individual keypoints. Keypoints with low confidence scores (below threshold) will be replaced by-1
.keypoint_scores
(numpy.ndarray
): A NumPy array of shape \((N, K)\) containing the confidence scores of detected poses where \(N\) is the number of detected poses and \(K\) is the number of individual keypoints. The confidence score has a range of \([0, 1]\).keypoint_conns
(numpy.ndarray
): A NumPy array of shape \((N, D_n', 2, 2)\) containing the \((x, y)\) coordinates of adjacent keypoint pairs where \(N\) is the number of detected poses, and \(D_n'\) is the number of valid keypoint pairs for the the \(n\)-th pose where both keypoints are detected.- Outputs
none
: No outputs produced.- Configs
None.