View source on GitHub |
Class that performs pose landmarks detection on images.
mp.tasks.vision.PoseLandmarker(
graph_config: mp.calculators.core.constant_side_packet_calculator_pb2.mediapipe_dot_framework_dot_calculator__pb2.CalculatorGraphConfig
,
running_mode: mp.tasks.vision.RunningMode
,
packet_callback: Optional[Callable[[Mapping[str, packet_module.Packet]], None]] = None
) -> None
Raises | |
---|---|
ValueError
|
The packet callback is not properly set based on the task's running mode. |
Methods
close
close() -> None
Shuts down the mediapipe vision task instance.
Raises | |
---|---|
RuntimeError
|
If the mediapipe vision task failed to close. |
convert_to_normalized_rect
convert_to_normalized_rect(
options: mp.tasks.vision.holistic_landmarker.image_processing_options_module.ImageProcessingOptions
,
image: mp.Image
,
roi_allowed: bool = True
) -> mp.tasks.components.