/ Модель

Характеристики

Лицензия
Своя лицензия
Базовая модель
vit_small_patch16_dinov3.lvd1689m
Библиотека
pytorch
Опубликована
13 ноя 2026

pokemon-card-scanner

Эмбеддинги изображенийИзображение → embedding3 профессии

Набор моделей CardCorpus извлекает признаки и помогает находить точные издания карт Pokémon на фотографиях.

0скачиваний за 30 дней0лайковвеса обновлены28 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

CardCorpus Scanner — набор моделей и индекс для распознавания коллекционных карт Pokémon на фотографиях. Он предназначен для поиска точного издания карты, включая набор и номер, на снимках страниц альбомов, стола или карт в руке. Репозиторий содержит детектор QuadDet на MobileNetV4-small, matcher на базе DINOv3 ViT-S/16 с дообучением и линейным отображением 384→512, а также вспомогательные головы; общий размер весов около 23,3 млн параметров. Модели принимают изображения карт и извлекают визуальные признаки для поиска по индексу; полный сканер также выравнивает изображения, определяет ориентацию и использует дополнительные компоненты для чтения номера и выбора издания.

Индекс охватывает карты CardCorpus, выпущенные по 27 ноября 2026 года, и поддерживает поиск изданий на шестнадцати языках. В описанной оценке точность первого выбора на фотографиях страниц альбомов составила 97,7–98,3% в стандартном режиме и 93,3–96,4% при поиске по всем языкам. Это специализированный набор компонентов, используемый через пакет cardcorpus-scanner; указана лицензия «other», конкретные условия в предоставленных данных не раскрыты.

Сценарии применения

  • поиск карт Pokémon на страницах альбома
  • определение набора и коллекционного номера карты
  • поиск точного издания карты по фотографии
  • поиск карт в разных языковых версиях каталога
  • сопоставление снимка карты с индексом CardCorpus

Ограничения

Модель ищет только карты, присутствующие в индексе; выпуски после 27 ноября 2026 года могут быть сопоставлены с ближайшей известной картой. Различия между первым изданием и обычной копией либо между фольгированной и стандартной версией могут быть неразличимы, если на изображении нет соответствующих визуальных признаков.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

CardCorpus Scanner

Models and a reference index that name Pokémon trading cards in photos: every card on a binder page, a table or in a hand, as the exact print (set and number) in any of sixteen languages (English, Japanese, Simplified and Traditional Chinese, Korean, Thai, Indonesian, French, German, Italian, Spanish, Portuguese, Latin American Spanish, Dutch, Russian and Polish), from 1996 to 2026. Each answer is the card's address in the CardCorpus dataset, an open dataset of every Pokémon card (github.com/cardcorpus/pokemon-card-dataset).

The code that runs them, a command-line tool and a local web page, is the cardcorpus-scanner Python package: github.com/cardcorpus/pokemon-card-scanner.

from cardcorpus_scanner import Scanner

scanner = Scanner.load()            # downloads this repository once
result = scanner.scan("binder-page.jpg")
for card in result["cards"]:
    best = card["candidates"][0]
    print(best["name"], best["set_name"], best["number"], best["print"])

best["print"] is "<set>/<card>": english/base-set/4 is card 4 of https://pokemon.cardcorpus.com/v1/sets/english/base-set.json.

What's here

filemodelparametersinput
models/detector.safetensorsQuadDet: a card's centre, size and four corners on a stride-4 grid, MobileNetV4-small backbone1.4Mphoto, longer side 1280
models/matcher.safetensorscard matcher: DINOv3 ViT-S/16, fine-tuned, and a linear map 384 → 51221.8Mstraightened card, 224 × 224 centre square
models/heads.safetensorsorientation head (512 → 256 → 4 turns) and a card-back prototype0.1Mthe matcher's fingerprint
models/number-reader.safetensorsCRNN collector number reader, CTC over 40 characters1.1Mgrey strip, 48 × 384
models/picker.safetensorsprint picker: PE-Core S/16, fine-tuned23.8Mwhole card, 448 × 320
models/language-classifier.onnxlanguage model: LCNet-050, fine-tuned to name which of twelve languages a card is printed in (every language in the index but Dutch, Russian and Polish; one class for both Spanishes), without reading words1.8Mname bar, foot and rules text stacked, 448 × 336
models/corner-reader.safetensorscorner reader: the number reader's CRNN, trained to read the set code and language mark at a card's foot (MEW EN, M6a F); corner-reader.json holds each set's printed code1.1M90 grey strips, 48 × 384
index/256,216 fingerprints of pictures of 214,178 cards, the print picker's gallery (67,510 fingerprints) and the cards they show
pipeline.jsonevery setting of the scanner

Weights are float32 safetensors; the index is float16. The whole repository is about 572 MB.

How the scanner uses them

Per card (the package's SPEC.md gives every number):

  1. Detect: QuadDet finds each card's four corners.
  2. Orient and fingerprint: the card is straightened in its four turns; the matcher fingerprints each and the orientation head picks the upright one.
  3. Retrieve: the fingerprint's 20 nearest pictures in the index, one candidate per card, ten kept.
  4. Straighten again at 960 × 1340.
  5. Read the number: the number reader reads 180 strips around the places a collector number is printed, and votes.
  6. Pick the print: among prints of one painting (Base Set, Base Set 2 and Legendary Collection share theirs), the picker scores each against its gallery.
  7. Fuse and verify: picture similarity plus weighted evidence; a training-free verifier (SIFT and a homography) compares the card with each sibling print's reference picture where those pictures differ.
  8. 1st Edition stamp and 9. e-Card reverse holo scores, from template matching and the strips' periodicity.

Then the language check: the language model looks at every card, and when it is sure the card is printed in another language than the pick's, the card is flagged with that language's print of it (the pick stays, unless asked). Prints of one card in several languages share a painting and a number, so the picture alone can't always tell them apart; the optional language reader settles those ties with the language model, then the corner reader, then OCR.

Training

  • Matcher: DINOv3 ViT-S/16 fine-tuned to tell paintings apart, on card pictures and real photos of cards, with photo-like augmentation (perspective, rotation, lighting, colour, blur, glare, compression).
  • Picker: PE-Core S/16 fine-tuned to tell apart the prints of one painting from the whole card, on the same kinds of pictures.
  • Detector: trained from ImageNet weights on scenes composed from card pictures and on real photos whose cards' corners were marked or reviewed by hand.
  • Orientation head: fitted on the matcher's fingerprints of cards in each of four turns.
  • Number reader: trained on number strips cut from card pictures, with camera-like augmentation, and on strips from reviewed photos.
  • Language model: LCNet-050 fine-tuned on card pictures (with photo-like augmentation and foil streaks) and real photos of cards in each language; three training runs averaged into one model.
  • Corner reader: the number reader's shape, trained on the set codes read off card pictures and fine-tuned on real photos.

The index covers every card in the CardCorpus dataset as of 27 November 2026: the matcher's fingerprint of each card's pictures in the dataset, and of further photos of many cards, with the card each picture shows.

Evaluation

The first pick counted right when it is the exact print, on photos held out of training:

photoscardsright (default)right (--catalog all)
binder pages of vintage cards, at the camera's full resolution641629 (98.1%)618 (96.4%)
the same photos shrunk to 3000 px641630 (98.3%)618 (96.4%)
a collection's binder pages1,2631,234 (97.7%)1,179 (93.3%)
cards photographed with a phone139122 (87.8%)101 (72.7%)
varied real-world photos, many small, blurred or at an angle672585 (87.1%)431 (64.1%)

Measured on 26 November 2026 with these models and the index of that day. The default keeps to English, Japanese and Simplified Chinese prints; --catalog all matches against all sixteen languages, and nearly all of the cards it loses come back as the same card printed in another language (an English card as its Italian or German print, a Japanese one as its Korean print). Cards cut off by the photo's edge are left out, as the scanner does by default. A binder page of 9 to 12 cards takes about 3.6 s on Apple silicon's GPU (an Apple M6) and about 12.5 s on its CPU.

Limits

  • It knows the cards in its index. A card released after 27 November 2026 isn't there, and the scanner names the closest card it knows; a new snapshot of this repository adds new sets.
  • A 1st Edition and an Unlimited copy, or a reverse holo and its standard copy, are one print to the matcher. The stamp and e-Card scores help where those copies print a tell; otherwise the scanner names the print, not the copy.
  • It reads which card it is, not its condition, and wasn't tested on cards in graded slabs.

Licence

Several licences apply; LICENSE.md lists each file's. In short: the matcher is a fine-tune of DINOv3 and is under the DINOv3 License; the other models and pipeline.json are under Apache 2.0; the index is under CC BY 4.0. Built with DINOv3.

Pokémon and Pokémon character names are trademarks of Nintendo, Creatures and GAME FREAK. Card pictures and text are © The Pokémon Company, Nintendo, Creatures, GAME FREAK and, for older cards, Wizards of the Coast. This project is not produced, endorsed, sponsored or supported by, or affiliated with, any of them.

Citation

@misc{cardcorpus_scanner_2026,
  title  = {CardCorpus Scanner},
  author = {{The CardCorpus Authors}},
  year   = {2026},
  url    = {https://huggingface.co/cardcorpus/pokemon-card-scanner}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch · image-feature-extraction

Можно запустить

Подбираем GPU…

Ревизия весов
7023a52

0 моделей