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

mp.packet_getter.get_image_frame

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

get_image_frame(arg0: mediapipe.python._framework_bindings.packet.Packet) -> mediapipe.python._framework_bindings.image_frame.ImageFrame

Get the content of a MediaPipe ImageFrame Packet as an ImageFrame object.

Args: packet: A MediaPipe ImageFrame Packet.

Returns: A MediaPipe ImageFrame object.

Raises: ValueError: If the Packet doesn't contain ImageFrame.

Examples: packet = packet_creator.create_image_frame(frame) data = packet_getter.get_image_frame(packet)