You are viewing limited content. For full access, please sign in.

Question

Question

OCR not working

asked on December 5, 2014

When using the following code I get the this error message: "Message: Retrieving the COM class factory for component with CLSID {46918080-746B-40A4-824B-85D91B1F3D68} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

string docPath = "\\Test";
DocumentInfo docInfo = Document.GetDocumentInfo(docPath, LFSession);
docInfo.Lock(LockType.Exclusive);

using (OcrEngine ocrEngine = OcrEngine.LoadEngine())
{
     ocrEngine.AutoOrient = true;
     ocrEngine.Decolumnize = true;
     ocrEngine.OptimizationMode = OcrOptimizationMode.Accuracy;

     ocrEngine.Run(docInfo);
}

docInfo.Unlock();

I just upgraded to SDK 9.2 thinking that would fix my issue. It didn't. Which reference/assembly files do I need to check?

0 0

Answer

SELECTED ANSWER
replied on December 5, 2014

That GUID refers to C:\Program Files\Common Files\Laserfiche\Batch Processor\BPObjectsClient.dll, version 8.3.  If you switched to the 9.2 SDK, you should update your references to the newer OCR engine and use BPObjectsClient91.dll.

0 0
replied on December 5, 2014

I updated DocumentServices.dll to the 9.2 version, now it works perfectly. I made sure to update my other references while i was at it.

Thanks.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.