Skip to content

Instantly share code, notes, and snippets.

@andraaspar
Last active October 18, 2022 13:59
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 andraaspar/0420a3d4ee2ef1772a424b3ae215da94 to your computer and use it in GitHub Desktop.
Save andraaspar/0420a3d4ee2ef1772a424b3ae215da94 to your computer and use it in GitHub Desktop.
Tesseract copy result to clipboard
@echo off
chcp 65001
for /f "tokens=*" %%a in ('dir /b /od') do set newest=%%a
"c:\Program Files\Tesseract-OCR\tesseract.exe" -l hun "%newest%" stdout | clip
@echo off
chcp 65001
"c:\Program Files\Tesseract-OCR\tesseract.exe" -l hun %1 stdout | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment