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

AI/ML

Spin-off · Infortrend

Face Wall Generator

Repeatable grids for checking face detectors

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

Role
Creator & Maintainer
Period
2021.03 – 2026.11
Status
Completed
Categories
Vision & imagingAI & machine learning
Origin
Infortrend
Stack
  • Python
  • OpenCV
  • NumPy
  • YuNet
Face Wall Generator, screenshot 1

Overview

A pip-installable Python CLI for building test images with known face counts and grid positions. Seeded selection makes layouts repeatable; optional YuNet face cropping prepares ordinary photos first. The repository includes public-domain portrait samples.

What it's good for

Handy in regression tests: the same seed and the same faces always give the same wall, so a detector's score changes only when the detector does. It needs only NumPy and headless OpenCV, so it runs in containers and CI, and the YuNet model ships inside the package.

How it fits together

Simplified on purpose. The real thing has more arrows and at least one config file nobody understands.

Same seed, same faces, same wall. If the score changes, the detector did.

  1. Face folder
    • faces/ samples
    • png, jpg, jpeg
    → read by
  2. This oneface-wall CLI
    • optional YuNet crop
    • seeded random tiles
    • OpenCV, NumPy
    → saves
  3. Face wall image
    • known face count
    • known positions
    → tests
  4. Your detector
    • compare with grid

Point at a box to see what it connects to.

An 8 × 4 wall, seed 1. Faces may repeat: the Mona Lisa turns up five times.
An 8 × 4 wall, seed 1. Faces may repeat: the Mona Lisa turns up five times.

Features

  • Seeded layouts with configurable rows and columns
  • Optional YuNet face cropping
  • Installable command-line tool
  • Public-domain sample portraits
Four uncropped inputs: a painting, a full-length photo, a woodblock print, a portrait.
Four uncropped inputs: a painting, a full-length photo, a woodblock print, a portrait.

Results

  • Repeatable test grids with known face positions

What I learned

  • Without cropping, a half-length portrait squeezed into a 72 px tile becomes a tiny person and a lot of background, hence --crop-faces.
  • Public-domain photos still show people with personality rights, so the samples are test data, not advert material.
  • The same four after --crop-faces: YuNet finds each face and crops to it.
    The same four after --crop-faces: YuNet finds each face and crops to it.
  • Vision & imagingAI & machine learning11 stars on GitHub

    Street Scene OCR

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

    2026Completed
  • 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