chore: jptesseract now behaves as expected
This commit is contained in:
parent
34ba3e8987
commit
0bd5e02534
|
@ -21,8 +21,8 @@ cd /tmp/jptesseract || exit;
|
||||||
# Screenshot with flameshot, save to /tmp directory
|
# Screenshot with flameshot, save to /tmp directory
|
||||||
if flameshot gui -d "$DELAY" -r --path /tmp/jptesseract/.useless > /tmp/jptesseract/jp_text_image.png; then
|
if flameshot gui -d "$DELAY" -r --path /tmp/jptesseract/.useless > /tmp/jptesseract/jp_text_image.png; then
|
||||||
# Read from /tmp directory with Tesseract
|
# Read from /tmp directory with Tesseract
|
||||||
tesseract -l jpn /tmp/jptesseract/jp_text_image.png /tmp/jptesseract/jp_output
|
tesseract -l jpn -c preserve_interword_spaces=1 /tmp/jptesseract/jp_text_image.png /tmp/jptesseract/jp_output
|
||||||
|
|
||||||
# Take output and send it to the clipboard
|
# Remove \f which will be present at the end of jp_output
|
||||||
xclip -selection clipboard < /tmp/jptesseract/jp_output.txt;
|
tr -d '\f' < /tmp/jptesseract/jp_output.txt | xclip -selection clipboard;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue