#!/bin/bash ## sélection d'une zone sur l'écran pour conversion ocr ##fichier de sortie sortie=/chemin/vers/zone_ocr.txt ##choix langue (fra eng etc...) langue=fra cd ~ import -quality 70 -depth 8 ~/tmp.jpeg tesseract ~/tmp.jpeg tmp -l $langue 2> /dev/null && rm -f ~/tmp.jpeg cat ~/tmp.txt >> $sortie && rm -f ~/tmp.txt