AnnotationInfo¶
-
class AnnotationInfo(image_id, image_name, annotation, created_at, updated_at, dataset_id=
None)[source]¶ Bases:
NamedTupleBasic annotation information for an image (IDs, timestamps, and raw annotation JSON).
Create new instance of AnnotationInfo(image_id, image_name, annotation, created_at, updated_at, dataset_id)
Methods
Return number of occurrences of value.
Return first index of value.
Convert AnnotationInfo to JSON format.
Attributes
Alias for field number 2
Alias for field number 3
Alias for field number 5
Alias for field number 0
Alias for field number 1
Alias for field number 4
-
index(value, start=
0, stop=9223372036854775807, /)¶ Return first index of value.
Raises ValueError if the value is not present.
- to_json()[source]¶
Convert AnnotationInfo to JSON format.
- Returns:
AnnotationInfo in JSON format.
- Return type:
Dict[str, Any]
- annotation¶
Alias for field number 2
- created_at¶
Alias for field number 3
- dataset_id¶
Alias for field number 5
- image_id¶
Alias for field number 0
- image_name¶
Alias for field number 1
- updated_at¶
Alias for field number 4
-
index(value, start=