mp.packet_creator.create_float_vector

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

Create a MediaPipe float vector Packet from a list of floats.

Args: data: A list of floats

Returns: A MediaPipe float vector Packet.

Raises: TypeError: If the input is not a list of floats.

Examples: packet = mp.packet_creator.create_float_vector([0.1, 0.2, 0.3]) data = mp.packet_getter.get_float_list(packet)