Class that performs gesture recognition on images.
mp.tasks.vision.GestureRecognizer(
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
Args |
graph_config
|
The mediapipe vision task graph config proto.
|
running_mode
|
The running mode of the mediapipe vision task.
|
packet_callback
|
The optional packet callback for getting results
asynchronously in the live stream mode.
|
Raises |
ValueError
|
The packet callback is not properly set based on the task's
running mode.
|
Methods
close
View source
close() -> None
Shuts down the mediapipe vision task instance.
Raises |
RuntimeError
|
If the mediapipe vision task failed to close.
|
convert_to_normalized_rect
View source
convert_to_normalized_rect(
options: mp.tasks.