Skip to content
Axium
Axium Blog

Finding Race Photos by Face and Bib Number: How It Works

Computer vision for finding race photos: runners find their shots by bib number or selfie, including shots where the bib is covered or out of frame.

Axium Team 10 min read
#computer vision #photo search #AI #sports
Three runners on a tree-lined avenue, frames around their faces and bib numbers, lines linking each face to its bib
Every face in the photo is linked to its bib number

In Short

  • What it is: a computer vision system for race photo services and event organisers
  • What it does: reads bib numbers, compares faces and links one to the other
  • What the runner gets: finds their photos by bib number or by selfie, including shots where the bib is covered or out of frame
  • Where it runs: on a private server, with no external cloud services and no per-request fees

Why a Photo Service Needs It

At a mass running event, photographers stand along the whole course and shoot non-stop. After the finish the service has thousands of shots, and every runner wants to find theirs quickly: to view, download or buy them.

Convenient search gets the runner to choosing and buying photos. If search is inconvenient, the runner scrolls through a couple of pages and leaves, and most of the shots stay unsold.


Why Searching by Bib Number Isn’t Enough

A photographer at a laptop facing a wall of hundreds of identical thumbnails, one of them highlighted
Thousands of similar shots with no labels

Race photos carry no labels. They show dozens of people in similar kit, in caps and sunglasses, in motion. The usual approach is to search by bib number, but in real race photos the bib often can’t be read:

  • The bib is covered. By a hand, a water bottle, a jacket or another runner
  • The bib is too small. The person is far from the camera or running sideways
  • The bib is read only in part. The edge is folded, and instead of “1531” the system sees “531”
  • The bib is out of frame. The photo is cropped at the chest: the face is visible, but the bib stayed outside the shot.

If search relies on the bib number alone, runners get only some of their photos. They never see the rest, which means they don’t buy them.


What the System Needs to Do

  • Search by bib number and by selfie. The runner picks whichever is convenient, and the result is the same
  • Find shots without a visible bib. These are exactly the ones a regular search loses
  • Not show other people’s photos. Slightly fewer shots is better, as long as they are all yours
  • Keep data in-house. Photos and face data are processed on a private server, with no external cloud services

How It Works: Bib and Face Together

Photographers upload their shots as they are, with no labels. The system finds faces and bib numbers in them on its own and links them to each other.

Reading bib numbers

The system reads text in a photo in two passes. First across the whole frame, then separately and zoomed in on the area below each detected face, where the bib usually hangs. This way even small bibs of runners in the background are found. Anything that doesn’t look like a bib number is dropped from the recognised text: ads on kit, the time on the clock, banner lettering.

Recognising faces

For every face in a photo the system builds a digital fingerprint. Fingerprints of the same person are close to each other, even if they wear a cap or were shot from a different angle. That is why a single selfie is enough to find the person in the rest of the photos.

Linking face and bib

Diagram: a photo of a runner, the face and the bib cut out of it, joined into one card, with the person's found photos on the right
The face and the bib from one shot are merged into a runner profile

This is the core of it. If a photo shows both the face and the bib, the system remembers they belong to the same person. From then on search works both ways: a bib number finds shots where the bib is covered but the face is recognisable, and a selfie, the other way round, finds shots where the face can’t be made out but the bib can be read.

Learn more about this service: AI integration for business


The Runner’s Journey

  1. The runner opens the event page
  2. Enters a bib number or uploads a selfie
  3. The system finds their profile: face, bib number and all linked shots
  4. The runner sees a selection of their photos, including those where the bib isn’t visible
  5. Picks the shots and downloads or buys them
A smartphone searching for bib 1531, showing a grid of one runner's photos, including shots where the bib isn't visible
Search by bib number also finds shots where the bib isn’t visible

Key Decisions

1. Bursts instead of single shots

A film strip of four shots of one runner: the bib is visible in the first, covered or blurred in the rest, a dashed line links all the shots
The bib is read in one shot and carried over to the whole burst

Photographers often shoot in bursts: several frames in a row within a couple of seconds. In one the bib is clearly visible, in the others it’s covered by an arm or blurred by motion. Using the capture time and how similar the people look, the system works out that the burst shows the same person and carries the recognised bib number over to every shot in it. This way it finds photos that would otherwise be lost.

2. Recovering partly read bib numbers

If a bib number is read only in part, the system doesn’t throw the shot away. It shows it to the runner in a separate “This might be you too” block. The decision stays with the person, so other people’s photos don’t end up in the main results.


What Can Be Added

  • Selfie upload from a phone. The runner takes a selfie right on the event page and sees their photos straight away
  • Private access. One of the options: the runner opens the gallery through a personal link from the organiser (by email or SMS after registration) and confirms who they are with a selfie taken by the camera right on the page. Then other people’s photos can’t be opened with someone else’s bib number or someone else’s photo. The organiser chooses what works best: open search by bib number or private access
  • Photo sales. A cart and payment via Click, Payme, Uzum or another payment system you already use
  • Processing during the race. Photos from every point on the course become searchable as they are uploaded

Payments case: CoffeeBox: a payment hub for vending coffee machines


How We Build a Project Like This

  • Study the shooting. We look at how photographers shoot on the course and why the bib can’t be read in some of the shots
  • Build a prototype on your photos. Bib and face recognition, the link between them, a web interface for search
  • Test on your photos. Before launch we measure how many of their own shots a runner finds and whether anyone else’s slip in, rather than judging by eye
  • Show a demo. You try the search on your own photos, and together we decide what to launch next

Who This Solution Is For

If you recognise your situation in at least one point, we can help:

  • you are a photographer or a photo service for sports events: running, cycling, triathlon, open-water swimming
  • you are an organiser and want participants to find their photos themselves, without emailing support
  • you run events with a large flow of guests: conferences, graduations, corporate events, weddings
  • you need to find people, numbers, labels or price tags in photos and link them to each other

Describe your task and we’ll reply within a day.


FAQ

Does anything need to be prepared for the race?

No. The system works with regular photos from the course: no special bibs, markers or cameras are needed.

What if the bib is covered or out of frame?

Then the photo is found by face, or through a burst where the bib was visible in a neighbouring shot.

Can runners search without a bib number, by selfie only?

Yes. The runner uploads a selfie, the system finds their photos by face and then adds more shots using the bib number it found.

Where do the photos and face data go?

Nowhere. Processing runs on a private server, and no external cloud services are used.

Can a stranger see my photos?

It depends on how the organiser sets up access. With open search by bib number, anyone who knows the number can see the photos. Private access can be set up instead: the runner signs in through a personal link from the organiser and confirms who they are with a selfie taken by the camera on the page. The selfie is processed with the runner's consent.

Does the solution work beyond sports?

Yes. The same approach works for finding guests' photos at events, and reading text in photos is useful for labels, price tags and documents.

Let us discuss your project

Leave your contact details. We will run a quick diagnostic, highlight key risks, and propose practical implementation options.

Mon-Fri 09:00-19:00 · hello@axium.uz

By clicking «Send request» you agree to the privacy policy.

Confidentiality guaranteed An engineer replies

What happens after your request

  1. Intro call: We clarify business goals and context. If needed, we sign an NDA immediately.
  2. Requirements analysis: We study your processes, identify technical risks, and map integration points with accounting systems, CRM, and ERP.
  3. Plan and estimate: We prepare a transparent proposal (SOW) with stages, timeline, and a fixed budget framework.
«There was no ready-made solution on the market: Axium built one for us in about a month, and it has been running reliably ever since.»
Roman Golovatenko, Head of Coffee Box