Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- FOR %%a IN (*.jpg *.tif) DO (
- DEL out.txt /F /Q
- echo %%a
- convert %%a -fuzz 40%% -trim +repage -lat 55x55 -morphology Close:3 Diamond -morphology Erode Diamond -colorspace Gray -threshold 99%% -auto-orient out.png
- tesseract out.png out -l letsgodigital -psm 7
- type out.txt
- echo END FILE
- )
- pause>nul|set/p =any key to exit ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement