Optical Character Recognition (OCR) Templater Script for Obsidian.
Install the Tesseract OCR engine.
Prebuilt Binaries for Linux and Windows are available. On Mac: brew install tesseract.
- Open
Settings > Templater - Turn on Enable System Commands
- Add a User Function named
ocr
/usr/local/bin/tesseract "$ocr_input" -
NOTE I reccomend increasing the Templater Timeout to 10s or more as the OCR may take a moment.
Add the OCR.md template to your Templater templates folder.
- Invoke
Templater: Create new note from templatePallet command - Choose
OCR - Choose an image file in your vault. This may take a few seconds.