diff options
author | Nick White <git@njw.name> | 2020-04-14 11:56:56 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-04-14 11:56:56 +0100 |
commit | 848f961c277525ebba3ab08fadc116970bcfed24 (patch) | |
tree | 00a6883568c29ac34d56f958f7d3479e372d8c31 /pkg/hocr/lines.go | |
parent | d9612a98ab66409858e07a9a430d40beac1b17b8 (diff) |
Add godoc documentation
Diffstat (limited to 'pkg/hocr/lines.go')
-rw-r--r-- | pkg/hocr/lines.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/hocr/lines.go b/pkg/hocr/lines.go index 1387574..942bd01 100644 --- a/pkg/hocr/lines.go +++ b/pkg/hocr/lines.go @@ -20,6 +20,7 @@ import ( "rescribe.xyz/utils/pkg/line" ) +// LineText extracts the text from an OcrLine func LineText(l OcrLine) (string) { linetext := "" @@ -88,7 +89,7 @@ func parseLineDetails(h Hocr, i *image.Gray, name string) (line.Details, error) } // GetLineDetails parses a hocr file and returns a corresponding -// line.Details, including image extracts for each line. +// line.Details, including image extracts for each line func GetLineDetails(hocrfn string) (line.Details, error) { var newlines line.Details @@ -121,7 +122,7 @@ func GetLineDetails(hocrfn string) (line.Details, error) { } // GetLineBasics parses a hocr file and returns a corresponding -// line.Details, without any image extracts. +// line.Details, without any image extracts func GetLineBasics(hocrfn string) (line.Details, error) { var newlines line.Details |