One photo of a binder page in, every card identified and priced out. Here's the scanner with its case off. Drag a card's corners and watch each step react.
Synthetic cards and a synthetic photo: real card art is copyrighted, so the demo draws its own. The page runs the same steps as the Python code, in your browser.
What happens between the shutter and the price tag.
Blur, Canny edges, contours. Keep four-cornered shapes with a card's 63 × 88 mm proportions.
A homography maps the tilted quad to a flat 630 × 880 card. The lab does this live as you drag.
A difference hash of the artwork: each bit says whether a pixel is brighter than its neighbor.
Compare against every catalog card. The gap between first and second place sets the confidence.
Look the match up in the daily price data from After the Pull.
| Problem | Why it breaks | Fix to try |
|---|---|---|
| Sleeve glare | Washes out art and fakes edges | Mask blown-out pixels; CLIP embeddings |
| Same art, new foil | Reverse holo vs normal look nearly identical | Second pass on holo texture and set number |
| Cards touching | Neighbors merge into one shape | Use the binder's 3 × 3 grid to fill gaps |
| Slabs | Card sits in a case under a label | Detect the case, crop, read the label |
| Sports cards | No free image catalog; /99 numbers matter | OCR serials; catalog from my own scans |
detect.py, write complete_grid(): when the detector finds 6 of 9 cards on a binder page, place the missing 3 using the grid. Real binder photos need it.build_catalog.py, photograph 20 of your own cards, and compare hash and CLIP accuracy. Publish the table here.