Serenity/home/scripts/zethra/ocr-clipboard

6 lines
86 B
Bash
Executable file

#!/bin/sh
cd "$(mktemp -d)"
wl-paste > in.png
tesseract in.png out
wl-copy < out.txt