To run:
- Install the OCR engine:
brew install tesseract - Make a virtual environment:
python3 -m venv .venv - Activate the virtual environment:
. .venv/bin/activate - Install dependencies:
pip install -r requirements.txt - Create bot in telegram using @BotFather bot in telegram
- Create config.txt file with the token to access bot api
- In terminal run
which tesseractto locate the path of tesseract - Put that path in
pytesseract.pytesseract.tesseract_cmd = r"<path_to_tesseract>" - Run
python3 tg_bot_receipt_parcer.pyto start the bot
- Run
python3 tg_bot_receipt_parcer.pyto start the bot