Scribe is a powerful OCR (Optical Character Recognition) application that extracts text from images using EasyOCR. It provides both a command-line interface (CLI) and a graphical user interface (GUI) for different use cases.
- High Accuracy OCR: Uses EasyOCR with GPU acceleration for fast and accurate text extraction
- Image Processing: Automatically enhances images with resizing, sharpening, and noise reduction
- Dual Interface: Both CLI and GUI options for different workflows
- Clipboard Integration: Automatically copies extracted text to clipboard
- Multiple Image Formats: Supports PNG, JPG, JPEG, BMP, and GIF files
- Confidence Scoring: Shows confidence levels for each detected text segment
pip install easyocr opencv-python pyperclip termcolor click pillow# Run GUI
watchmedo auto-restart --patterns='scribe/gui.py;core.py' --recursive -- python gui_entry.py# Run CLI
python cli_entry.py path/to/image.pngThe project includes PyInstaller spec files for building standalone executables:
# Build CLI executable
pyinstaller cli_optimized.spec
# Build GUI executable
pyinstaller gui_entry.spec
# Build both
pyinstaller build.specFirst, make sure Inno is installed.
cd installers ; & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" scribe.issThis will generate installers/dist/scribe_installer.exe.
The CLI application is perfect for batch processing, automation, and quick text extraction from command line.
# Install PyInstaller
pip install pyinstaller
# Build optimized CLI
pyinstaller --onefile cli_optimized.py
# Build GUI
pyinstaller --onefile gui_entry.py- GPU Usage: Ensure CUDA is properly installed for GPU acceleration
- Image Quality: Higher resolution images generally produce better results
- Image Preprocessing: The application automatically enhances images, but clean, well-lit images work best
- Text Orientation: Ensure text is horizontal for best results
- CUDA/GPU Issues: If GPU initialization fails, the application will fall back to CPU processing
- Image Loading: Ensure the image file exists and is in a supported format
- Memory Usage: Large images may require significant memory; consider resizing very large images
This project is open source. Please check the license file for details.
