MCPcopy Create free account
hub / github.com/Alibaba-NLP/ViDoRAG / main

Function main

scripts/ocr_triditional.py:148–152  ·  view source on GitHub ↗
(img_name)

Source from the content-addressed store, hash-verified

146
147# ----------------------- Main Function -----------------------
148def main(img_name):
149 image = decode_image(img_name)
150 result = ppocr_v3.predict(image)
151 text = tostr_layout_preserving(result)
152 return text
153
154if __name__ == "__main__":
155 from tqdm import tqdm

Callers 1

ocr_triditional.pyFile · 0.85

Calls 2

decode_imageFunction · 0.85
tostr_layout_preservingFunction · 0.85

Tested by

no test coverage detected