OCR : Microsoft OCR/Cloud OCR/ Abby OCR giving same error : "InvalidImageInput"

I am trying to extract Text from an image. I have attached the screenshot of my workflow. It gives same error all the time. Let me know if i am doing something wrong or is there anything which is not configured properly.
For abby, i have imported namespace as well, For MODI, i have already installed SharePoint designer and enabled Microsoft Document Imagining Feature. For google i only found , Google Core API and i have imported that namespace. But seems, none of the option is working.

Can’t make them work either :frowning:

Tested mainly with Microsoft Cloud OCR.
I’ve used the same exact image from UiPath and from normal C# code.

The latter works normally (although the results are not that great).

The former throws an InvalidImageInput for all configurations I could think of - passing UiPath.Core.Image, System.Drawing.Image, loading from file, using the activity GetOcrText with nested engine, using the engine activity directly… always same result :frowning:

Regards,
Andrzej

Known issue. Will be fixed.

3 Likes

Yes Andrzej.

I did all that tries, But no luck.

This would be the great feature, it helps a lot in some business cases.

Regards,
Viraj.

Hi Badita

Is it Fixed now ?

I am getting below error while using Microsoft OCR for PDF

Main has thrown an exception

Message: Error performing OCR: MicrosoftErrorCreateEngine

Source: Microsoft OCR

Exception Type: Exception

System.Exception: Error performing OCR: MicrosoftErrorCreateEngine

Server stack trace:
at UiPath.Vision.OCR.OCRClient.ScrapeUsingHostService(OCRInput input, OCROptions options, CancellationToken cancelToken)
at UiPath.Vision.OCR.OCRClient.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.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.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)

thanks,
Mudit V.

Hi,

Yes, it should be fixed in v2016.2.6192.32151 which is the latest official version.

4 Likes

Hi,

I am getting the same error: “MicrosoftErrorCreateEngine”, even when I use the example from UiPath site.

I have tried to used Google OCR and it works fine.

Main has thrown an exception

Message: Error performing OCR: MicrosoftErrorCreateEngine

Source: MicrosoftOCR

Exception Type: Exception

System.Exception: Error performing OCR: MicrosoftErrorCreateEngine

Server stack trace: 
   at UiPath.Vision.OCR.OCRClient.ScrapeUsingHostService(OCRInput input, OCROptions options, CancellationToken cancelToken)
   at UiPath.Vision.OCR.OCRClient.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)

Any ideas?

Thanks in advance

make sure you have the latest Studio release version, or you can try the latest beta if you are just testing.

i updated my uipath to 2016.2.6260 (built in 02/20/2017) and it still has this error.

⇒Message: Error performing OCR: MicrosoftErrorCreateEngine

##########################################
Main has thrown an exception

Message: Error performing OCR: MicrosoftErrorCreateEngine

Source: Microsoft OCR

Exception Type: Exception

System.Exception: Error performing OCR: MicrosoftErrorCreateEngine

Server stack trace:
at UiPath.Vision.OCR.OCRClient.ScrapeUsingHostService(OCRInput input, OCROptions options, CancellationToken cancelToken)
at UiPath.Vision.OCR.OCRClient.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.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 UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Is this happening with Microsoft OCR or Microsoft Cloud OCR?

1 Like

this is happening with Microsoft OCR

and Abbyy OCR didn’t work too,
only default engine [Google OCR] works.

with Abbyy OCR ,there is an error like this.
#####################
Main has thrown an exception

Message: Error performing OCR: AbbyyErrorLoadEngine

Source: Abbyy OCR

Exception Type: Exception

System.Exception: Error performing OCR: AbbyyErrorLoadEngine

Server stack trace:
at UiPath.Vision.OCR.OCRClient.ScrapeUsingHostService(OCRInput input, OCROptions options, CancellationToken cancelToken)
at UiPath.Vision.OCR.OCRClient.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.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 UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

2 Likes

I reinstalled SharePoint designer and now Microsoft OCR is work fine.:grin:

1 Like

I am using UiPath Studio Community version 2016.2.6253 Beta on a Windows 7.
Tried with beta and without beta and I can only get it working with Google OCR, Microsoft OCR always throws that Exception. It looks like it needs a dll or something like that but even in the logs no info is given in that way.

I have still same problem. Only Google OCR is working. I have version 2016.2.6274.
So is there way to fix it or go around the problem?

make sure you have the SharepointDesigner2007 properly installed

dear,

If we do not install SharePoint Designer, can we still use “Microsoft OCR” function? thanks~

1 Like

It comes preinstalled with Windows 10. Otherwise you can install it from here Uipath - Install MS Office OCR - #2 by UiRobot.

Hi Guys,
I am able to OCR the content from Abbyy Cloud OCR Engine.

Step 1.
Register your self on https://cloud.ocrsdk.com

Step 2.
Post Registration you will receive Application Id and Password.

Step 3.
Please drag Get OCR Text and Abbyy Cloud COR Engine from Activities Panel and enter App Id and password received from Abbyy Team post registration and everything will start working.

Please let me know if you need further help.

Cheers.
Amit Bhatt

1 Like

I have “Abbyy OCR : Error performing OCR: AbbyyErrorLoadEngine”.
Does anyone have the same issue? All other OCR engines are working.
Maybe I need to install something before?

yes, abbyy engine, with a license :slight_smile: