13 lines
365 B
Python
13 lines
365 B
Python
from paddleocr import PaddleOCRVL
|
|
|
|
pipeline = PaddleOCRVL(
|
|
vl_rec_backend="vllm-server", vl_rec_server_url="http://127.0.0.1:8118/v1"
|
|
)
|
|
output = pipeline.predict(
|
|
"/home/jackjack/test/deepseek_ocr/data/20250708092450-131-769-592.jpg"
|
|
)
|
|
for res in output:
|
|
res.print()
|
|
res.save_to_json(save_path="output")
|
|
res.save_to_markdown(save_path="output")
|