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


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)