20 lines
419 B
Bash
20 lines
419 B
Bash
![]() |
#!/bin/sh
|
||
|
|
||
|
# check if tesseract is avaliable
|
||
|
if [ -x "$(command -v tesseract)" ]
|
||
|
then
|
||
|
echo "> [Tesseract] tesseract command available...";
|
||
|
else
|
||
|
echo "> [Tesseract] could find tesseract command!";
|
||
|
exit -1;
|
||
|
fi
|
||
|
|
||
|
# check if tesseract is avaliable
|
||
|
if tesseract --list-langs | grep -q 'pol'
|
||
|
then
|
||
|
echo "> [Tesseract] polish langauge avaliable";
|
||
|
else
|
||
|
echo "> [Tesseract] polish langage unavaliable...";
|
||
|
exit -1;
|
||
|
fi
|