Skip to content

alexander-winkler/kraken_to_pagexml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

kraken_to_pagexml

Script that converts Kraken json segmentation output into a PageXML.

Possible workflow

Image binarization

Put your scans in a folder and run:

for i n *.png
   do kraken -i $i ${i/png/bin.png} binarize
   done

Image segmentation

for i in *.bin.png
    do kraken -i $i ${i/bin.png/json} segment -bl
    done

Create pagexml

Now run the script:

python kraken_to_pagexml.py *.json

The PageXML files can further be processed with, for example, LAREX or nashi

About

convert Kraken Segmentation output to pagexml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages