com.groupdocs.search.options

Class OcrContext



  • public class OcrContext
    extends Object

    Represents the OCR processing context.

    • Constructor Detail

      • OcrContext

        public OcrContext(InputStream imageStream,
                  ImageLocation imageLocation,
                  String imageFileExtension)

        Initializes a new instance of the OcrContext class.

        Parameters:
        imageStream - The stream containing the image to be processed.
        imageLocation - The location of the image.
        imageFileExtension - The file extension of the image.
    • Method Detail

      • getImageStream

        public final InputStream getImageStream()

        Gets the stream containing the image to be processed.

        Returns:
        The stream containing the image to be processed.
      • getImageLocation

        public final ImageLocation getImageLocation()

        Gets the location of the image.

        Returns:
        The location of the image.
      • getImageFileExtension

        public final String getImageFileExtension()

        Gets the file extension of the image. This value can be used to determine the type of the image.

        Returns:
        The file extension of the image.