mp.packet_creator.create_float_array

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

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

Args: data: A list of floats.

Returns: A MediaPipe float array Packet.

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

Examples: packet = mp.packet_creator.create_float_array([0.1, 0.2, 0.3])