Skip to content

Instantly share code, notes, and snippets.

@Rudo2204
Created December 22, 2020 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rudo2204/e25dbc10e2413994975f108d52b33cf0 to your computer and use it in GitHub Desktop.
Save Rudo2204/e25dbc10e2413994975f108d52b33cf0 to your computer and use it in GitHub Desktop.
Flameshot capture into tesseract, copy to clipboard
#!/bin/bash
# Dependencies: tesseract-ocr flameshot
#select tesseract_lang in jpn jpn_vert ;do break;done
# Quick language menu, add more if you need other languages.
flameshot gui -r | tesseract -l jpn_vert stdin stdout | sed '$ s/..$//' | tr -d '\n' | xclip -sel clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment