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
|
||||
out=$(dirname "$in")/$(basename -- "$in" ".${in##*.}").pdf
|
||||
tmp=$(mktemp --suffix=.pdf)
|
||||
|
||||
magick "$in" "$tmp"
|
||||
ocrmypdf $tmp "$out"
|
||||
rm "$tmp"
|
||||
img2pdf --auto-orient "$in" | ocrmypdf --language eng+nld --tesseract-pagesegmode 11 - "$out"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue