internal change.

PiperOrigin-RevId: 551366789
This commit is contained in:
MediaPipe Team 2023-07-26 17:54:59 -07:00 committed by Copybara-Service
parent c9d79a0076
commit 6de275834d

View File

@ -119,13 +119,16 @@ def draw_detection(
def draw_landmarks( def draw_landmarks(
image: np.ndarray, image: np.ndarray,
landmark_list: landmark_pb2.NormalizedLandmarkList, landmark_list: landmark_pb2.NormalizedLandmarkList,
connections: Optional[List[Tuple[int, int]]] = None, connections: Optional[
landmark_drawing_spec: Union[DrawingSpec, Union[frozenset[Tuple[int, int]], List[Tuple[int, int]]]
Mapping[int, DrawingSpec]] = DrawingSpec( ] = None,
color=RED_COLOR), landmark_drawing_spec: Optional[Union[
connection_drawing_spec: Union[DrawingSpec, DrawingSpec, Mapping[int, DrawingSpec]
Mapping[Tuple[int, int], ]] = None,
DrawingSpec]] = DrawingSpec()): connection_drawing_spec: Union[
DrawingSpec, Mapping[Tuple[int, int], DrawingSpec]
] = DrawingSpec(),
):
"""Draws the landmarks and the connections on the image. """Draws the landmarks and the connections on the image.
Args: Args: