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

mp.packet_getter.get_int

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

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

Get the content of a MediaPipe int Packet as an integer.

Args: packet: A MediaPipe Packet that holds int, int8, int16, int32, or int64 data.

Returns: An integer.

Raises: ValueError: If the Packet doesn't contain int, int8, int16, int32, or int64 data.

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