mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-24 06:25:26 -04:00
add test script
aimed at checking if the quality of the images drops quickly or not
This commit is contained in:
15
test/OCRmyPDF_severaltimes.sh
Normal file
15
test/OCRmyPDF_severaltimes.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Perform OCR several times in order to find how quicly the quality decreases
|
||||
|
||||
cpt=1
|
||||
|
||||
while [ $cpt -le 10 ] ; do
|
||||
|
||||
echo "------- Itteration $cpt ---------"
|
||||
|
||||
! ../OCRmyPDF.sh -vv -l deu -k ../tmp/ocred-$(($cpt-1)).pdf ../tmp/ocred-$cpt.pdf && exit 1
|
||||
|
||||
cpt=$(($cpt+1))
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user