Interface TextAnalyzerService
public interface TextAnalyzerService
Api for text analysis implementations, aimed at extracting text from an image.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.Jobextract(org.opencastproject.mediapackage.Attachment image) Takes the given image and returns a receipt that can be used to get the resulting catalog.
-
Field Details
-
JOB_TYPE
Receipt type- See Also:
-
OPERATION
The operation type- See Also:
-
-
Method Details
-
extract
org.opencastproject.job.api.Job extract(org.opencastproject.mediapackage.Attachment image) throws TextAnalyzerException, org.opencastproject.mediapackage.MediaPackageException Takes the given image and returns a receipt that can be used to get the resulting catalog.- Parameters:
image- element to analyze- Returns:
- the metadata
- Throws:
TextAnalyzerException- if the text in this image can not be analyzedorg.opencastproject.mediapackage.MediaPackageException- if this attachment is not valid
-