Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch processing should output debug files #3

Open
s-celles opened this issue Jun 15, 2018 · 2 comments
Open

Batch processing should output debug files #3

s-celles opened this issue Jun 15, 2018 · 2 comments

Comments

@s-celles
Copy link

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
Copy link
Collaborator

wavexx commented Aug 19, 2018

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
Copy link
Collaborator

wavexx commented Aug 19, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants