this post was submitted on 05 Apr 2024
17 points (94.7% liked)

Open Source

31236 readers
249 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

Hey guys, I am looking for a desktop app (Linux) that can translate text in images. I know I can do that with google or some other websites but I was wondering if you have an open source alternative.

top 5 comments
sorted by: hot top controversial new old
[–] mindlight@lemm.ee 8 points 7 months ago (1 children)

I don't have the answer your looking for but maybe a pointer for where to look and what to look for ..

What you want is essentially done in two steps.

  1. Optical Character Recognition - an image consists of pixels. There is no text, just pixels. You need a program that can see the difference between pixels forming an A and an B. Tesseract is a very competent program for this and it's free. However, it's command line only but I know there are GUI applications based on Tesseract.

  2. Translate text from one language to another - maybe Dialect?

[–] ghassan@lemm.ee 5 points 7 months ago (1 children)

If you're on Gnome, you can use Frog for step 1 then Dialect for step 2.

[–] rollingflower@lemmy.kde.social 2 points 7 months ago (1 children)
[–] garrett@lemm.ee 5 points 7 months ago (1 children)

Just pointing this out, as there are non-free services that the apps use:

Frog is awesome, but note that while Frog works offline for OCR, it has TTS (text to speech) which uses an online service. As long as you avoid having it read to you, it's all done locally.

And Dialect always uses an online service. Some of the servers are FOSS, but some aren't. But everything you type or paste into it is sent somewhere else. (This is the case with using translation websites too, of course.) I'm not saying you shouldn't use it; I'm just saying that you should be aware.

Hopefully Dialect will add Bergamot (what both Firefox by default & the "translate locally" extension use for translation) at some point. Dialect has a longstanding issue about it, but no forward motion yet. https://github.com/dialect-app/dialect/issues/183

For something open source that runs completely on your computer for translations, you'd want Speech Note. https://flathub.org/apps/net.mkiol.SpeechNote It's Qt based, but works well. In addition to translation, it can do text to speech and speech to text too. You do have to download models first (easily available as a click in the app), but everything, including the text you're working with, is all done locally.

I use both Frog and Speech Note all the time on my computer (GNOME on Fedora Linux). They're excellent.

[–] rollingflower@lemmy.kde.social 1 points 7 months ago

Interesting, didnt know the Translation Engine was called Bergamot. Yes this absolutely needs an Android app, a Linux app, and integration everywhere. Its awesome.