From a05e986286efe9168ea404729652650086bab4cc Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 25 Jan 2019 17:38:33 +0000 Subject: Use consistent naming for .prob and .hocr OcrName --- lib/prob/prob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/prob') 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" -- cgit v1.2.1-24-ge1ad