public class OcrConnectorBase extends Object
| Constructor and Description |
|---|
OcrConnectorBase()
Initializes a new instance of the
OcrConnectorBase class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTextAreasSupported()
Gets the value that indicates whether the text areas extraction is supported.
|
boolean |
isTextSupported()
Gets the value that indicates whether the text extraction is supported.
|
String |
recognizeText(InputStream imageStream,
int pageIndex,
OcrOptions options)
Deprecated.
OCR Connector doesn't support the page extraction. By default, pageIndex is ignored.
|
String |
recognizeText(InputStream imageStream,
OcrOptions options)
Recognize a text from
imageStream stream. |
Iterable<PageTextArea> |
recognizeTextAreas(InputStream imageStream,
int pageIndex,
Size pageSize,
OcrOptions options)
Deprecated.
OCR Connector doesn't support the page extraction. By default, pageIndex is ignored.
|
Iterable<PageTextArea> |
recognizeTextAreas(InputStream imageStream,
Size pageSize,
OcrOptions options)
Recognize text areas from
imageStream stream. |
public OcrConnectorBase()
OcrConnectorBase class.public boolean isTextSupported()
true if the text extraction is supported; otherwise, false.public boolean isTextAreasSupported()
true if the text extraction areas is supported; otherwise, false.public String recognizeText(InputStream imageStream, int pageIndex, OcrOptions options)
imageStream stream.imageStream - The image representation of the document page.pageIndex - The page index of the document.options - The OCR options.null if text recognizing isn't supported.public String recognizeText(InputStream imageStream, OcrOptions options)
imageStream stream.imageStream - The image representation of the document page.options - The OCR options.null if text recognizing isn't supported.public Iterable<PageTextArea> recognizeTextAreas(InputStream imageStream, int pageIndex, Size pageSize, OcrOptions options)
imageStream stream.imageStream - The image representation of the document page.pageIndex - The page index of the document.pageSize - The size of the document page.options - The OCR options.PageTextArea objects; null if text areas recognizing isn't supported.public Iterable<PageTextArea> recognizeTextAreas(InputStream imageStream, Size pageSize, OcrOptions options)
imageStream stream.imageStream - The image representation of the document page.pageSize - The size of the document page.options - The OCR options.PageTextArea objects; null if text areas recognizing isn't supported.Copyright © 2026. All rights reserved.