Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only

google OCR service provider error

  • 1.  google OCR service provider error

    Posted Wed May 11, 2022 02:09 AM
    Edited by Sonny Siah Wed May 11, 2022 02:13 AM
    Hi, 

    I got below error when using GET PDF region Text with google as OCR service provider. If switch to use Abbyy is OK. 

    "Failed to find library "tesseract41.dll" for platform x64"



    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Failed to find library "tesseract41.dll" for platform x64.
    at InteropDotNet.LibraryLoader.LoadLibrary(String fileName, String platformName)
    at InteropRuntimeImplementer.TessApiSignaturesInstance.TessApiSignaturesImplementation..ctor(LibraryLoader loader)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    at System.Activator.CreateInstance(Type type, Object[] args)
    at InteropDotNet.InteropRuntimeImplementer.CreateInstance[T]()
    at Tesseract.Interop.TessApi.Initialize()
    at Tesseract.Interop.TessApi.get_Native()
    at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable`1 configFiles, IDictionary`2 initialOptions, Boolean setOnlyNonDebugVariables)
    at WDG.Automation.Windows.TesseractEngineLoader.WDG.Vision.ITesseractEngineLoader.Load(CultureInfo culture, EngineMode mode, CancellationToken cancellation)
    at WDG.Vision.TesseractOcr.<GetText>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.Automation.Windows.PdfRegionTextCommand.<GetTextByOCR>d__30.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.Automation.Windows.PdfRegionTextCommand.<Execute>d__29.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()



    ------------------------------
    Sonny Siah
    Infra365 Sdn Bhd
    ------------------------------