class documentation
Class for writing annotations in YOLO-style TXT format.
Method | write |
Writes the labels to disk. |
def write(self, label, txt_path, labels_map_rev, dynamic_classes=False, include_confidence=False):
(source)
ΒΆ
Writes the labels to disk.
Parameters | |
label | a fiftyone.core.labels.Detections or
fiftyone.core.labels.Polylines |
txt | the path to write the annotation TXT file |
labels | a dictionary mapping class label strings to target integers |
dynamicFalse | whether to dynamically add new labels to labels_map_rev |
includeFalse | whether to include confidences in the export, if they exist |