| Constructor and Description |
|---|
OcrInput(InputType type) |
OcrInput(InputType type,
PreprocessingFilter filters)
Constructor to create container and set the type of images / documents and filters for further processing / recognition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(BufferedImage image)
Add the BufferedImage containing the image for recognition / processing.
|
void |
add(BufferedImage image,
int startPage,
int pagesCount)
Add the BufferedImage containing the multipage image for recognition / processing.
|
void |
add(InputStream stream)
Add the InputStream containing the image for recognition / processing.
|
void |
add(InputStream stream,
int startPage,
int pagesCount)
Add the InputStream containing the multipage image for recognition / processing.
|
void |
add(int[] pixels,
int width,
int height,
int bitsPerPixel)
Add the decoded image to the list for recognition / processing.
|
void |
add(String fullPath)
Add the path or URI containing the image for recognition / processing.
|
void |
add(String fullPath,
int startPage,
int pagesCount)
Add the multipage images / documents for recognition / processing.
|
void |
addBase64(String base64)
Add the base64 string containing the image for recognition / processing.
|
void |
clear()
Set the amount of items for processing / recognition as 0.
|
void |
clearFilters()
Remove all filters.
|
ImageData |
get(int index)
Returns information about processed / recognized image.
|
Iterator<ImageData> |
iterator() |
void |
replaceFilters(PreprocessingFilter filters)
Remove old filters and set new.
|
int |
size()
Amount of items for processing / recognition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic OcrInput(InputType type, PreprocessingFilter filters)
type - Set the images/documents type will be added to container.filters - Set processing filters will be applied for further processing or recognition.public OcrInput(InputType type)
public void replaceFilters(PreprocessingFilter filters)
filters - Processing filters will be applied for further processing or recognition.public void clearFilters()
public void add(String fullPath)
fullPath - Path to the image/ document / folder / archive.public void add(BufferedImage image)
image - BufferedImage containing the image or document.public void add(String fullPath, int startPage, int pagesCount)
fullPath - Path to the image/ document / folder / archive.startPage - The first page/image for processing / recognition. Use for documents, zip, folders.pagesCount - The total amount of pages/images for processing / recognition. Use for documents, zip, folders. Default = all.public void add(BufferedImage image, int startPage, int pagesCount)
image - BufferedImage containing the multipage document.startPage - The first page/image for processing / recognition. Use for documents.pagesCount - The total amount of pages/images for processing / recognition. Use for documents. Default = all.public void add(int[] pixels,
int width,
int height,
int bitsPerPixel)
pixels - The pixels are represented as 32-bit integer values (rgb).width - Image width.height - Image height.bitsPerPixel - Supports 1-32 bits.public void add(InputStream stream)
stream - InputStream containing the image or document.public void add(InputStream stream, int startPage, int pagesCount)
stream - InputStream containing the multipage document.startPage - The first page/image for processing / recognition. Use for documents.pagesCount - The total amount of pages/images for processing / recognition. Use for documents. Default = all.public void addBase64(String base64)
base64 - Base64 string with single image.public void clear()
public int size()
public ImageData get(int index)
index - Position of the image in the List.ImageDataCopyright © 2025 Aspose. All rights reserved.