How to use PaddlePaddle/PP-DocLayout-L with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import LayoutDetection model = LayoutDetection(model_name="PP-DocLayout-L") output = model.predict(input="path/to/image.png", batch_size=1) for res in output: res.print() res.save_to_img(save_path="./output/") res.save_to_json(save_path="./output/res.json")
This PR adds library_name: paddle-ocr and language metadata.
library_name: paddle-ocr
Hi @Tingquan thanks for merging!
Feel free to add library_name: paddle-ocr and the supported languages to each of the model repos.
We can then open a PR on huggingface.js (similar to this one) for native library support.
· Sign up or log in to comment