public class OcrContext extends Object
Represents the OCR processing context.
Constructor and Description |
---|
OcrContext(InputStream imageStream,
ImageLocation imageLocation,
String imageFileExtension)
Initializes a new instance of the
OcrContext class. |
Modifier and Type | Method and Description |
---|---|
String |
getImageFileExtension()
Gets the file extension of the image.
|
ImageLocation |
getImageLocation()
Gets the location of the image.
|
InputStream |
getImageStream()
Gets the stream containing the image to be processed.
|
public OcrContext(InputStream imageStream, ImageLocation imageLocation, String imageFileExtension)
Initializes a new instance of the OcrContext
class.
imageStream
- The stream containing the image to be processed.imageLocation
- The location of the image.imageFileExtension
- The file extension of the image.public final InputStream getImageStream()
Gets the stream containing the image to be processed.
public final ImageLocation getImageLocation()
Gets the location of the image.
public final String getImageFileExtension()
Gets the file extension of the image. This value can be used to determine the type of the image.