From cbbe18136e7474b9a697d67a99e56eb680f65e23 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 19 Jan 2019 12:28:28 +0000 Subject: Add linebreaks after lines, and add TODO --- line-conf-buckets-tess/line-conf-buckets-tess.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/line-conf-buckets-tess/line-conf-buckets-tess.go b/line-conf-buckets-tess/line-conf-buckets-tess.go index 82d6083..3e33b58 100644 --- a/line-conf-buckets-tess/line-conf-buckets-tess.go +++ b/line-conf-buckets-tess/line-conf-buckets-tess.go @@ -5,6 +5,7 @@ package main // see https://github.com/OCR-D/ocrd-train/issues/7 and https://github.com/OCR-D/ocrd-train/ // // TODO: Simplify things into functions more; this works well, but is a bit of a rush job +// TODO: Parse line name to zero pad line numbers, so they come out in the correct order import ( "encoding/xml" @@ -224,6 +225,7 @@ func main() { } } line.text = strings.TrimRight(linetext, " ") + line.text += "\n" line.hocrname = strings.Replace(filepath.Base(f), ".hocr", "", 1) line.img = img.(*image.Gray).SubImage(image.Rect(coords[0], coords[1], coords[2], coords[3])) lines = append(lines, line) -- cgit v1.2.1-24-ge1ad