mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-07-26 05:29:16 +02:00
processor: avoid writing XML twice (once by writer, once by OCR-D)
This commit is contained in:
parent
d2755d1e93
commit
0a9b3097f1
1 changed files with 6 additions and 3 deletions
|
|
@ -2142,6 +2142,7 @@ class Eynollah:
|
|||
conf_textregions=[0],
|
||||
)
|
||||
self.logger.info("Basic processing complete")
|
||||
if writer.pcgts is None:
|
||||
writer.write_pagexml(pcgts)
|
||||
self.logger.info("Job done in %.1fs", time.time() - t0)
|
||||
return
|
||||
|
|
@ -2221,6 +2222,7 @@ class Eynollah:
|
|||
cont_page=cont_page,
|
||||
polygons_seplines=[],
|
||||
)
|
||||
if writer.pcgts is None:
|
||||
writer.write_pagexml(pcgts)
|
||||
self.logger.info("Job done in %.1fs", time.time() - t0)
|
||||
return
|
||||
|
|
@ -2508,6 +2510,7 @@ class Eynollah:
|
|||
conf_tables=conf_tables,
|
||||
)
|
||||
|
||||
if writer.pcgts is None:
|
||||
writer.write_pagexml(pcgts)
|
||||
self.logger.info("Job done in %.1fs", time.time() - t0)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue