summaryrefslogtreecommitdiff
path: root/lib/prob/prob.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-25 17:38:33 +0000
committerNick White <git@njw.name>2019-01-25 17:38:33 +0000
commita05e986286efe9168ea404729652650086bab4cc (patch)
tree461fa4370ec919b612703d1e95c757176d31dae1 /lib/prob/prob.go
parent40c1e4956c0f4cd2c5f139aba7cb7bc04c57fc0f (diff)
Use consistent naming for .prob and .hocr OcrName
Diffstat (limited to 'lib/prob/prob.go')
-rw-r--r--lib/prob/prob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prob/prob.go b/lib/prob/prob.go
index 55d2629..2fd7fb9 100644
--- a/lib/prob/prob.go
+++ b/lib/prob/prob.go
@@ -57,7 +57,7 @@ func GetLineDetails(probfn string) (line.Details, error) {
l.Name = filepath.Base(filebase)
l.Avgconf = avg
l.Text = string(txt)
- l.OcrName = filepath.Dir(filebase)
+ l.OcrName = filepath.Base(filepath.Dir(filebase))
var imgfn line.ImgPath
imgfn.Path = filebase + ".bin.png"