mp.tasks.vision.drawing_utils.draw_landmarks

Draws the landmarks and the connections on the image.

image A three channel BGR image represented as numpy ndarray.
landmark_list A list of normalized landmarks to be annotated on the image.
connections A list of landmark index tuples that specifies how landmarks to be connected in the drawing.
landmark_drawing_spec Either a DrawingSpec object or a mapping from hand landmarks to the DrawingSpecs that specifies the landmarks' drawing settings such as color, line thickness, and circle radius. If this argument is explicitly set to None, no landmarks will be drawn.
connection_drawing_spec Either a DrawingSpec object or a mapping from hand connections to the DrawingSpecs that specifies the connections' drawing settings such as color and line thickness. If this argument is explicitly set to None, no landmark connections will be drawn.
is_drawing_landmarks Whether to draw landmarks. If set false, skip drawing landmarks, only contours will be drawed.

ValueError If one of the followings: a) If the input image is not three channel BGR. b) If any connetions contain invalid landmark index.