com.aspose.ocr

## Interface IImageStream

- All Superinterfaces:
    AutoCloseable, Closeable

      public interface IImageStream
      extends Closeable

  This interface is for working with images. 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.fromBytes(bytes, imageStreamFormat));

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `getData()` Gets image data.
    `ImageStreamFormat` | `getFormat()` Gets the format of data in which the image is stored.

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### getData

          InputStream getData()

      Gets image data. This image data stored in various formats.
      Returns:
        Image data stream.

    - #### getFormat

          ImageStreamFormat getFormat()

      Gets the format of data in which the image is stored.
      Returns:
        Image format

Copyright © 2014. All rights reserved.