#!/bin/sh set -o pipefail lang=${2:-eng} if tesseract "$1" - -l $lang | xclip -selection clipboard ; then notify-send "Text copied" else notify-send "Could not copy text" fi
When the text is especially difficult for tesseract, I can use Gemma3-4B via llama.cpp's llama-mtmd-cli, but that takes a minute.
When the text is especially difficult for tesseract, I can use Gemma3-4B via llama.cpp's llama-mtmd-cli, but that takes a minute.