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));
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getData()
Gets image data.
|
ImageStreamFormat |
getFormat()
Gets the format of data in which the image is stored.
|
InputStream getData()
ImageStreamFormat getFormat()
Copyright © 2014. All rights reserved.