Predefined OCR Processing Profiles Sample (FRE 10)

This sample shows how you can easily configure FineReader Engine with predefined processing profiles. All you need is to select the profile suitable for your task before processing and ABBYY FineReader Engine will choose the best settings automatically.

Screenshot made with a Laptop (2009) Core2 Duo T9800, 2,9 GHz, Windows 7, 32 bit;
Production machines are faster and have more cores

Description

The sample processes document images from the specified folder using two different predefined processing profiles. Then it compares the speed of processing with these profiles and the number of recognized elements. The result of comparison is shown on a diagram and in the table below the diagram.

To view how it works:

  1. Select the folder with images to process.
  2. Specify recognition languages of the processing documents.
  3. Specify two different predefined processing profiles to compare.
  4. To run the sample, click Go.
  5. Change the settings and click Recalculate to receive new statistics. You can restore default settings by clicking Restore defaults.

Details

The sample uses the following procedure of processing:

  1. Create the Engine object using the GetEngineObject function.
  2. Load necessary modules using the LoadModule method of the Engine object.
  3. Load a predefined profile for your scenario using the LoadPredefinedProfile method of the Engine object.
  4. Call the CreateFRDocument method of the Engine object to create the FRDocument object.
  5. Use the AddImageFile method to add pages to the document.
  6. To specify recognition language, use the SetPredefinedTextLanguage method of the RecognizerParams object.
  7. Call the Process method of the FRDocument object. Pass the RecognizerParams object as a subobject of the PageProcessingParams object to this method.
  8. Close the FRDocument object using the Close method.
  9. Unload FineReader Engine — use the DeinitializeEngine function.

Further Info