mp.packet_creator.create_uint16

create_uint16(arg0: int) -> mediapipe.python._framework_bindings.packet.Packet

Create a MediaPipe uint16 Packet from an integer.

Args: data: An integer or a np.uint16.

Returns: A MediaPipe uint16 Packet.

Raises: OverflowError: If the input integer overflows. TypeError: If the input is neither an integer nor a np.uint16.

Examples: packet = mp.packet_creator.create_uint16(2**16 - 1) data = mp.packet_getter.get_uint(packet)