2020-09-10 07:59:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "JUST FOR LINUX OR XDG OSs"
|
|
|
|
|
|
|
|
echo "install python: https://www.python.org/downloads/"
|
|
|
|
xdg-open "https://www.python.org/downloads/"
|
|
|
|
|
|
|
|
echo "also install tesseract https://tesseract-ocr.github.io/tessdoc/Downloads.html"
|
|
|
|
xdg-open "https://tesseract-ocr.github.io/tessdoc/Downloads.html"
|
|
|
|
|
|
|
|
read -p "Press any key to resume when installation finishes"
|
|
|
|
|
|
|
|
mkdir ImagesToConvert
|
|
|
|
mkdir ImagesOutput
|
|
|
|
pip install Pillow
|
|
|
|
pip install pytesseract
|
2020-12-15 20:34:37 +00:00
|
|
|
pip install hashlib
|
|
|
|
|
|
|
|
sudo cp eng.traineddata /usr/share/tessdata/
|
2020-09-10 07:59:31 +00:00
|
|
|
|
|
|
|
echo "Installation finished!"
|