PRHLT / pageDistanceBasedContourGenerator

Program that calculates the extraction polygon of present text lines given an existing baseline in the page file
MIT License
4 stars 7 forks source link

Horizontal padding option doesn't work #9

Open imagine5am opened 4 years ago

imagine5am commented 4 years ago

In the options, I could see this: -g [ --horizontal_padding ] arg (=0) Horizontal padding added to baselines to increase search areas in case of issues with the baseline quality (by default 0)

I assume this used to increase the width of the contour, but it doesn't work. Can you help/check?

imagine5am commented 4 years ago

./pageDistanceBasedContourGenerator/extract_lines -i ./data/$FILE.png -p ./data/$FILE.xml -o ./data/contours/$FILE.xml -w 4 img1

./pageDistanceBasedContourGenerator/extract_lines -i ./data/$FILE.png -p ./data/$FILE.xml -o ./data/contours/$FILE.xml -w 4 -g 100 img2

./pageDistanceBasedContourGenerator/extract_lines -i ./data/$FILE.png -p ./data/$FILE.xml -o ./data/contours/$FILE.xml -w 4 -g 200 img3