Skip to content

cierpa/docling-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docling-plugin-example

This repository contains an example code for a Docling plugin using Google Cloud Vision OCR.

This is appendix code of the blog post DoclingにGoogle Cloud Visionを組み込み高精度に日本語資料を解析する.

Setup

uv sync --all-packages

Install the Japanese font for the rendering of the Japanese PDF.

sudo apt install fonts-noto-cjk

Example usage

Run the following command to convert a PDF file to Markdown using the custom Google Cloud Vision OCR engine.

uv run --package docling-main docling-main \
    --input-file input.pdf \
    --output-md output.md \
    --ocr-engine visionocr \
    --force-ocr

If you want to use different OCR engines, change the --ocr-engine option. See docling-main/src/docling_main/__init__.py for the supported options.

If you get some errors related to the OCR engines, see https://docling-project.github.io/docling/installation/.

About

Example code for a Docling plugin using Google Cloud Vision OCR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages