Class ImageLabelAnnotationReader
Object
ImageLabelAnnotationReader
- All Implemented Interfaces:
AnnotationReader<ImageLabelAnnotation>
public class ImageLabelAnnotationReader
extends Object
implements AnnotationReader<ImageLabelAnnotation>
Reads an
ImageLabelAnnotation
from the file-system.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(Path path, OperationContext context) Reads an annotation, if possible, from the file-system.
-
Constructor Details
-
ImageLabelAnnotationReader
public ImageLabelAnnotationReader()
-
-
Method Details
-
read
public Optional<ImageLabelAnnotation> read(Path path, OperationContext context) throws InputReadFailedException Description copied from interface:AnnotationReader
Reads an annotation, if possible, from the file-system.- Specified by:
read
in interfaceAnnotationReader<ImageLabelAnnotation>
- Parameters:
path
- a path representing the annotation (or we derive another path from this path).context
- theOperationContext
for the read operation.- Returns:
- the annotation or
Optional.empty()
if it can't be read. - Throws:
InputReadFailedException
- if the annotation cannot be read successfully.
-