Module: mp.tasks.vision.drawing_utils

MediaPipe solution drawing utils.

Modules

detections_module module: Detections data class.

face_landmarker module: MediaPipe face landmarker task.

landmark_module module: Landmark data class.

math module: This module provides access to the mathematical functions defined by the C standard.

Classes

class DrawingSpec

Functions

draw_axis(...): Draws the 3D axis on the image.

draw_detection(...): Draws the detction bounding box and keypoints on the image.

draw_landmarks(...): Draws the landmarks and the connections on the image.

plot_landmarks(...): Plot the landmarks and the connections in matplotlib 3d.

BLACK_COLOR (0, 0, 0)
BLUE_COLOR (255, 0, 0)
GREEN_COLOR (0, 128, 0)
RED_COLOR (0, 0, 255)
WHITE_COLOR (224, 224, 224)