Add a PAGE validation step

This commit is contained in:
Gerber, Mike 2019-06-19 14:55:50 +02:00
parent 10c4068a99
commit d98ce2d2d4
3 changed files with 4643 additions and 0 deletions

View file

@ -54,10 +54,20 @@ do_ocr() {
#ocrd workspace validate mets.xml #ocrd workspace validate mets.xml
} }
page_validate_xml() {
filegrp=$1
local file
for file in `ocrd workspace find -G $filegrp`; do
xmllint --noout --schema `dirname $0`/xsd/pagecontent.2018-07-15.xsd $file
done
}
do_fontident do_fontident
do_linesegmentation do_linesegmentation
do_ocr do_ocr
page_validate_xml OCR-D-OCR-TESS # This also makes sure PAGE Viewer can open it
# XXX Multiple calls create multiple identical mets:agent elements # XXX Multiple calls create multiple identical mets:agent elements

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff