🧹 sbb_textline_detector: Do not create empty/space-only TextEquivs (again)

pull/1/head
Gerber, Mike 5 years ago
parent bf41a29e7b
commit 4fb3e70ef6

@ -1391,16 +1391,9 @@ class textlineerkenner:
points_co=points_co+' '
#print(points_co)
coord.set('points',points_co)
texteqreg=ET.SubElement(textregion, 'TextEquiv')
unireg=ET.SubElement(texteqreg, 'Unicode')
unireg.text = ' '
tree = ET.ElementTree(data)
tree.write(os.path.join(self.dir_out, self.f_name) + ".xml")

Loading…
Cancel
Save