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

mp.packet_creator.create_bool_vector

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

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)