Merge branch 'fix-196' into prepare-v0.6.0rc2

This commit is contained in:
kba 2025-10-14 14:52:36 +02:00
commit 7daa0a1bd5
2 changed files with 3 additions and 3 deletions

View file

@ -5286,7 +5286,7 @@ class Eynollah_ocr:
##unicode_textpage.text = tot_page_text ##unicode_textpage.text = tot_page_text
ET.register_namespace("",name_space) ET.register_namespace("",name_space)
tree1.write(out_file_ocr,xml_declaration=True,method='xml',encoding="utf8",default_namespace=None) tree1.write(out_file_ocr,xml_declaration=True,method='xml',encoding="utf-8",default_namespace=None)
else: else:
###max_len = 280#512#280#512 ###max_len = 280#512#280#512
###padding_token = 1500#299#1500#299 ###padding_token = 1500#299#1500#299
@ -5835,5 +5835,5 @@ class Eynollah_ocr:
##unicode_textpage.text = tot_page_text ##unicode_textpage.text = tot_page_text
ET.register_namespace("",name_space) ET.register_namespace("",name_space)
tree1.write(out_file_ocr,xml_declaration=True,method='xml',encoding="utf8",default_namespace=None) tree1.write(out_file_ocr,xml_declaration=True,method='xml',encoding="utf-8",default_namespace=None)
#print("Job done in %.1fs", time.time() - t0) #print("Job done in %.1fs", time.time() - t0)

View file

@ -805,7 +805,7 @@ class machine_based_reading_order_on_layout:
tree_xml.write(os.path.join(dir_out, file_name+'.xml'), tree_xml.write(os.path.join(dir_out, file_name+'.xml'),
xml_declaration=True, xml_declaration=True,
method='xml', method='xml',
encoding="utf8", encoding="utf-8",
default_namespace=None) default_namespace=None)
#sys.exit() #sys.exit()