From ac706b9d7227690ec3efd7fd3a836e39b40e4791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Sima=CC=83o?= Date: Thu, 4 Nov 2021 17:21:52 -0300 Subject: [PATCH] fixed prop name --- api/ocr/cli.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/ocr/cli.go b/api/ocr/cli.go index 8644b25..5a7ac00 100644 --- a/api/ocr/cli.go +++ b/api/ocr/cli.go @@ -17,10 +17,10 @@ type AltoString struct { HEIGHT int `xml:"HEIGHT,attr"` WC float64 `xml:"WC,attr"` CONTENT string `xml:"CONTENT,attr"` - RHPOS int `xml:"RHPOS,attr"` - RVPOS int `xml:"RVPOS,attr"` - RWIDTH int `xml:"RWIDTH,attr"` - RHEIGHT int `xml:"RHEIGHT,attr"` + AHPOS int `xml:"AHPOS,attr"` + AVPOS int `xml:"AVPOS,attr"` + AWIDTH int `xml:"AWIDTH,attr"` + AHEIGHT int `xml:"AHEIGHT,attr"` } func (a *AltoString) AbsCoords(q *Opts) { @@ -29,10 +29,10 @@ func (a *AltoString) AbsCoords(q *Opts) { nw := int(float64(a.WIDTH) / q.Proportion) nh := int(float64(a.HEIGHT) / q.Proportion) log.Printf("Mapping: x: %v=>%v; y:%v=>%v; w:%v=>%v; h:%v=>%v;(Prop: %v,qx: %v, qy: %v)", a.HPOS, nx, a.VPOS, ny, a.WIDTH, nw, a.HEIGHT, nh, q.Proportion, q.X, q.Y) - a.RHPOS = nx - a.RVPOS = ny - a.RWIDTH = nw - a.RHEIGHT = nh + a.AHPOS = nx + a.AVPOS = ny + a.AWIDTH = nw + a.AHEIGHT = nh return }