mp.packet_creator.create_bool_vector

create_bool_vector(arg0: List[bool]) -> mediapipe.python._framework_bindings.packet.Packet

Create a MediaPipe bool vector Packet from a list of booleans.

Args: data: A list of booleans.

Returns: A MediaPipe bool vector Packet.

Raises: TypeError: If the input is not a list of booleans.

Examples: packet = mp.packet_creator.create_bool_vector([True, True, False]) data = mp.packet_getter.get_bool_vector(packet)