summaryrefslogtreecommitdiff
path: root/pgconf
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-08 15:37:07 +0100
committerNick White <git@njw.name>2019-10-08 15:37:07 +0100
commit787d63fc5d13c6250bd33da5a8e1eadbe86188cd (patch)
tree0b6888914ec5a492f95e256095799096ff4d7873 /pgconf
parentd43c11bf653bfe3c1ad1ed277f1ec08bf155cf98 (diff)
Continue separating the repository; remove all but preproc, and move integralimg package under it
Diffstat (limited to 'pgconf')
-rw-r--r--pgconf/main.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/pgconf/main.go b/pgconf/main.go
deleted file mode 100644
index bc09c23..0000000
--- a/pgconf/main.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package main
-
-import (
- "flag"
- "fmt"
- "log"
- "os"
-
- "rescribe.xyz/go.git/lib/hocr"
-)
-
-func main() {
- flag.Usage = func() {
- fmt.Fprintf(os.Stderr, "Usage: pgconf hocr\n")
- fmt.Fprintf(os.Stderr, "Prints the total confidence for a page, as an average of the confidence of each word.\n")
- flag.PrintDefaults()
- }
- flag.Parse()
- if flag.NArg() != 1 {
- flag.Usage()
- os.Exit(1)
- }
-
- avg, err := hocr.GetAvgConf(flag.Arg(0))
- if err != nil {
- log.Fatalf("Error retreiving confidence for %s: %v\n", flag.Arg(0), err)
- }
-
- fmt.Printf("%0.0f\n", avg)
-}