<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/vision/drawing_utils.py#L72-L119) |

Draws the detction bounding box and keypoints on the image.

    mp.tasks.vision.drawing_utils.draw_detection(
        image: np.ndarray,
        detection: https://developers.google.com/edge/api/mediapipe/python/mp/tasks/components/containers/Detection,
        keypoint_drawing_spec: https://developers.google.com/edge/api/mediapipe/python/mp/tasks/vision/drawing_utils/DrawingSpec = https://developers.google.com/edge/api/mediapipe/python/mp/tasks/vision/drawing_utils/DrawingSpec,
        bbox_drawing_spec: https://developers.google.com/edge/api/mediapipe/python/mp/tasks/vision/drawing_utils/DrawingSpec = https://developers.google.com/edge/api/mediapipe/python/mp/tasks/vision/drawing_utils/DrawingSpec
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `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. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If the input image is not three channel BGR. |

<br />