Upload PaddlePaddle_PaddleOCR-VL_0.txt with huggingface_hub
Browse files
PaddlePaddle_PaddleOCR-VL_0.txt
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# See https://www.paddleocr.ai/latest/version3.x/pipeline_usage/PaddleOCR-VL.html to installation
|
| 3 |
+
|
| 4 |
+
from paddleocr import PaddleOCRVL
|
| 5 |
+
pipeline = PaddleOCRVL()
|
| 6 |
+
output = pipeline.predict("path/to/document_image.png")
|
| 7 |
+
for res in output:
|
| 8 |
+
res.print()
|
| 9 |
+
res.save_to_json(save_path="output")
|
| 10 |
+
res.save_to_markdown(save_path="output")
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
ERROR:
|
| 14 |
+
Traceback (most recent call last):
|
| 15 |
+
File "/tmp/PaddlePaddle_PaddleOCR-VL_0HPSxnl.py", line 16, in <module>
|
| 16 |
+
from paddleocr import PaddleOCRVL
|
| 17 |
+
ModuleNotFoundError: No module named 'paddleocr'
|