Add OCR functionality to Spectacle
Description
Allowing users to extract text from screenshots using Tesseract OCR engine.
Features Added
- Text recognition: Extract text from captured screenshots
- Multi-language support: Set multiple languages to do OCR in General Options or select one in the viewer window
- UI integration: OCR button available in all capture modes and viewer
- Clipboard integration: Extracted text is automatically copied to clipboard
UI
Technical Implementation
- New
OcrManagerclass handling Tesseract integration - OCR language configuration in Settings dialog
- QML action (
OcrAction) for consistent UI integration - Integration with existing notification system
- Proper error handling and user feedback
Dependencies
- Tesseract
Breaking Changes
None. This is a pure feature addition with optional dependency.
Edited by Jhair Paris





