LabelMe.read#

LabelMe.read() tuple[Image, list[Polygon2], dict][source]#

Read LabelMe JSON and return image, polygons and file flags.

Raises:
  • ImportError – if the labelme package is not installed

  • ValueError – if required LabelMe image metadata is missing

Returns:

(image, polygons, flags)

Return type:

tuple