matt-m-o / YomiNinja

Open-source OCR and dictionary tool.
GNU General Public License v3.0
278 stars 6 forks source link

Cloud Vision API - No Text Recognized Please Try Again #30

Open zigma9114 opened 4 months ago

zigma9114 commented 4 months ago

Hello, I am using the latest release, created an API Key where Google Cloud Vision is enabled and put it in the settings. But when I try to use Cloud Vision I ended up getting error: !No Text Recognized - Please Try Again

As comparison the Google Lens method works flawlessly so it's no issue with the screen I am trying to OCR

I am also using another application (Luna Translator) using the same API Key and Google Vision method worked there, so I don't it's the API issue either

On another note, the setting for this has API Key and Client Email. I am not sure what to put in Client Email as previosu experience of using Google Cloud Vision in other enabling apps I only need to put the API Key (I used aforementioned Luna Translator and Ztranslate)

Can you help on this?

matt-m-o commented 3 months ago

Sorry for the delayed reply! I couldn’t get it to work using an API key either. Currently, Google recommends using Service Accounts instead. You don't need to write the JSON file yourself. Download the .json file from Google Cloud and import it into YomiNinja. Please check out this tutorial (1:14 - 3:24) for more details on how to create a service account.