跳到正文
DEV Community· Taiki Mishima·· 54 分鐘前AI 評分37

一個 OCR 錯誤如何破壞日文數字:把〇識別成項目符號

One OCR error that breaks a Japanese number: 〇 read as a bullet

AI 導讀

macOS Vision 將日文訪客人數中的「〇」識別為項目符號,令數字欄位悄然出錯。測試涵蓋 3 頁、149 個字元,共有 7 個字元錯誤,錯誤率為 4.7%;12 行中有 9 行完全正確。逐項核對數字欄位並記錄修正,可及早發現問題;測試使用合成頁面,不能反映真實掃描件的情況。

正文

Taiki Mishima

I rendered three fictional pages of a local-museum booklet (12 lines, 149 characters, mixed kanji numerals, full-width digits and a visitor count) and ran them through macOS Vision text recognition (ja-JP, accurate mode) on an Apple-silicon Mac. I then compared each line with the known text by edit distance. It took about 19 seconds for the three pages, including rendering.

Result: 7 character errors in 149, a character error rate of 4.7%.

Nine of twelve lines were exact. The three that were not:

  1. (1977年) came back as (1977年). Full-width digits and brackets were turned into half-width. That is 5 of the 7 errors, but the meaning is unchanged. A normalization step for the year field fixes it.
  2. A space after 発行 was dropped. Harmless.
  3. In 一二、四五〇人 the final numeral 〇 was read as a bullet •. This is the one that matters: the visitor count silently becomes 一二、四五•人, and a search or sum on that field breaks without any warning.

The practical lesson is that a low overall error rate hides the single character that corrupts a number. Checking every numeric field against its source page, and keeping a change log of what was corrected, catches it in seconds.

Limits: this is a clean synthetic render, not a real scan, so it says nothing about aged paper, vertical text or handwriting. Real material would need its own test.

I list this kind of small, checked cleanup as a fixed-price project in the Upwork Project Catalog ("a searchable Japanese PDF with a verified name index", with a correction log).

來源:DEV Community · dev.to