Document Digitization
Last updated
Last updated
This pipeline is used to extract text from a digital/scanned document. Lines and layouts (header, footer, paragraph, table, cell, image) are detected by a custom-trained Prima layout model and OCR is done using the Anuvaad OCR model.
Github repo: Anuvaad Document Processor
API contract: API Contract
Upload a PDF or image file using the upload API:
Upload URL: https://auth.anuvaad.org/anuvaad-api/file-uploader/v0/upload-file
Get the upload ID and copy it to the DD2.0 input path.
Initiate the Workflow:
WF URL: https://auth.anuvaad.org/anuvaad-etl/wf-manager/v1/workflow/async/initiate
DD2.0 Input:
Input: PDF or image
Output: List of pages with detected lines and page information.
Github repo: Word Detector Craft
API contract: Word Detector API Contract
Input: Output of word detector
Output: List of pages with detected layouts and lines.
Github repo: Layout Detector Prima
API contract: Layout Detector API Contract
Input: Output of layout detector
Output: Collation of line and word at layout level.
Github repo: Block Segmenter
API contract: Block Segmenter API Contract
Input: Output of block segmenter
Output: Text collation at word, line, and paragraph level using Google Vision as the OCR engine.
Input: Output of block segmenter
Output: Text collation at word, line, and paragraph level using Anuvaad OCR model.
Github repo: OCR Tesseract Server
API contract: Google Vision API Contract
Github repo: OCR Google Vision Server
API contract: Google Vision API Contract