MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / save_image_bytes

Function save_image_bytes

scripts/extract_pdf_assets.py:243–245  ·  view source on GitHub ↗
(path: Path, data: bytes)

Source from the content-addressed store, hash-verified

241
242
243def save_image_bytes(path: Path, data: bytes) -> None:
244 path.parent.mkdir(parents=True, exist_ok=True)
245 path.write_bytes(data)
246
247
248def ocr_page(page, dpi: int) -> str:

Callers 2

extract_page_imagesFunction · 0.85
extract_figure_regionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected