♻ Extract a main() function for the main stuff

pull/27/head
Gerber, Mike 5 years ago
parent be0a0c353a
commit 2cf68f149d

@ -97,27 +97,26 @@ page_upgrade_to_2019() {
done done
} }
pip3 list
do_binarization main() {
do_validate do_binarization
do_validate
do_linesegmentation_sbb do_linesegmentation_sbb
page_upgrade_to_2019 OCR-D-SEG-LINE page_upgrade_to_2019 OCR-D-SEG-LINE
page_validate_xml OCR-D-SEG-REGION page_validate_xml OCR-D-SEG-REGION
page_validate_xml OCR-D-SEG-LINE page_validate_xml OCR-D-SEG-LINE
do_validate do_validate
do_ocr_calamari do_ocr_calamari
do_ocr do_ocr
for ocr_filegrp in OCR-D-OCR-CALAMARI OCR-D-OCR-TESS; do for ocr_filegrp in OCR-D-OCR-CALAMARI OCR-D-OCR-TESS; do
page_validate_xml $ocr_filegrp page_validate_xml $ocr_filegrp
do_validate do_validate
@ -130,6 +129,12 @@ for ocr_filegrp in OCR-D-OCR-CALAMARI OCR-D-OCR-TESS; do
ocrd-dinglehopper -I OCR-D-GT-PAGE,$ocr_filegrp -O $ocr_filegrp-EVAL ocrd-dinglehopper -I OCR-D-GT-PAGE,$ocr_filegrp -O $ocr_filegrp-EVAL
fi fi
done done
}
pip3 list
main
# vim:tw=120: # vim:tw=120:

Loading…
Cancel
Save