Skip to content

comet_ml.Layer ¶

Layer(
    boxes: Optional[List[Box]] = None,
    polygons: Optional[List[Polygon]] = None,
    name: str = None,
)

An annotation layer for images.

Create an annotation layer, composed of Boxes or Polygons.

Parameters:

  • boxes (list of Box, default: None ) –

    list of Boxes

  • polygons (list of Polygon, default: None ) –

    list of Polygons

  • name (str, default: None ) –

    the name of the layer

Note either boxes or points must be given.

Functions¶

to_dict ¶

to_dict() -> Dict[str, Any]
Sep. 30, 2024