EncodedImage

An image encoded as e.g. a JPEG or PNG.

Rerun also supports uncompressed images with the archetypes.Image. For images that refer to video frames see archetypes.VideoFrameReference.

Fields fields

Required required

Optional optional

Can be shown in can-be-shown-in

Example example

encoded_image encodedimage

"""Create and log an image."""

from pathlib import Path

import rerun as rr

image_file_path = Path(__file__).parent / "ferris.png"

rr.init("rerun_example_encoded_image", spawn=True)

rr.log("image", rr.EncodedImage(path=image_file_path))