From 98e48dec38e195a99744182d535deb1ac49831aa Mon Sep 17 00:00:00 2001 From: cneud Date: Fri, 6 Dec 2019 15:25:09 +0100 Subject: [PATCH] typo --- tools/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli.py b/tools/cli.py index c328f0c..aa1f27c 100644 --- a/tools/cli.py +++ b/tools/cli.py @@ -172,7 +172,7 @@ def page2tsv(page_xml_file, tsv_out_file, image_url, ner_rest_endpoint, noproxy) text = word.text for coords in words.findall('.//{%s}Coords' % xmlns): - # transform the OCR coordinates by 0.5685 to derived the correct coords for the web presentation + # transform the OCR coordinates by 0.5685 to derive the correct coords for the web presentation image points = [int(0.5685 * float(pos)) for p in coords.attrib['points'].split(' ') for pos in p.split(',')] x_points = [points[i] for i in range(0, len(points), 2)]