summaryrefslogtreecommitdiff
path: root/ocr
diff options
context:
space:
mode:
Diffstat (limited to 'ocr')
-rwxr-xr-xocr7
1 files changed, 7 insertions, 0 deletions
diff --git a/ocr b/ocr
new file mode 100755
index 0000000..eb1d096
--- /dev/null
+++ b/ocr
@@ -0,0 +1,7 @@
+#!/bin/bash
+READ=$(scrot -s 'temp_%Y%m%d_%H%M%S.png' -e 'tesseract $f stdout -l jpn && rm $f')
+
+if [[ ! -z $READ ]]; then
+ echo $READ | xclip -selection clipboard
+fi
+