An OCR GUI powered by PaddleOCR.
It reads the image from clipboard, so another screenshot tool such as Snipaste is required.
inside or outside a virtual environment:
pip install -r requirements.txt
python tk.py
There are 2 approaches:
- pyinstaller command:
pyinstaller --noconfirm --onefile --windowed --hidden-import "imghdr" --hidden-import "imgaug" --hidden-import "pyclipper" --collect-data "paddle" --collect-all "paddleocr" "C:\Users\naive\ocr-gui\tk.py"
-
auto-py-to-exe config json:
-
install auto-py-to-exe:
pip install auto-py-to-exe
-
run
auto-py-to-exe
-
choose the
apte.json
in Settings > Import Config From Json File
-
Since AI models are large, maybe a better way to hold the application is in the form of web application.
I have made a web-equivalent of tk.py. check it by
python flask_backend.py