Hi,


I am trying to upload one image and extract text from that image.


Does anyone knows something who already does that?


I already tested some APIs on web, but the problem is that I would like to get the code on my side.


Thanks in advance,

Luis Dinis

Hi Luis,

I built an extension that uses Google's Cloud Vision to perform OCR on images. Take a look: https://www.outsystems.com/forge/component/1572/googlecloudvisionocr/


Edit: sorry, I missed the part where you stated that you wanted all the code on your side. For what is worth, when I was looking into free .Net OCR libraries to use in my extension, none of them seemed to produce consistently reliable results. At least not as reliable as Google's Web API.

Aurelio Santos wrote:

Hi Luis,

I built an extension that uses Google's Cloud Vision to perform OCR on images. Take a look: https://www.outsystems.com/forge/component/1572/googlecloudvisionocr/


Edit: sorry, I missed the part where you stated that you wanted all the code on your side. For what is worth, when I was looking into free .Net OCR libraries to use in my extension, none of them seemed to produce consistently reliable results. At least not as reliable as Google's Web API.


I already tryed your extension. It works ! Nice job Aurelio !


But my point is I really need to have the code on my side and not on the API side and I don't really like to use keys like 'Apikey'.

If you know another way to do it, please reply to me.


Thank you.

One possible solution would be to build your own extension with a local OCR engine. As I stated in my edit, I did try out some free .Net OCR libraries, but none of them were as reliable as Google's Cloud Vision. You could try some of them yourself, to see if they are good enough for your requirements. Also, if you have the budget for it, you could consider investing in a comercial OCR library.

I am getting below error while trying to read text from an image. Does this API method needs billing?


Error:

Google.Apis.Requests.RequestError This API method requires billing to be enabled. Please enable billing on project #640714668802 by visiting https://console.developers.google.com/billing/enable?project=640714668802 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry. [403] Errors [ Message[This API method requires billing to be enabled. Please enable billing on project #640714668802 by visiting https://console.developers.google.com/billing/enable?project=640714668802 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.] Location[ - ] Reason[forbidden] Domain[global] ]

Hello Shivam.

From what I can read on the component's page, you can use it for free

https://cloud.google.com/vision/

I used it in early 2018 without paying.


If you are having issues with a component, you should ask in that component page so that the members of the development team can help you. Don't use an unrelated post that is 2 years old.