summaryrefslogtreecommitdiff
path: root/lib/hocr/lines.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hocr/lines.go')
-rw-r--r--lib/hocr/lines.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/hocr/lines.go b/lib/hocr/lines.go
index 84c2130..00acd1f 100644
--- a/lib/hocr/lines.go
+++ b/lib/hocr/lines.go
@@ -36,27 +36,27 @@ func parseLineDetails(h Hocr, i image.Image, name string) (line.Details, error)
var ln line.Detail
ln.Name = l.Id
- ln.Avgconf = (totalconf/float64(num)) / 100
+ ln.Avgconf = (totalconf / float64(num)) / 100
linetext := ""
linetext = l.Text
- if(noText(linetext)) {
+ if noText(linetext) {
linetext = ""
for _, w := range l.Words {
- if(w.Class != "ocrx_word") {
+ if w.Class != "ocrx_word" {
continue
}
linetext += w.Text + " "
}
}
- if(noText(linetext)) {
+ if noText(linetext) {
linetext = ""
for _, w := range l.Words {
- if(w.Class != "ocrx_word") {
+ if w.Class != "ocrx_word" {
continue
}
for _, c := range w.Chars {
- if(c.Class != "ocrx_cinfo") {
+ if c.Class != "ocrx_cinfo" {
continue
}
linetext += c.Text