- If you need to keep recognition session between pages, e.g., if you use the cache dictionary. In this case, you should set the AutoCleanRecognizerSession property to FALSE and clean recognition session manually by calling CleanRecognizerSession method when necessary (when you do no longer need the cache dictionary or if you are going to process a page with parameters (brightness, text types, fonts, etc.) that are extremely different from previous pages).
- If you need to clean recognition session during recognition of one page, e.g., if the page contains blocks of text with some parameters (text types, fonts, etc.) that differ significantly from other text blocks’ parameters.
- If pages are recognized sequentially in one process and there are no more pages to process (for example, IFRDocument::Close method has been called or the document has been released and there is no other documents).
- If there are no more pages to process (for example, IFRDocument::Close method has been called or the document has been released and there is no other documents).
- If pages are recognized in parallel processes — after the end of each parallel process.
- If pages are recognized in parallel processes using BatchProcessor and there are no more pages to process (IBatchProcessor::GetNextProcessedPage returns 0).
- If the LoadPredefinedProfile or LoadProfile method of the Engine object is called.
- If there are no more pages to process (for example, IFRDocument::Close method has been called or the document has been released and there is no other documents).
- If the LoadPredefinedProfile or LoadProfile method of the Engine object is called.
