mp.packet_creator.create_int

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

Create a MediaPipe int Packet from an integer.

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

Returns: A MediaPipe int Packet.

Raises: OverflowError: If the input integer overflows. TypeError: If the input is not an integer.

Examples: packet = mp.packet_creator.create_int(0) data = mp.packet_getter.get_int(packet)