mp.tasks.vision.drawing_utils.plot_landmarks

Plot the landmarks and the connections in matplotlib 3d.

landmark_list A list of normalized landmarks to be plotted.
connections A list of landmark index tuples that specifies how landmarks to be connected.
landmark_drawing_spec A DrawingSpec object that specifies the landmarks' drawing settings such as color and line thickness.
connection_drawing_spec A DrawingSpec object that specifies the connections' drawing settings such as color and line thickness.
elevation The elevation from which to view the plot.
azimuth the azimuth angle to rotate the plot.

ValueError If any connection contains an invalid landmark index.