Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

Computer Vision

Street Scene OCR

Three readers. One street sign.

Compare EasyOCR, RapidOCR and PaddleOCR on Traditional Chinese street signs, with text boxes, timings and a small public-domain benchmark.

Role
Creator & Maintainer
Period
2026 – 2026.11
Status
Completed
Categories
Vision & imagingAI & machine learning
Stack
  • Python
  • FastAPI
  • EasyOCR
  • RapidOCR
  • PaddleOCR
  • Docker
Street Scene OCR, screenshot 1

Overview

A learning project for Traditional Chinese scene-text recognition. The same photo runs through three engines behind one API and web interface. Documentation follows detection, recognition and post-processing with actual model outputs, while a small CC0 photo benchmark makes the comparison reproducible.

What it's good for

For anyone who has to read Traditional Chinese signs: one upload shows three engines' boxes, text and timings side by side, and a re-runnable CC0 benchmark says which one to start with. The choice comes from measurements, not from whichever README sounds most confident.

Diagrams

Main paths only. The edge cases stayed in the code.

The interview ended years ago. The homework got a sequel.

Point at a box to see what it connects to.

  1. Upload a street sign photo(Web page or JSON API) → Engine loaded yet?
  2. Engine loaded yet? → yes: Rotate, convert to RGB, shrink → no, first use: Load the engine's models
  3. Load the engine's models(First read takes longer) → Rotate, convert to RGB, shrink
  4. Rotate, convert to RGB, shrink(Longest side at most 2560 px) → Which detector?
  5. Which detector?(Set by the chosen engine) → CRAFT: Map characters and their links → DB: Map shrunken text-line bars
  6. Map characters and their links(EasyOCR's detector) → CRNN reads each line
  7. CRNN reads each line(BiLSTM, then CTC decoding) → Mark confident green, unsure red
  8. Map shrunken text-line bars(Both PP-OCR engines) → PP-OCR reads each line
  9. PP-OCR reads each line(Light SVTR blocks, CTC decoding) → Mark confident green, unsure red
  10. Mark confident green, unsure red(30% threshold, nothing dropped) → Sort into reading order
  11. Sort into reading order(Rows top-down, then left-right) → Convert to Traditional?
  12. Convert to Traditional? → yes: Fix Simplified forms with OpenCC → no: Return JSON and annotated PNG
  13. Fix Simplified forms with OpenCC(Fixes 賀, also breaks 台) → Return JSON and annotated PNG
  14. Return JSON and annotated PNG

Features

  • Side-by-side results from three OCR engines
  • Text boxes, recognised text and stage timings
  • FastAPI JSON service and web interface
  • CC0 photos and reproducible benchmark scripts
The web page: one photo through all three engines, each with its boxes, text and timings
The web page: one photo through all three engines, each with its boxes, text and timings

What I learned

  • EasyOCR, the 2021 choice, has a 74.5% character error rate on the real sign photos; RapidOCR gets 18.4% and runs over ten times faster.
  • Most PP-OCR mistakes are Simplified forms of the right character. OpenCC fixes 賀 and 涼 but turns a correct 台 into 臺, so it stays off by default.
  • An engine's confidence says how sure it was, not whether it is right: it can be 99% sure of a wrong character.
  • What the detectors see: CRAFT's character and link maps next to the PP-OCRv6 line map
    What the detectors see: CRAFT's character and link maps next to the PP-OCRv6 line map
  • Line by line: what each engine read; EasyOCR misses the vertical signs
    Line by line: what each engine read; EasyOCR misses the vertical signs
  • The 2021 take-home, run unchanged: an upload form and a wall of raw numbers
    The 2021 take-home, run unchanged: an upload form and a wall of raw numbers
  • Spin-off · Infortrend
    Vision & imagingAI & machine learning11 stars on GitHub

    Face Wall Generator

    Tile a folder of face pictures into a seeded grid. Optionally crop faces with OpenCV’s YuNet detector before building the wall.

    2021Completed
  • Spin-off · Infortrend
    Vision & imagingAI & machine learning33 stars on GitHub

    OpenPose Wrist Heatmap

    Runs the body OpenPose model over a video and piles up where the wrists went into a heatmap. The repo name says hands; the model only ever knew about wrists.

    2020Completed
  • Work · Infortrend
    Vision & imagingAI & machine learning

    Persona Tracking

    A camera next to a digital sign tracks the people in front of it, guesses gender and age group, notices who is actually looking, and picks the ad that fits them. Most people walk straight past.

    2019Completed