Interface TextAnalyzerService


public interface TextAnalyzerService
Api for text analysis implementations, aimed at extracting text from an image.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Receipt type
    static final String
    The operation type
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencastproject.job.api.Job
    extract(org.opencastproject.mediapackage.Attachment image)
    Takes the given image and returns a receipt that can be used to get the resulting catalog.
  • Field Details

  • 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 analyzed
      org.opencastproject.mediapackage.MediaPackageException - if this attachment is not valid