install tesseract with apt is not exist

This commit is contained in:
Cédric Abonnel 2022-08-14 17:21:49 +00:00
parent 16de3b988c
commit f84e19ddf4
1 changed files with 17 additions and 0 deletions

View File

@ -17,8 +17,25 @@
# Change log: 2012-01-08: Initial release. Tested on Mac OS X Lion.
#
###############################################################################
clear
# Tesseract existe ?
tesseract --version > /dev/null
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ] ; then
echo -e "Déploiement de TESSERACT OCR avec APT\n"
sudo sudo apt install tesseract-ocr tesseract-ocr-fra
fi
tesseract --version > /dev/null
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ] ; then
echo -e "Impossible d'utiliser TESSERACT\n"
exit 127
fi
fichierLog=convertPDF.log
echo -e "\n"