mp.packet_getter.get_str

get_str(arg0: mediapipe.python._framework_bindings.packet.Packet) -> str

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

Args: packet: A MediaPipe string Packet.

Returns: A str.

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

Examples: packet = mp.packet_creator.create_string('abc') data = mp.packet_getter.get_str(packet)