A "Failed to OCR the current image. (-2147221398)" Error Occurs When OCRing Certain Non-Letter-Sized Images.

August 7, 2014 | KB: 1011715
Laserfiche 7.2.1, Import Agent 7.0.2, Quick Fields 7.1.2, Snapshot 7.0.3, Scanning 7.2.1, Web Access 7.2.1

Summary

When OCRing documents, the OCR engine may skip over certain non-letter-sized images. The OCR process will continue OCRing the rest of the document. However, you may receive the following error message in the OCR processing dialog box:

    YourDocument, page x, Failed to OCR the current image. (-2147221398)

Cause

During the OCR process, the OCR engine makes automatic adjustments in dividing up an image into zones of text. This process can occasionally fail for certain images with non-letter-sized dimensions (e.g. envelopes, postcards, checks, etc.)

Resolution

There is a hotfix available for the OmniPage OCR engine. The fix is an updated version of BPOmniOCR.exe (version 7.2.1.3) and OmniOCRWrapper.dll (version 7.2.1.3).

The fix involves disabling the OCR engine's ability to automatically detect zones of text. This allows the OCR engine to handle the problem images.

To update the OmniPage OCR engine

  1. Close any Laserfiche client application that may be using the OCR engine.
  2. Click the following link to download a zip file containing the updated version of BPOmniOCR.exe and OmniOCRWrapper.dll.
    Hotfix_SCR28726
  3. Replace the existing versions of BPOmniOCR.exe and OmniOCRWrapper.dll located at "C:\Program Files\Common Files\Laserfiche\Batch Processor\BPOmniOCR" with the versions included in the zip file.

More Information

BPOmniOCR.exe (version 7.2.1.3) also allows you to configure a sensitivity option for the OmniPage OCR engine. You can modify the "HKEY_LOCAL_MACHINE\SOFTWARE\Laserfiche\Laserfiche OmniPage OCR\OCREngine Sensitivity" DWORD value. "1" is the default value. If BPOmniOCR.exe (version 7.2.1.3) does not fully resolve your OCR issues, try setting the "OCREngine Sensitivity" DWORD value to "0"

You can manually create and edit this registry value or you can use an updated version of the Laserfiche Scanning Troubleshooter utility to create and modify the value.

To modify the OmniPage OCR engine's sensitivity setting

  1. Click the following link to download a zip file containing an updated version of the Laserfiche Scanning Troubleshooter utility.
    Laserfiche Scanning Troubleshooter.zip
  2. Perform one of the following:
    • If Laserfiche Scanning is installed on your computer, replace the existing version of the Laserfiche Scanning Troubleshooter utility with the updated version included in the zip file. The default installation path of Laserfiche Scanning is "C:\Program Files\Laserfiche\Laserfiche Scanning."
    • If Laserfiche Scanning is not installed, extract the contents of the zip file to a temporary location.
  3. Double-click "Laserfiche Scanning Troubleshooter.exe" to start the utility.
  4. In the Troubleshooting section, click Configure.
  5. Click the OCR tab.
  6. Select the Low option.
  7. Click OK to save your change.

Note: This setting affects all Laserfiche products using the OmniPage OCR Engine.