mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-09 11:50:02 +02:00
🧹 sbb_textline_detector: Do not create empty/space-only TextEquivs (again)
This commit is contained in:
parent
bf41a29e7b
commit
4fb3e70ef6
1 changed files with 0 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue