Source of image: GBN Dataset
PAGE-XML file generated through: ocrd-gbn + ocrd-export-larex
$ page-xml-draw \
-i ../input.xml \
-o output.png \
--base-dir ../../assets/images
--page \
--fill-color black \
--fill-opacity 1.0 \
--text-region
--text-line \
--fill-color white \
--fill-opacity 1.0
$ page-xml-draw \
-i ../input.xml \
-o output.png \
--base-dir ../../assets/images
--profile profile.json
where the content of profile.json is
{
"Page": {
"FillColor": "black",
"FillOpacity": 1.0,
"TextRegion": {
"TextLine": {
"FillColor": "white",
"FillOpacity": 1.0
}
}
}
}