sudo apt install tesseract-ocr yad
nano ~/.script/ocr-thunar.sh
#!/bin/bash
FILE="$1"
TMP=$(mktemp)
LANG=eng # Ganti ke 'ind' kalau mau OCR bahasa Indonesia
# Jalankan OCR ke file temp
tesseract "$FILE" "$TMP" -l "$LANG" >/dev/null 2>&1
OUT="${TMP}.txt"
# Tampilkan hasil OCR di jendela YAD
yad --title="OCR Result" --text-info --filename="$OUT" --width=700 --height=500
# Bersihkan file sementara
rm -f "$TMP" "$OUT"
chmod +x ~/.script/ocr-thunar.sh
~/.script/ocr-thunar.sh %f