mp.packet_getter.get_str_list

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

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

Args: packet: A MediaPipe Packet that holds std:vectorstd::string.

Returns: A str list.

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

Examples: packet = mp.packet_creator.create_string_vector(['a', 'b', 'c']) data = mp.packet_getter.get_str_list(packet)