commit 05df330e8487fe6be36292b52f650e3d7103e0c9 parent 4345fbad5ae882bb6f5fd644ef8c05c7eb0b20d8 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Thu, 5 Sep 2019 23:45:19 +0200 fixes and listing hard stuff Diffstat:
fix_melodia.sh | | | 48 | ++++++++++++++++++++++++++++++++++++++++++++++++ |
melodia_hard_stuff.txt | | | 46 | ++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 94 insertions(+), 0 deletions(-)
diff --git a/fix_melodia.sh b/fix_melodia.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +WIDTH="$1" + +for a in $(seq 0 9) +do + rm -f chunks/page_000${a}*.png +done + +rm -f chunks/page_0010_0000*.png +rm -f chunks/page_0010_0001*.png + +rm -f chunks/page_0050_0000*.png +rm -f chunks/page_0050_0001*.png +rm -f chunks/page_0070_0000*.png +rm -f chunks/page_0082_0002*.png +rm -f chunks/page_0085_0000*.png +rm -f chunks/page_0085_0009*.png +rm -f chunks/page_0090_0000*.png +rm -f chunks/page_0110_0000*.png +rm -f chunks/page_0138_0000*.png +rm -f chunks/page_0140_0000*.png +rm -f chunks/page_0160_0000*.png +rm -f chunks/page_0160_0001*.png +rm -f chunks/page_0170_0000*.png +rm -f chunks/page_0170_0001*.png +rm -f chunks/page_0174_0010*.png +rm -f chunks/page_0177_0012*.png +rm -f chunks/page_0180_0011*.png +rm -f chunks/page_0215_*.png + +convert -density 1200 -resize ${WIDTH}x melodia_title_page.svg chunks/page_0000_0000.png + +rm chunks/page_0012_0003* +./splitw.py --weightthreshold=6 lines/page_0012_0003.png chunks "$WIDTH" + +rm chunks/page_0013_0000* +./splitw.py --weightthreshold=20 --weightwindow=3 lines/page_0013_0000.png chunks "$WIDTH" + +rm chunks/page_0019_0001* +./splitw.py --debug=true --weightthreshold=10 --weightwindow=3 lines/page_0019_0001.png chunks "$WIDTH" + +rm -f lines/page_0058*.png; rm -f chunks/page_0058*.png; +./splith.py --distthreshold=500 --whitethreshold=2 pages/page_0058.png lines/; +for a in lines/page_0058*.png; do + ./splitw.py --weightthreshold=10 --weightwindow=3 $a chunks "$WIDTH"; +done + diff --git a/melodia_hard_stuff.txt b/melodia_hard_stuff.txt @@ -0,0 +1,46 @@ +0012_0003 fixed +0013_0000 fixed + +0019_0001 fixed + +0058_0007 fixed + +0109_0014 + +0153_0009 +0153_0010 +0153_0014 + +0159_0005 +0159_0006 +0159_0009 + +0167_0003 + +0169_0004 + +0171_0002 +0171_0007 +0171_0008 + +0175_0012 + +0182_0014 + +0186_* +0188_0005 +0188_0006 + +0192_0001 + +0192_0005 + +0193_0004 + +0196_0005 + +0198_0000 +0198_0001 +0198_0004 + +0207_0003