SDK reference

mp_sdk.training.ImageLayer

 class mp_sdk.training.ImageLayer(*,
     id: int = None,
     url: str,
     name: str,
     path: str,
     width: int,
     height: int
)

Image layer object.

Represents a single image layer that can be stacked with other layers to create a multi-layer image.

Attributes

  • id - int: The layer ID.

  • path - str: Path to the image file in local file system.

  • url - str: The image URL.

  • name - str: The image name.

  • pil_image - PILImage: The PIL image object.

  • width - int: The image width in pixels.

  • height - int: The image height in pixels.

Methods

copy_with

(self, update: dict)

Previous
ImageAnnotation