mp.packet_getter.get_str_to_packet_dict

get_str_to_packet_dict(arg0: mediapipe.python._framework_bindings.packet.Packet) -> Dict[str, mediapipe.python._framework_bindings.packet.Packet]

Get the content of a MediaPipe Packet as a dictionary that has (str, Packet) pairs.

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

Returns: A dictionary that has (str, Packet) pairs.

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

Examples: dict_packet = mp.packet_creator.create_string_to_packet_map({ 'float': packet_creator.create_float(0.1), 'int': packet_creator.create_int(1), 'string': packet_creator.create_string('1') data = mp.packet_getter.get_str_to_packet_dict(dict_packet)