Annotation
An annotation refers to a single annotation object of a given image.
Use an Annotation object if you need low level control on annotations.
class remo.Annotation¶
Represents image annotations
documentation
class remo.Annotation(img_filename: str = None, status: str = None, task: str = None, tags: List[str] = None)
-
Parameters
-
img_filename – image file name
-
status – can be
not_annotated
,done
orskipped
-
task – name of annotation task. See also:
remo.task
-
tags – list of tags
-
class Bbox¶
Represent coordinates of bounding box. Uses in object detection.
documentation
class Bbox(xmin: int, ymin: int, xmax: int, ymax: int)
-
Parameters
-
xmin – X min
-
ymin – Y min
-
xmax – X max
-
ymax – Y max
-
class Item¶
Represents annotation item
documentation
class Item(classes: List[str] = None, bbox: List[int] = None, segment: List[int] = None)
-
Parameters
-
classes – list of classes
-
bbox – list of bbox coordinates like
['xmin', 'ymin', 'xmax', 'ymax']
-
segment – list of segment coordinates
[x0, y0, x1, y1, ..., xN, yN]
-
add_segment¶
Adds new segment. Uses in instance segmentation.
documentation
add_segment(points: List[int])
-
Parameters
points – list of segment coordinates
[x0, y0, x1, y1, ..., xN, yN]
class Segment¶
Represents coordinates of segment. Uses in instance segmentation.
documentation
class Segment(points: List[int])
-
Parameters
points – list of segment coordinates
[x0, y0, x1, y1, ..., xN, yN]
add_item¶
Adds new annotation item
documentation
add_item(classes: List[str] = None, bbox: List[int] = None, segment: List[int] = None)
-
Parameters
-
classes – list of classes
-
bbox – list of bbox coordinates like
['xmin', 'ymin', 'xmax', 'ymax']
-
segment – list of segment coordinates
[x0, y0, x1, y1, ..., xN, yN]
-