mp.packet_getter.get_bool

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)