Spaces:
Running
Running
|
Download README.md from jeffliulab/card-calibration-v1: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/spaces/jeffliulab/card-calibration-v1/resolve/main/README.md
- Command line
-
hf download hf://spaces/jeffliulab/card-calibration-v1/README.md
-
curl -L -o README.md https://huggingface.co/spaces/jeffliulab/card-calibration-v1/resolve/main/README.md
1.98 kB
A newer version of the Gradio SDK is available: 6.30.0
metadata
title: Card Calibration
emoji: π¨
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 5.23.0
python_version: '3.10'
app_file: app.py
pinned: false
license: mit
models:
- jeffliulab/card-calibration-v1
datasets:
- jeffliulab/card-calibration-v1-data
tags:
- color-calibration
- yolo
- computer-vision
Card Calibration β Live Demo
Upload a photo containing a color calibration card. The system detects the card, extracts color reference patches, and predicts the true color of the target patch under standard lighting.
How It Works
- Card Detection β YOLOv8 locates the calibration card in your photo
- Pattern Detection β A second YOLOv8 identifies 4 patches: red circle, green triangle, blue pentagon, black box (target)
- Feature Engineering β Extracts 12-D feature vector (9 reference deltas + 3 target RGB)
- Color Prediction β XGBoost or Random Forest predicts the true RGB under standard lighting
Best result: XGBoost (Bayesian-tuned) β Lab Mean ΞE = 4.59 (commercial printing standard)
Models
| File | Description |
|---|---|
yolo_first.pt |
YOLOv8-nano β card detection |
yolo_second.pt |
YOLOv8-nano β pattern detection |
xgboost_v1.pkl |
XGBoost calibration (best, ΞE=4.59) |
random_forest_v1.pkl |
Random Forest calibration |
Models are hosted on jeffliulab/card-calibration-v1 and downloaded automatically on first request via huggingface_hub.
Training Data
255 hand-collected photos, augmented to 2,294 samples. Full dataset available on jeffliulab/card-calibration-v1-data.