EuracBiomedicalResearch / RescueOMR

batch Optical Mark Recognition without foresight
https://www.thregr.org/~wavexx/software/RescueOMR/
GNU Affero General Public License v3.0
39 stars 9 forks source link

Batch processing should output debug files #3

Open s-celles opened 6 years ago

s-celles commented 6 years ago

Hello,

Reading tutorial I noticed the following script

#!/bin/sh
mkdir -p results
for file in data/*.jpg
do
 page="$(basename "$file" .jpg)"
 echo "processing $file ..."
 ./bin/extractmpl -r 550x800+1800+620 template-it.png "$file" test.png
 if [ $? = 0 ]
 then
   ./bin/simpleomr marks-it.svg test.png > "results/$page.txt"
 else
   echo "  $file: template not found"
 fi
done

maybe a debug directory should be created and debug images be saved.

Best regards

wavexx commented 6 years ago

Later on in the tutorial, the extended scripts does that by linking the image in a "skipped" directory. I can do the same here.

wavexx commented 6 years ago

Although, I feel that adding a lot of scripting right in the beginning of the tutorial might be confusing. My focus was to outline the basic workflow first, then expand later. What do you think?