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,7 +2142,8 @@ class Eynollah:
|
||||||
conf_textregions=[0],
|
conf_textregions=[0],
|
||||||
)
|
)
|
||||||
self.logger.info("Basic processing complete")
|
self.logger.info("Basic processing complete")
|
||||||
writer.write_pagexml(pcgts)
|
if writer.pcgts is None:
|
||||||
|
writer.write_pagexml(pcgts)
|
||||||
self.logger.info("Job done in %.1fs", time.time() - t0)
|
self.logger.info("Job done in %.1fs", time.time() - t0)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -2221,7 +2222,8 @@ class Eynollah:
|
||||||
cont_page=cont_page,
|
cont_page=cont_page,
|
||||||
polygons_seplines=[],
|
polygons_seplines=[],
|
||||||
)
|
)
|
||||||
writer.write_pagexml(pcgts)
|
if writer.pcgts is None:
|
||||||
|
writer.write_pagexml(pcgts)
|
||||||
self.logger.info("Job done in %.1fs", time.time() - t0)
|
self.logger.info("Job done in %.1fs", time.time() - t0)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -2508,6 +2510,7 @@ class Eynollah:
|
||||||
conf_tables=conf_tables,
|
conf_tables=conf_tables,
|
||||||
)
|
)
|
||||||
|
|
||||||
writer.write_pagexml(pcgts)
|
if writer.pcgts is None:
|
||||||
|
writer.write_pagexml(pcgts)
|
||||||
self.logger.info("Job done in %.1fs", time.time() - t0)
|
self.logger.info("Job done in %.1fs", time.time() - t0)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue