summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-07-14 11:02:10 +0100
committerNick White <git@njw.name>2020-07-14 11:02:10 +0100
commit43c2f3e5fa1894c49f875242edf7590f47d18ff4 (patch)
tree389f503412d4fa15d8ad5119f8ff84aea653863f
parent0ceaa5d97b585987539c51b8b8ce0705c06fc3a8 (diff)
Do vertical wiping before horizontalv0.1.4
This should help the horizontal wiping, hopefully, as there will be less inconsistent noise inside of the text area it processes.
-rw-r--r--wipesides.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/wipesides.go b/wipesides.go
index 4af3204..ebfb24f 100644
--- a/wipesides.go
+++ b/wipesides.go
@@ -212,8 +212,8 @@ func WipeFile(inPath string, outPath string, hwsize int, hthresh float64, hmin i
gray := image.NewGray(image.Rect(0, 0, b.Dx(), b.Dy()))
draw.Draw(gray, b, img, b.Min, draw.Src)
- hclean := Wipe(gray, hwsize, hthresh, hmin)
- clean := VWipe(hclean, vwsize, vthresh, vmin)
+ vclean := VWipe(gray, vwsize, vthresh, vmin)
+ clean := Wipe(vclean, hwsize, hthresh, hmin)
f, err = os.Create(outPath)
if err != nil {