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

mp.packet_creator.create_int_vector

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

create_int_vector(arg0: List[int]) -> mediapipe.python._framework_bindings.packet.Packet

Create a MediaPipe int vector Packet from a list of integers.

Args: data: A list of integers.

Returns: A MediaPipe int vector Packet.

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

Examples: packet = mp.packet_creator.create_int_vector([1, 2, 3]) data = mp.packet_getter.get_int_vector(packet)