OcrContext

Inheritance: java.lang.Object

public class OcrContext

Represents the OCR processing context.

Constructors

Constructor Description
OcrContext(InputStream imageStream, ImageLocation imageLocation, String imageFileExtension) Initializes a new instance of the OcrContext class.

Methods

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.

OcrContext(InputStream imageStream, ImageLocation imageLocation, String imageFileExtension)

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.

getImageStream()

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.

getImageLocation()

public final ImageLocation getImageLocation()

Gets the location of the image.

Returns: ImageLocation - The location of the image.

getImageFileExtension()

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.