![]() |
Aspose.OCR for Python via Java API docs
|
Main class to collect images. More...
Public Member Functions | |
| __init__ (self, InputType type, PreprocessingFilter filters=None) | |
| add (self, str fullPath, int startPage=None, int pagesNumber=None) | |
| Add the path or URI containing the image for recognition / processing. | |
| add_base64 (self, str base64) | |
| Add the base64 string containing the image for recognition / processing. | |
| addStream (self, image_data_binary, int startPage=None, int pagesNumber=None) | |
| Add the InputStream containing the image for recognition / processing. | |
| clear (self) | |
| Set the amount of items for processing / recognition as 0. | |
| clear_filters (self) | |
| Remove all filters. | |
| ImageData | get (self, int index) |
| Returns information about processed / recognized image. | |
| getJavaClass (self) | |
| init (self, javaClass) | |
| size (self) | |
| Amount of items for processing / recognition. | |
Public Attributes | |
| source | |
| type | |
Main class to collect images.
| __init__ | ( | self, | |
| InputType | type, | ||
| PreprocessingFilter | filters = None |
||
| ) |
Constructor to create container and set the type of images / documents and filters for further processing / recognition. @param type: Set the images/documents type will be added to container. @param filters: Set processing filters will be applied for further processing or recognition.
| add | ( | self, | |
| str | fullPath, | ||
| int | startPage = None, |
||
| int | pagesNumber = None |
||
| ) |
Add the path or URI containing the image for recognition / processing.
The type of the image must correspond to the type specified in the constructor.
| fullPath | Path to the image/ document / folder / archive. |
| startPage | The first page/image for processing / recognition. Use for documents, zip, folders. |
| pagesNumber | The total amount of pages/images for processing / recognition. Use for documents, zip, folders. Default = all. |
| add_base64 | ( | self, | |
| str | base64 | ||
| ) |
Add the base64 string containing the image for recognition / processing.
The type of the image must correspond to the type specified in the constructor.
| base64 | Base64 string with single image. |
| addStream | ( | self, | |
| image_data_binary, | |||
| int | startPage = None, |
||
| int | pagesNumber = None |
||
| ) |
Add the InputStream containing the image for recognition / processing.
The type of the image must correspond to the type specified in the constructor.
| image_data_binary | containing the image or document. |
| startPage | The first page/image for processing / recognition. Use for documents, zip, folders. |
| pagesNumber | The total amount of pages/images for processing / recognition. Use for documents, zip, folders. Default = all. |
| clear | ( | self | ) |
Set the amount of items for processing / recognition as 0.
Clear the collection.
| clear_filters | ( | self | ) |
Remove all filters.
| ImageData get | ( | self, | |
| int | index | ||
| ) |
Returns information about processed / recognized image.
| index | Position of the image in the List. |
| getJavaClass | ( | self | ) |
| init | ( | self, | |
| javaClass | |||
| ) |
| size | ( | self | ) |
Amount of items for processing / recognition.
| source |
| type |