Attention: This MediaPipe Solutions Preview is an early release. Learn more.

mp.packet_creator.create_int

Stay organized with collections Save and categorize content based on your preferences.

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)