MCPcopy Create free account
hub / github.com/mindee/doctr / synthesize

Method synthesize

doctr/io/elements.py:626–635  ·  view source on GitHub ↗

Synthesize all pages from their predictions Args: **kwargs: keyword arguments passed to the `Page.synthesize` method Returns: list of synthesized pages

(self, **kwargs)

Source from the content-addressed store, hash-verified

624 result.show(**kwargs)
625
626 def synthesize(self, **kwargs) -> list[np.ndarray]:
627 """Synthesize all pages from their predictions
628
629 Args:
630 **kwargs: keyword arguments passed to the `Page.synthesize` method
631
632 Returns:
633 list of synthesized pages
634 """
635 return [page.synthesize(**kwargs) for page in self.pages]
636
637 def export_as_xml(self, **kwargs) -> list[tuple[bytes, ET.ElementTree]]:
638 """Export the document as XML (hOCR-format)

Callers 1

test_documentFunction · 0.95

Calls 1

synthesizeMethod · 0.45

Tested by 1

test_documentFunction · 0.76