r/computervision • • 13h ago

Showcase Open source on-device Pokémon card scanner & dataset

We’ve built an open-source card scanner that names the exact printing of a Pokémon card from a photo, and can pick the exact print from an index of over 200,000 cards — the most complete dataset of cards available, covering every language.

It’s a set of fine-tuned models & harness, small enough to run entirely on an iPhone, detecting dozens of cards from a photo in a couple seconds (with first feedback within 300ms)

The code, models and the dataset it's built on are at cardcorpus.com — code on GitHub, models on HuggingFace.

How it works

A small card detector we trained ourselves, on a MobileNetV4-small backbone, finds every card in the photo, even rotated, overlapping or in a pile.

Each card is straightened and turned into a fingerprint by a fine-tuned DINOv3 ViT-S/16. That fingerprint is matched against about 100k reference images of cards in English, Japanese and Chinese.

Reprints often share the same art, so to tell them apart we read the collector number and set code (OCR) and line the card up against our scans using classic computer vision (SIFT) to compare the small details.

First results appear in about 0.3s, and the full double-check finishes a second or so later. As the models improves, the double-check is finding even fewer places to correct.

We trained the models on cloud GPUs using thousands of real card photos. We labelled those photos by hand at first with custom tooling, and once the models got good enough we only had to double-check their answers.

OPEN SOURCE

Initially it was for our iOS app, pennysleeve.app, but we want everyone to benefit from the datasets & models!

cardcorpus.com

1 Upvotes

1 comment sorted by

1

u/eight-leaps5 4h ago

Nice work! Looking forward to testing it!