code_execution_files / PaddlePaddle_PaddleOCR-VL_0.txt
ariG23498's picture
ariG23498 HF Staff
Upload PaddlePaddle_PaddleOCR-VL_0.txt with huggingface_hub
b24a04a verified
raw
history blame contribute delete
544 Bytes
```CODE:
# See https://www.paddleocr.ai/latest/version3.x/pipeline_usage/PaddleOCR-VL.html to installation
from paddleocr import PaddleOCRVL
pipeline = PaddleOCRVL()
output = pipeline.predict("path/to/document_image.png")
for res in output:
res.print()
res.save_to_json(save_path="output")
res.save_to_markdown(save_path="output")
```
ERROR:
Traceback (most recent call last):
File "/tmp/PaddlePaddle_PaddleOCR-VL_0bAubVP.py", line 24, in <module>
from paddleocr import PaddleOCRVL
ModuleNotFoundError: No module named 'paddleocr'