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));
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. |
void dispose()
InputStream getData()
int getFormat()
IImageStream.getData
Data.Copyright © 2017. All Rights Reserved.