Search code examples
ocrgoogle-cloud-visiongoogle-vision

Google Cloud Vision API fails to detect currency signs


I'm using Google Cloud Vision API to do OCR in images. Currency signs can prove to be very vital in solution to my problem

Problem that I encountered: Google Cloud Vision API fails to detect certain currency signs(Rupee(₹) in my case)

I tried running the API for this image in 2 ways Currency

  1. I wrote a python program for detection as per the reference: documentation
    The output that I got
    3. 己 AB 长 Rp CHF f Ft € も 元 Jy 手 le # 夫 %24
    Clearly it is failing for some cases.

  2. I tried the demo available on the website. The output that I got
    C A 요 한 ₹ Л В R p * C 元 C H F } F t m 元 with the bounding boxes as

enter image description here

I expected them to have the same outputs. The second one is able to detect Ruppe sign(₹) which I need. I cannot use the demo version in my project. It needs to run on batch of images. Is there any workaround by which I can detect currency sign in the script also.


Solution

  • Run it with Document_text_detection instead of text_detection