OCR Scanner
June 15, 2026 ยท View on GitHub
Extract text from images using Tesseract OCR.
Install
Use the DMS CLI:
dms plugins install ocrScanner
Or manually:
git clone https://github.com/hthienloc/dms-ocr-scanner ~/.config/DankMaterialShell/plugins/ocrScanner
Features
- Screenshot OCR - Middle-click the icon to capture a screen region and scan it instantly
- Persistent History - Save and browse previous scans with images and text
- Clipboard scan - One-click to extract text from a clipboard image (right-click)
- Multi-language - English, Vietnamese, and 100+ other languages
- Auto-copy - Extracted text automatically copied to clipboard
- Save to file - Export as .txt
Usage
| Action | Result |
|---|---|
| Left click | Open scanner |
| Middle click | Scan from screenshot (region) |
| Right click | Scan from clipboard |
Requirements
| Package | Installation |
|---|---|
tesseract | sudo dnf install tesseract / sudo pacman -S tesseract |
tesseract-data-* | Language packs (e.g., tesseract-langpack-eng) |
License
GPL-3.0
Roadmap / TODO
- Screenshot OCR: Capture and scan portions of the screen directly using the DMS screenshot tool.
- Persistent History: Implement a local database to store previous scans, including timestamps and source image references.
- On-device Translation: Integrate a lightweight translation service (or API) to translate extracted text instantly.
- Batch Processing: Support selecting multiple images for sequential OCR with a merged text output.
- Advanced Tesseract Options: Expose Page Segmentation Method (PSM) and OCR Engine Mode (OEM) settings in the UI for specialized documents.
- Image Preprocessing: Improve recognition accuracy by using ImageMagick to upscale small text, normalize contrast, and reduce noise before scanning.