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

mp.packet_getter.get_str

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

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)