~/talk

Implementing Passport OCR with CameraX × ML Kit

TalkinJapaneseat DroidKaigi 2022 · 2022-10-05..10-07· [machine-learning]
speakerdeck:kaiketch
slides:none on file

Describes implementing passport OCR on Android using CameraX 1.1.0 preview image analysis together with ML Kit on‑device Latin text recognition to capture frames and run OCR. It extracts the MRZ using regex, manages orientation via dynamic targetRotation and correct ImageProxy lifecycle, and applies common-character mappings and validation to auto‑fix or present corrections; device‑specific failures are logged and retried based on tests across Galaxy, Pixel and Xperia devices.

AI-written summary · about

  1. 0:00OCR introduction
  2. 4:19CameraX and ML Kit
  3. 7:29Dependencies and manifest
  4. 10:40Preview and camera setup
  5. 12:47Image analysis and passport
  6. 15:37Screen rotation and accuracy
  7. 17:45MRZ extraction and UI
  8. 18:49Accuracy improvements and validation
  9. 21:00Post-release monitoring
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.