Attention: This MediaPipe Solutions Preview is an early release. Learn more.

mp.packet_getter.get_bool

Stay organized with collections Save and categorize content based on your preferences.

get_bool(arg0: mediapipe.python._framework_bindings.packet.Packet) -> bool

Get the content of a MediaPipe bool Packet as a boolean.

Args: packet: A MediaPipe bool Packet.

Returns: A boolean.

Raises: ValueError: If the Packet doesn't contain bool data.

Examples: packet = mp.packet_creator.create_bool(True) data = mp.packet_getter.get_bool(packet)