MCPcopy
hub / github.com/zai-org/GLM-OCR / save

Method save

glmocr/parser_result/base.py:61–67  ·  view source on GitHub ↗

Save result to disk. Subclasses implement layout vis etc.

(
        self,
        output_dir: Union[str, Path] = "./output",
        save_layout_visualization: bool = True,
    )

Source from the content-addressed store, hash-verified

59
60 @abstractmethod
61 def save(
62 self,
63 output_dir: Union[str, Path] = "./output",
64 save_layout_visualization: bool = True,
65 ) -> None:
66 """Save result to disk. Subclasses implement layout vis etc."""
67 pass
68
69 def _save_json_and_markdown(self, output_dir: Union[str, Path]) -> None:
70 """Save JSON and Markdown to output_dir (by first image name or 'result')."""

Callers 13

convertMethod · 0.45
convertMethod · 0.45
mainFunction · 0.45
_prepare_fileMethod · 0.45
load_image_to_base64Function · 0.45
image_tensor_to_base64Function · 0.45
mainFunction · 0.45

Calls

no outgoing calls