Google OCR prerequisites?

Hi! I would like to ask if there is anything I have to do before using Google OCR. I know that to use Microsoft OCR or Abbyy OCR it is needed to install additional software but I can’t find anything about Google OCR.

I’m facing one problem. On first machine everything works smoothly. On second machine activity takes 10 minutes and throws exception no matter what. Below you can see screenshot of activity and exception message.
googleocr

System.AggregateException: One or more errors occurred. —> System.Exception: Error scraping using host process. Service is not available. —> System.TimeoutException: This request operation sent to net.pipe://localhost/UiPath.Vision.Host/BrokerService_IHostService_627364 did not receive a reply within the configured timeout (00:10:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client. Server stack trace: at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object ins, Object outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at UiPath.Vision.Hosting.Service.IHostService.Scrape(OCRInput input, OCROptions options, OCROutput& output) at UiPath.Vision.Hosting.Service.HostServiceProxy.Scrape(OCRInput input, OCROptions options, OCROutput& output) — End of inner exception stack trace — at UiPath.Vision.Hosting.Service.HostServiceProxy.Scrape(OCRInput input, OCROptions options, OCROutput& output) at UiPath.Vision.VisionProcessor.<>c__DisplayClass7_1.<ScrapeUsingHostService>b__0() at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- Server stack trace: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at UiPath.Vision.VisionProcessor.ScrapeUsingHostService(OCRInput input, OCROptions options, CancellationToken cancelToken) at UiPath.Vision.VisionProcessor.Scrape(OCRInput input, OCROptions options, CancellationToken cancelToken, Boolean useHostProcess) at UiPath.Vision.UiImage.ScrapeOCR(OCROptions options, CancellationToken cancellationToken) at UiPath.Core.Activities.OCREngineActivity.&lt;&gt;c__DisplayClass36_0.&lt;BeginExecute&gt;b__0() at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]&amp; 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&amp; msgData) at System.Func1.EndInvoke(IAsyncResult result) at UiPath.Core.Activities.OCREngineActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) ---&gt; (Inner Exception #0) System.Exception: Error scraping using host process. Service is not available. ---&gt; System.TimeoutException: This request operation sent to net.pipe://localhost/UiPath.Vision.Host/BrokerService_IHostService_627364 did not receive a reply within the configured timeout (00:10:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client. Server stack trace: at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type) at UiPath.Vision.Hosting.Service.IHostService.Scrape(OCRInput input, OCROptions options, OCROutput&amp; output) at UiPath.Vision.Hosting.Service.HostServiceProxy.Scrape(OCRInput input, OCROptions options, OCROutput&amp; output) --- End of inner exception stack trace --- at UiPath.Vision.Hosting.Service.HostServiceProxy.Scrape(OCRInput input, OCROptions options, OCROutput&amp; output) at UiPath.Vision.VisionProcessor.&lt;&gt;c__DisplayClass7_1.&lt;ScrapeUsingHostService&gt;b__0() at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute()<—

Did someone ever faced such problem with Google OCR?

Hi @srogo

Due to this portion of the error:
This request operation sent to net.pipe:
I would suggest this post:

This problem occured because I have used newest lang files for Google OCR with older version of UiPath. Solution was to use lang files from 2015.

1 Like