summaryrefslogtreecommitdiff
path: root/bucket-lines/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'bucket-lines/main.go')
-rw-r--r--bucket-lines/main.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/bucket-lines/main.go b/bucket-lines/main.go
index 36e9101..990e84c 100644
--- a/bucket-lines/main.go
+++ b/bucket-lines/main.go
@@ -9,17 +9,17 @@ import (
"os"
"path/filepath"
- "rescribe.xyz/go.git/lib/line"
"rescribe.xyz/go.git/lib/hocr"
+ "rescribe.xyz/go.git/lib/line"
"rescribe.xyz/go.git/lib/prob"
)
func main() {
b := BucketSpecs{
// minimum confidence, name
- { 0, "bad" },
- { 0.95, "95to98" },
- { 0.98, "98plus" },
+ {0, "bad"},
+ {0.95, "95to98"},
+ {0.98, "98plus"},
}
flag.Usage = func() {
@@ -61,13 +61,13 @@ func main() {
for _, f := range flag.Args() {
var newlines line.Details
switch ext := filepath.Ext(f); ext {
- case ".prob":
- newlines, err = prob.GetLineDetails(f)
- case ".hocr":
- newlines, err = hocr.GetLineDetails(f)
- default:
- log.Printf("Skipping file '%s' as it isn't a .prob or .hocr\n", f)
- continue
+ case ".prob":
+ newlines, err = prob.GetLineDetails(f)
+ case ".hocr":
+ newlines, err = hocr.GetLineDetails(f)
+ default:
+ log.Printf("Skipping file '%s' as it isn't a .prob or .hocr\n", f)
+ continue
}
if err != nil {
log.Fatal(err)