View difference between Paste ID: UgWRKcXR and fB7epUz4
SHOW: | | - or go back to the newest paste.
1-
@DEL out.txt
1+
@echo off
2-
@convert %1 -fuzz 40%% -trim +repage -lat 55x55 -blur 2x2 -morphology Close:2 Diamond -morphology Erode:2 Diamond -colorspace Gray -threshold 99%% -auto-orient out.png
2+
3-
@tesseract out.png out -l letsgodigital
3+
FOR %%a IN (*.jpg *.tif) DO (
4-
@type out.txt
4+
DEL out.txt /F /Q
5
echo %%a
6
convert %%a -fuzz 40%% -trim +repage -lat 55x55 -morphology Close:3 Diamond -morphology Erode Diamond -colorspace Gray -threshold 99%% -auto-orient out.png
7
tesseract out.png out -l letsgodigital -psm 7
8
type out.txt
9
echo END FILE
10
)
11
12
pause>nul|set/p =any key to exit ...