Text detection on screenshots for 1C app.
- Open cmd/terminal in forlder and execute: git clone https://github.com/Ugggl/text_detection.git
- Go to 'text_detection' folder:
cd text_detection - Donwload and install tesseract
- For Windows:
https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w64-setup-v4.1.0.20190314.exe
During the installation check ‘Additional language data’ and ‘Additional script data’ - For macOs:
Execute in terminal: brew install tesseract --all-languages
- For Windows:
- Install, create, and activate virtualenv in cmd/terminal
pip install virtualenv
python -m venv venv
- For Windows:
venv\Scripts\activate.bat - For macOs:
. ./venv/bin/activate
- For Windows:
- Install required modules via pip
pip install -r requirements.txt - Check ip and host of local server in app.py
- For Windows:
127.0.0.1:30 - For macOs:
0.0.0.0:5000
- For Windows:
- Only for windows: uncomment the first line of detect functioin of detect.py and change to where tesseract is installed
pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files\Tesseract-OCR\tesseract.exe'. - Execute: python app.py