Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.21 KB

README.md

File metadata and controls

57 lines (47 loc) · 1.21 KB

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