Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Multilingual OCR.

Open user123456000 opened this issue 1 year ago • 3 comments

I'm talking about the line in ocr.sh ocr_text=$(grim -g "$(slurp)" - | tesseract -l eng - - 2>/dev/null) Anyone can download additional languages ​​themselves and change the tesseract command to something like tesseract -l eng+jpn However, after each Ax-Shell update, you have to do it again. At first, I wanted to suggest looking at all available files in the tessdata folder, but this is unnecessary for something that a person will change once. You can simply do tesseract -l "$(cat some_file)" However, I haven't figured out where the best place to place this file is, so I'll leave that choice up to you

user123456000 avatar Jun 01 '25 17:06 user123456000

You are completely right. Actually the OCR script was a PR that I didn't really check. I'll update it.

Axenide avatar Jun 01 '25 17:06 Axenide

The tesseract-data-eng package was not downloaded with the install script. The script does not work without it

vinatic avatar Sep 17 '25 21:09 vinatic

@vinatic solved.

Regarding the original issue, I'll see what I can do.

Axenide avatar Sep 18 '25 06:09 Axenide