install tesseract with apt is not exist
This commit is contained in:
parent
16de3b988c
commit
f84e19ddf4
17
convertPDF
17
convertPDF
|
@ -17,8 +17,25 @@
|
||||||
# Change log: 2012-01-08: Initial release. Tested on Mac OS X Lion.
|
# Change log: 2012-01-08: Initial release. Tested on Mac OS X Lion.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
clear
|
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
|
fichierLog=convertPDF.log
|
||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
Loading…
Reference in New Issue