diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hocr/lines.go | 3 | ||||
-rw-r--r-- | lib/prob/prob.go | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/hocr/lines.go b/lib/hocr/lines.go index 985c7d0..84c2130 100644 --- a/lib/hocr/lines.go +++ b/lib/hocr/lines.go @@ -2,9 +2,6 @@ package hocr // TODO: Parse line name to zero pad line numbers, so they can // be sorted easily -// TODO: have same filename format as .prob uses, so include base -// dirname, and don't include line numbers if there's only -// one line in the hocr import ( "image" 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" |