A fork of Flameshot with built-in OCR: Instantly extract and copy text from screenshots to your clipboard using Tesseract OCR.
- Take screenshots and extract text from any region using Tesseract OCR
- Copy recognized text directly to your clipboard
- Works fully offline, all OCR is performed locally
- Supports multiple languages (if Tesseract language packs are installed)
- All core Flameshot screenshot and annotation features are preserved
- Run Flameshot OCR:
./build/src/flameshot- Take a screenshot as usual (tray icon or hotkey).
- Select the OCR tool from the toolbar.
- Draw/select a region containing text.
- Text is automatically copied to your clipboard.
To bind OCR capture to Print Screen:
- Go to Settings → Keyboard → Shortcuts → Custom Shortcuts
- Add a new shortcut with command:
flameshot gui- Assign it to Print Screen
For best results, add flameshot to your startup applications so the daemon is running.
- Qt >= 5.9
- GCC >= 7.4
- CMake >= 3.12
- Tesseract OCR (and language packs as needed)
sudo apt update
sudo apt install g++ cmake build-essential qtbase5-dev qttools5-dev-tools libqt5svg5-dev \
libtesseract-dev libleptonica-dev tesseract-ocrsudo apt-get install \
tesseract-ocr-deu \
tesseract-ocr-fra \
tesseract-ocr-spa \
tesseract-ocr-chi-sim \
tesseract-ocr-jpn \
tesseract-ocr-ara \
tesseract-ocr-hin \
tesseract-ocr-rusgit clone https://github.com/sid-sg/flameshot-ocr.git
cd flameshot-ocr
mkdir build
cmake -S . -B build && cmake --build build --parallel- OCR language selection defaults to English. To use other languages, install the relevant Tesseract language packs.
- For best clipboard compatibility, run
flameshotas a daemon and use the tray icon or hotkey.
This project is licensed under GPLv3, same as the original Flameshot.
Refer to the original Flameshot documentation for more details about flameshot.