mp.tasks.vision.drawing_utils.draw_detection

Draws the detction bounding box and keypoints on the image.

image A three channel BGR image represented as numpy ndarray.
detection A detection object with a bounding box.
keypoint_drawing_spec A DrawingSpec object that specifies the keypoints' drawing settings such as color, line thickness, and circle radius.
bbox_drawing_spec A DrawingSpec object that specifies the bounding box's drawing settings such as color and line thickness.

ValueError If the input image is not three channel BGR.