public class ImageLabelAnnotationReader extends Object implements AnnotationReader<ImageLabelAnnotation>
ImageLabelAnnotation
from the file-system.Constructor and Description |
---|
ImageLabelAnnotationReader() |
Modifier and Type | Method and Description |
---|---|
Optional<ImageLabelAnnotation> |
read(Path path,
OperationContext context)
Reads an annotation, if possible, from the file-system.
|
public Optional<ImageLabelAnnotation> read(Path path, OperationContext context) throws InputReadFailedException
AnnotationReader
read
in interface AnnotationReader<ImageLabelAnnotation>
path
- a path representing the annotation (or we derive another path from this path).context
- TODOOptional.empty()
if it can't be read.InputReadFailedException
- if the annotation cannot be read successfully.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.