本文へスキップ

文字認識(OCR)

画像内の文字を編集可能なテキストにする

視覚理解初級#15
入力画像テキスト

本ページの本文は英語で提供されています。タイトルと導入は日本語化されています。

この能力とは何か

Takes an image containing text — a scan, a photo, a screenshot — and outputs the character sequence, usually with location boxes. It reads characters rather than interpreting them: the output is a transcription, not a meaning. Unlike document parsing, which also cares about layout such as tables, columns and reading order, OCR is only responsible for getting the characters right.

技術的にどう実現するか

The classic pipeline has two steps: a detection network finds quadrilateral boxes for lines or words, then each crop is passed to a sequence recogniser that decodes characters. Recognition moved from CNN plus recurrent layers with connectionist temporal classification to attention decoders and plain convolutional or Transformer designs. More recently, multimodal models transcribe end to end and handle irregular layouts better.

代表的な製品

5

OpenAI

GPT-4o

ネイティブにマルチモーダルな汎用モデル。テキスト・画像・音声をひとつの入口で扱う

4能力
モデル クローズド
テキスト画像音声テキスト音声
2024

Google DeepMind

Gemini

ネイティブにマルチモーダルで、超長文脈を扱う汎用モデル

4能力
モデル クローズド
テキスト画像音声動画テキスト
2023

Alibaba (Qwen)

Qwen

多様な規模とマルチモーダル版を備えたオープンウェイトのモデル群

4能力
モデル オープンウェイト
テキスト画像テキスト
2023

Baidu

ERNIE

知識増強の事前学習から始まった中国語モデル、その初期の代表的版

3能力
モデル クローズド
テキストテキスト
2019

Tencent (Hunyuan)

Hunyuan

開放ウェイト版を含むテンセントの汎用モデル群

4能力
モデル オープンウェイト
テキスト画像テキスト
2023

関連する組織

代表的な用途

  • Field capture from invoices, receipts and IDs
  • Digitising paper archives and books
  • Street-sign and licence-plate reading
  • Copying text from screenshots and photos

どう評価するか

Character error rate
Substitutions, deletions and insertions over the truth length
Word error rate
Word-level error rate, sensitive to segmentation
Detection F1
Localisation accuracy of text regions

限界と難しさ

  • Handwriting and poor scans — blurry, skewed, smudged — drive the error rate up sharply
  • Vertical text, mixed scripts and decorative fonts are frequently missed or misread
  • Tables and formulas come out as a character stream, losing row-column structure and super/subscripts

背景にある概念

コンピュータビジョン

画像のデジタル表現初級

機械にとって写真とは、数字のグリッドを重ねたものにすぎない

4関連
図解 2 · データ 1

自然言語処理と大規模言語モデル

トークン化初級

モデルは文字ではなくトークンを読む。分割の仕方が能力とコストを静かに決める

4関連
図解 1 · データ 1