Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

PaddlePaddle
/
PP-DocBlockLayout

Image-to-Text
PaddleOCR
English
Chinese
OCR
PaddlePaddle
layout_detection
Model card Files Files and versions
xet
Community

Instructions to use PaddlePaddle/PP-DocBlockLayout with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PaddleOCR

    How to use PaddlePaddle/PP-DocBlockLayout 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-DocBlockLayout")
    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")
  • Notebooks
  • Google Colab
  • Kaggle
PP-DocBlockLayout
130 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
Tingquan's picture
Tingquan
Add tag: layout_detection
f270657 verified 10 months ago
  • .gitattributes
    1.58 kB
    Upload folder using huggingface_hub 11 months ago
  • README.md
    3.67 kB
    Add tag: layout_detection 10 months ago
  • config.json
    5.68 kB
    Upload folder using huggingface_hub 11 months ago
  • inference.json
    1.08 MB
    Upload folder using huggingface_hub 11 months ago
  • inference.pdiparams
    129 MB
    xet
    Upload folder using huggingface_hub 11 months ago
  • inference.yml
    1.62 kB
    Upload folder using huggingface_hub 11 months ago