Deep Learning & MLOps · Module 04
OCR & Document AI Overview
Reading text is two problems, finding it and recognising it, and OCR alone is not document understanding. Project: extract fields from invoices and contracts.
Học xong bạn làm được
- Separate text detection from text recognition
- Explain why OCR is not document understanding
- Plan the invoice-extraction project
Bài học
- Reading text is two problems, not one
Everyone reads this overview; Group B goes deep on it. Reading text from a document image is text detection (where is the text?, a box per line or word) followed by text recognition (what does it say?). CRNN models train both jointly with CTC loss. Engines such as Tesseract, PaddleOCR and EasyOCR wrap both behind one call, but the split explains how OCR fails - missed text or garbled characters.
- OCR is not document understanding
Reading the characters on an invoice is not knowing which are the total, the vendor name or a line-item description. Document understanding needs layout information and usually a model trained for it (LayoutLM) or a managed service such as Amazon Textract. Use a managed extraction API first and build a custom pipeline only if its accuracy on your documents is not good enough - the same build vs. buy question as across this track.
- Project: Extract Information From Invoices and Contracts
Group B — OCR & Document AI.