Skip to content

Instantly share code, notes, and snippets.

View manitouphon's full-sized avatar
👾
Finding VM_01. (Who was that tho ?)

c1ph9r manitouphon

👾
Finding VM_01. (Who was that tho ?)
  • SHadowCorp
  • Plannet 177CF07
  • 23:37 (UTC +07:00)
View GitHub Profile
@QuentinN42
QuentinN42 / ocr
Created September 19, 2021 08:12
Automatic ocr with tesseract & flameshot
#!/usr/bin/env bash
TMPDIR=$(mktemp -d -t ocr-XXXXXXXXXX)
trap "rm -rf $TMPDIR" EXIT
cd "$TMPDIR"
flameshot gui -r > img.png
tesseract img.png text
cat text.txt | xsel --clipboard --input