How to force processing station to store confidence level

Question

How to force processing station to store confidence level?

For example when batches are created directly in the Project Setup Station, they contains a character confidence level. But when a hot folder or Scanning station is used, zero is get. 

Answer

    1. Open the regedit.exe and navigate to HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\12.0\Controller. If there is no Controller key,  create it.
    2. Add a new String Value with name ForceSaveConfidenceLevel and value true.
    3. Run the Processing Station with identity of the user. Open Windows services and change the Log On As to your account.
    4. Retrieve the confidence level for a character from a field:
      Context.Field("Confidence").Text = Context.Field("Field1").Symbols[0].Confidence.ToString();

Note: The confidence level is stored only for recognized characters. If FlexiCapture use a text from PDF text layer, then confidence will be equal to zero.

Additional information

ICharacterParams

Have more questions? Submit a request

Comments

3 comments

  • Avatar

    Salman Fariz

    Hi, I followed all the steps, inside the document definition, when I run test it's showing the confidence percentage. But when I close the definition and publish it, then I created a test batch and loaded a new document in to that batch of the specific document type, it shows confidence level as 0. Can anyone help me please.

    0
  • Avatar

    Jervy Dela Cruz

    Hi Salman,

    See the note in this article: 

    Note: The confidence level is stored only for recognized characters. If FlexiCapture use a text from PDF text layer, then confidence will be equal to zero.

    Document Definition doesn't use PDF text layer and only use OCR.

    So, try to change your processing to Use OCR only.

    0
  • Avatar

    Nikita Shevchenko

    You need to enable the registry key under every user that can possibly run recognition tasks:

    • Accounts that run Processing Station service (for scenarios with the background recognition, e.g. when files are going throw the workflow).
    • Accounts that launch Project Setup Station/Verification Stations (for scenarios when a user re-recognizes documents on stations).

    E.g. if the Processing Station service is run under the NETWORK SERVICE account, then the registry key needs to be created here:

    HKEY_USERS\S-1-5-20\SOFTWARE\ABBYY\FlexiCapture\12.0\DAForms 

    If it is the service account then you need it to be created for that specific user.
     
    To determine the SSID of a specific user account, you may open Registry Editor and navigate to:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    0

Please sign in to leave a comment.