Predefined Processing Profiles - Code Sample (Windows)

Language:
EN
Product-Line:
FineReader Engine
Version:
10, 11, 12
Platform:
Windows
KB-Type:
Code Samples Collection
Category:
Recognition, OCR: Speed & Quality
Coding:
C#
Image:
image: icon_frenginepredefinedprofiles.gif

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.

Description

Code Sample Predefined Processing Profiles

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 (version 11, 10) or InitializeEngine function (version 12).
  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 DocumentProcessingParams object with the configured RecognizerParams object inside to this method.
  8. Close the FRDocument object using the Close method.
  9. Unload FineReader Engine — use the DeinitializeEngine function.

Video

This website uses cookies which enable you to see pages or use other functions of our websites. You can turn off such cookies in your browser’s settings. If you continue to use these pages, you consent to the use of cookies.