1

我想从包含我正在使用 UIPath 的图像的 PDF 中提取文本。我尝试过 Abby、microsoft 和 google OCR 引擎,但都遇到了同样的错误。以下是错误堆栈跟踪:-

ExtractMail has thrown an exception

Source: Abbyy OCR

Message: Error performing OCR: AbbyyErrorLoadEngine

Exception Type: Exception

System.Exception: Error performing OCR: AbbyyErrorLoadEngine

Server stack trace: 
   at UiPath.Vision.VisionClient.ScrapeUsingHostService(OCRInput input, OCROptions options, CancellationToken cancelToken)
   at UiPath.Vision.VisionClient.ScrapeImage(OCRInput input, OCROptions options, CancellationToken cancelToken, Boolean useHostProcess)
   at UiPath.Vision.VisionClient.Scrape(OCRInput input, OCROptions options, CancellationToken cancelToken, Boolean useHostProcess)
   at UiPath.Vision.UiImage.ScrapeOCR(OCROptions options, CancellationToken cancellationToken)
   at UiPath.Core.Activities.OCREngineActivity.<>c__DisplayClass36_0.<BeginExecute>b__0()
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at System.Func`1.EndInvoke(IAsyncResult result)
   at UiPath.Core.Activities.OCREngineActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
   at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
   at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
4

1 回答 1

0

可能是您在执行时遇到问题UiPath.Vision.Host32.exe(在 18.2+ 中它位于C:\Users\<username>\.nuget\packages\uipath.vision\<version number>\build\UiPath.Vision.Host32.exe)。它可能被 AV 软件或组策略阻止。尝试使用Process Explorer检查您是否会得到有关正在发生的事情的任何提示。

于 2019-03-29T17:08:33.207 回答