Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get Google Cloud Vision working for Yomitan in Yomininja? #68

Open
NoroiKisaragi opened this issue Jan 5, 2025 · 2 comments
Open

Comments

@NoroiKisaragi
Copy link

NoroiKisaragi commented Jan 5, 2025

I set up a google cloud account, enabled google cloud vision, made a service account with the editor role, then grabbed the json key and put it to yomininja. The result? It works, but yomitan is only grabbing the kanji characters, not the word(s). PaddleOCR and Google Lens grabbed the words, but google cloud vision is not.

For example, if i'm trying to look up the word 大丈夫, i look at the 大 and click shift, and it gives me the definition of the kanji character 大, not the word 大丈夫.

i'm using an updated version of yomitan, which might be the culprit, because i needed access to the yomitan dictionary which has .avif files.

EDIT: Updated yominja to 0.90 and now it's saying No text recognized

EDIT #2: it works in 0.83 but not 0.90rc2

got it working, i'm happy now

@acanady
Copy link

acanady commented Jan 6, 2025

So I'm having an issue with actually even getting cloud vision to work. I'm seeing the api requests in my google cloud account so YomiNinja is calling the API but I keep getting the No text recognized error and google cloud shows a 403 Access Denied error. Did you do anything special when setting up your service account? Mine has editing permissions and Google Vision is enabled in my project. I'm on an older version of Yomininja though, version 0.7.2

@acanady
Copy link

acanady commented Jan 7, 2025

I got it working, decided to just remake the project. I think the issue was the project wasn't hooked up to my billing account, luckily the new one was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants