This object is implemented in FRE for Linux and Windows.
- Implement the IImageSource and IFileAdapter interfaces, which provide access to the image source and files in it.
- [optional] Implement the IAsyncProcessingCallback interface to manage the processing. The methods of this interface allow you to handle errors and/or cancel the processing.
- Call the CreateBatchProcessor method of the Engine object, to receive the BatchProcessor object.
- Use the PageFlushingPolicy property to set the mode of working with document pages in memory.
- Call the Start method to initialize the processor and invoke asynchronous recognition processes. You can specify the source of images and processing settings in this method.
- The BatchProcessor object cannot be reused. Repeated calls to the Start method will cause errors.
- Do not create and use several Batch Processors simultaneously, as this may lead to the confusion of processing pages.
- Call the GetNextProcessedPage method in a loop until the method returns 0, which means that there are no more images in the source and all the processed images have been returned to the user.
Properties
| Name | Type | Description |
|---|---|---|
| Application | Engine, read-only | Returns the Engine object. |
| PageFlushingPolicy | PageFlushingPolicyEnum | Specifies if the ImageDocument and the Layout objects for corresponding pages should be unloaded and saved to disk if there are no references to these objects. <Note> In Linux , when this property value is set to PFP\_KeepInMemory, the image documents and layouts for unused pages are not saved to disk. </Note> <Note> In Windows, to unload and save to disk the ImageDocument and the Layout objects for separate pages of the document, use the IFRPage::Flush method for the corresponding pages. </Note> This property is PFP\_Auto by default. |
Methods
| Name | Description |
|---|---|
| GetNextProcessedPage | Provides the background processing until the next recognized image is available. |
| ProcessPageAsync | Allows you to repeat processing of a page with another parameters. The page can be pushed at the beginning or at the end of the processing queue. |
| Start | Prepares the Batch Processor for work. The method invokes asynchronous recognition processes, specifies the source of images and processing settings. |
Output parameter
This object is the output parameter of the CreateBatchProcessor method of the Engine object.Samples
C# code
C# code
