From ec6db29175f1d94d1d0dc79714c4cb050b64a700 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 27 Sep 2019 17:04:40 +0100 Subject: One more update of graph.go to correspond to new go-chart, and improve usage for wipe --- bookpipeline/graph.go | 1 - preproc/cmd/wipe/main.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bookpipeline/graph.go b/bookpipeline/graph.go index 874ac50..acd015e 100644 --- a/bookpipeline/graph.go +++ b/bookpipeline/graph.go @@ -111,7 +111,6 @@ func Graph(confs map[string]*Conf, bookname string, w io.Writer) error { } maxSeries := &chart.ContinuousSeries{ Style: chart.Style{ - Show: true, StrokeColor: chart.ColorAlternateGray, StrokeDashArray: []float64{5.0, 5.0}, }, diff --git a/preproc/cmd/wipe/main.go b/preproc/cmd/wipe/main.go index ceff2e7..e5c039d 100644 --- a/preproc/cmd/wipe/main.go +++ b/preproc/cmd/wipe/main.go @@ -20,7 +20,7 @@ func main() { flag.PrintDefaults() } min := flag.Int("m", 30, "Minimum percentage of the image width for the content width calculation to be considered valid.") - thresh := flag.Float64("t", 0.05, "Threshold for the proportion of black pixels below which a window is determined to be the edge.") + thresh := flag.Float64("t", 0.05, "Threshold for the proportion of black pixels below which a window is determined to be the edge. Higher means more aggressive wiping.") wsize := flag.Int("w", 5, "Window size for mask finding algorithm.") flag.Parse() if flag.NArg() < 2 { -- cgit v1.2.1-24-ge1ad