Skip to main content

MacOS OCR and translate in console

Had received a purple envelope from Belastingdienst.nl with some important information of the 30%, so needed to get this into English.

Made for a good reason to figure this process out.


So it looks like Tesseract-OCR is the best Open Source OCR package I could find and the whole project is at https://github.com/tesseract-ocr/tesseract and it credits Google as the developer at https://en.wikipedia.org/wiki/Tesseract_(software)

For the translation we will use the Translate Shell, found at https://www.soimort.org/translate-shell/. This lovely little script supports a number of translation engines, so one of them should work for you.

1. Scan the letter.



Many options here, so not going to waste time on how to get this done. Just if you have a text option and go for 300DPI. We need TIFF on the other end, so if you can get TIFF, just do that.

2. Install the software

brew install tesseract

brew install translate-shell


3. Run the software

tesseract input.tiff output

trans -i output.txt



Popular posts from this blog

Double Bunk in Caravan

With our family expanding, we faced a challenge of adding another berth in our caravan, but I did not want to make it permanent. A couple of options are available, of which one is simply to add a bunk to the single berth. We however did not want to cause any permanent markings on the interior of the caravan .

Netdata + SNMP + Mikrotik

Always wanted to see my Internet line usage as a gauge without having to log into the router. So today I configured SNMP in Netdata to collect from my Mikrotik router. /etc/netdata/node.d/snmp.conf: { "enable_autodetect": false, "update_every": 5, "max_request_size": 100, "servers": [ { "hostname": "10.1.1.1", "community": "public", "update_every": 5, "max_request_size": 50, "options": { "timeout": 20 }, "charts": { "mikrotik1.cpu": { "title": "CPU ", "units": "percentage", "type": "line", "family": "cpu", "dimensions": { "used&

CasparCG Simple Playlist

It is possible to build a simple playlist as a rundown in the CasparCG client. It will very simply play each item after each other that are on the same layer. In this very simple post I show how to build such a playlist including the very important step of activating the OSC. The Open Sound Control (OSC) implementation is how the client knows what the server is doing and then being able to send new command back to the server when a piece of media has ended to trigger playback of the next piece. For more details on the OCS, please see  http://casparcg.com/wiki/CasparCG_OSC_Protocol