com.aspose.ocr

Interface IImageStream



  • public interface IImageStream

    This interface is for working with images. Data format is specified in the field “Format”. Instance of this interface is required for recognition in “OCREngine”. Instance of this interface can be construct in ImageStream factory only.


     
    
     OcrEngine ocr = new OcrEngine();
     ocr.setImage(ImageStream.fromFile("image.tiff"));
     ocr.setImage(ImageStream.fromStream(memoryStream, imageStreamFormat));
     
     

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void dispose() 
      InputStream getData()
      Gets image data.
      int getFormat()
      Gets the format of data in which the image is stored in the field IImageStream.getData Data.
    • Method Detail

      • dispose

        void dispose()
      • getData

        InputStream getData()
        Gets image data.
        Returns:
        This image data stored in various formats. The format is specified in field “Format”.
      • getFormat

        int getFormat()
        Gets the format of data in which the image is stored in the field IImageStream.getData Data.
        Returns:
        the format of data