Skip to content

Latest commit

 

History

History

binary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Contrast Example

Source of image: GBN Dataset

PAGE-XML file generated through: ocrd-gbn + ocrd-export-larex

Pure CLI

$ 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

CLI + JSON

$ 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
            }
        }
    }
}

Output

Original Binary