OcrConnectorBase
Contents
[
Hide
]
Inheritance: java.lang.Object
public class OcrConnectorBase
Provides the OCR functionality.
Constructors
Constructor | Description |
---|---|
OcrConnectorBase() | Initializes a new instance of the OcrConnectorBase class. |
Methods
Method | Description |
---|---|
recognizeText(InputStream imageStream, int pageIndex, OcrOptions options) | Recognize a text from imageStream stream. |
recognizeTextAreas(InputStream imageStream, int pageIndex, Size pageSize, OcrOptions options) | Recognize text areas from imageStream stream. |
OcrConnectorBase()
public OcrConnectorBase()
Initializes a new instance of the OcrConnectorBase class.
recognizeText(InputStream imageStream, int pageIndex, OcrOptions options)
public String recognizeText(InputStream imageStream, int pageIndex, OcrOptions options)
Recognize a text from imageStream stream.
Parameters:
Parameter | Type | Description |
---|---|---|
imageStream | java.io.InputStream | The image representation of the document page. |
pageIndex | int | The page index of the document. |
options | OcrOptions | The OCR options. |
Returns: java.lang.String - A string that represents a recognized text; null if text recognizing isn’t supported.
recognizeTextAreas(InputStream imageStream, int pageIndex, Size pageSize, OcrOptions options)
public Iterable<PageTextArea> recognizeTextAreas(InputStream imageStream, int pageIndex, Size pageSize, OcrOptions options)
Recognize text areas from imageStream stream.
Parameters:
Parameter | Type | Description |
---|---|---|
imageStream | java.io.InputStream | The image representation of the document page. |
pageIndex | int | The page index of the document. |
pageSize | Size | The size of the document page. |
options | OcrOptions | The OCR options. |
Returns: java.lang.Iterable<com.groupdocs.parser.data.PageTextArea> - A collection of PageTextArea objects; null if text areas recognizing isn’t supported.