Automatically capture, store, and search your screenshots like a native OS feature.
SnapDoc is a lightweight tool that runs in the background, automatically detecting new screenshots, applying OCR, and storing them in a local database. It provides an easy way to search your past screenshots using keywords.
✅ Monitors the screenshot folder for new images
✅ Extracts text from screenshots using OCR (Tesseract)
✅ Stores image paths and extracted text in a local SQLite database
✅ Provides a simple GUI for searching past screenshots
✅ Runs smoothly in the background as a native OS feature
git clone https://github.com/itsNitinRaj/SnapDoc.git
cd SnapDocpip install -r requirements.txt- Windows: Download here
- Linux (Ubuntu/Debian):
sudo apt install tesseract-ocr
- Mac (Homebrew):
brew install tesseract
Copy the example environment file and configure it for your system:
cp .env.example .envEdit the .env file to set your Tesseract path and other settings.
- Windows: Double-click
start.batto launch SnapDoc in the background. - Linux/Mac: Run:
python main.py
- Windows: Double-click
search.batto open the search tool. - Linux/Mac: Run:
python search.py
- Take a screenshot using
PrtScn(Windows) orCmd + Shift + 4(Mac). - SnapDoc automatically detects it, extracts text, and saves it.
- Use
search.bat(orsearch.py) to find past screenshots using keywords.
SnapDoc/
│── main.py # Background script to monitor screenshots
│── search.py # GUI to search stored screenshots
│── start.bat # Windows batch script to start monitoring
│── search.bat # Windows batch script to start search UI
│── requirements.txt # Dependencies list
│── .gitignore # Ignore unnecessary files
│── .env.example # Example environment variables
🔮 System Tray App: Native system tray application for easy access and configuration
🔮 Web Interface: Develop a web-based dashboard for more intuitive searching and viewing
🔮 AI-Powered Search: Implement semantic search capabilities to find screenshots by concept, not just exact text
🔮 Image Classification: Auto-categorize screenshots (code, websites, documents) for better organization
🔮 Cloud Sync: Optional cloud backup and sync across multiple devices
🔮 Advanced OCR Options: Support for multiple languages and handwriting recognition
🔮 Hotkey Support: Custom hotkeys for quick screenshot capture and search
- Short-term: Adding native system tray application for easy access and configuration
- Mid-term: Improve OCR accuracy and search performance
- Long-term: Develop cross-platform GUI and mobile companion app
Want to improve SnapDoc? Feel free to fork the repo, open issues, and submit pull requests! 🚀