This is a first-pass grader for Pokemon card centering.
Current scope:
- Detects the card in an uploaded image.
- Estimates border thickness on all four sides.
- Reports left/right and top/bottom border ratios.
- Flags pass/fail for a
45/55centering window.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtstreamlit run app.pyThen upload a card image in the browser UI.
- This is a heuristic model, not an official TAG-grade implementation.
- Image quality, glare, and angled photos can affect results.
- Best results come from flat, well-lit scans/photos with clear card edges.