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

mp.packet_getter.get_packet_list

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

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

Get the content of a MediaPipe Packet of Packet vector as a Packet list.

Args: packet: A MediaPipe Packet that holds std:vector.

Returns: A Packet list.

Raises: ValueError: If the Packet doesn't contain std:vector.

Examples: packet = mp.packet_creator.create_packet_vector([ packet_creator.create_float(0.1), packet_creator.create_int(1), packet_creator.create_string('1') ]) packet_list = mp.packet_getter.get_packet_list(packet)