Zubnet AIAprenderWiki › OCR
Using AI

OCR

Optical Character Recognition, Text Recognition
Extrair texto de imagens — fotografias de documentos, capturas de tela, placas, notas manuscritas, ou qualquer imagem contendo texto. OCR moderno combina detecção de texto (encontrar onde o texto aparece na imagem) com reconhecimento de texto (ler o que o texto diz). OCR com deep learning lida com texto curvado, múltiplas línguas, fontes variadas e baixa qualidade de imagem muito melhor que abordagens antigas baseadas em regras.

Por que importa

OCR digitaliza o mundo físico. Escanear recibos para controle de despesas, ler documentos para arquivamento, extrair dados de formulários, traduzir placas em tempo real e tornar PDFs baseados em imagem pesquisáveis dependem todos de OCR. Combinado com LLMs, OCR habilita compreensão sofisticada de documentos — não só ler texto mas entender notas fiscais, contratos e relatórios.

Deep Dive

Modern OCR pipelines have two stages: detection (finding text regions using models like CRAFT or DBNet) and recognition (reading text in each region using CRNN or Transformer-based models). End-to-end approaches (like PaddleOCR, EasyOCR) combine both stages. For structured documents, specialized models (LayoutLM, Donut) understand both text content and spatial layout, recognizing that "Total: $42.50" on an invoice means something different from the same text in a paragraph.

Vision LLMs as OCR

Multimodal LLMs (Claude, GPT-4V, Gemini) have become remarkably good at OCR as a side effect of their vision capabilities. You can upload an image and ask "read all text in this image" or "extract the table from this receipt." For complex documents with mixed layouts, handwriting, and multiple languages, vision LLMs often outperform dedicated OCR systems because they understand context and can handle ambiguity. The trade-off is speed and cost — dedicated OCR is 100x faster for bulk processing.

Challenges

Remaining hard problems: handwriting recognition (especially cursive or messy handwriting), degraded historical documents, text in complex backgrounds (wild text on signs, clothing, products), and scripts with complex character compositions (Chinese, Arabic, Devanagari). Accuracy varies significantly by language and script — Latin script OCR is nearly solved, but CJK and right-to-left scripts still have meaningful error rates.

Conceitos relacionados

← Todos os termos
ESC