Tweak ocr-image.sh
This commit is contained in:
parent
5344c5b978
commit
cd22a1f4c9
1 changed files with 1 additions and 4 deletions
|
@ -2,8 +2,5 @@
|
||||||
|
|
||||||
in=$1
|
in=$1
|
||||||
out=$(dirname "$in")/$(basename -- "$in" ".${in##*.}").pdf
|
out=$(dirname "$in")/$(basename -- "$in" ".${in##*.}").pdf
|
||||||
tmp=$(mktemp --suffix=.pdf)
|
|
||||||
|
|
||||||
magick "$in" "$tmp"
|
img2pdf --auto-orient "$in" | ocrmypdf --language eng+nld --tesseract-pagesegmode 11 - "$out"
|
||||||
ocrmypdf $tmp "$out"
|
|
||||||
rm "$tmp"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue