OcrContext
Leave feedback
On this page
Inheritance: java.lang.Object
public class OcrContext
Represents the OCR processing context.
| Constructor | Description |
|---|---|
| OcrContext(InputStream imageStream, ImageLocation imageLocation, String imageFileExtension) | Initializes a new instance of the |
| OcrContext | |
| class. | |
| Method | Description |
|---|---|
| getImageStream() | Gets the stream containing the image to be processed. |
| getImageLocation() | Gets the location of the image. |
| getImageFileExtension() | Gets the file extension of the image. |
public OcrContext(InputStream imageStream, ImageLocation imageLocation, String imageFileExtension)
Initializes a new instance of the OcrContext class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| imageStream | java.io.InputStream | The stream containing the image to be processed. |
| imageLocation | ImageLocation | The location of the image. |
| imageFileExtension | java.lang.String | The file extension of the image. |
public final InputStream getImageStream()
Gets the stream containing the image to be processed.
Returns: java.io.InputStream - The stream containing the image to be processed.
public final ImageLocation getImageLocation()
Gets the location of the image.
Returns: ImageLocation - 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.
Returns: java.lang.String - The file extension of the image.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.