Roast level
An EfficientNet-B0 classifier labels the bean as Green, Light, Medium or Dark. The result is shown and, in auto-detect mode, selects which defect model runs next. You can override it.
- Model
- EfficientNet-B0
- Classes
- 4
- Input
- 224 × 224
Computer vision · ONNX Runtime · FastAPI
Upload a coffee bean photo and choose green or roasted analysis (or let BeanSight choose automatically). The app uses a 17-class classifier for green (unroasted) beans, or a YOLOv8 detector that finds broken, quaker and scorched beans in roasted coffee.
The roast classifier decides which defect model runs. If it gets the bean type wrong, pick it here and analyze again.
Results will appear here after you analyze an image.
Running inference…
Three ONNX models run on CPU. Choose the green or roasted defect workflow, or use the roast classifier for automatic routing.
An EfficientNet-B0 classifier labels the bean as Green, Light, Medium or Dark. The result is shown and, in auto-detect mode, selects which defect model runs next. You can override it.
For unroasted beans, a second EfficientNet-B0 classifies the bean into one of 17 defect classes such as Full Black, Fungus Damage, Insect Damage, Parchment or Withered. Works on a single bean per photo.
For roasted beans, a YOLOv8n detector locates every bean and tags each one as Normal, Broken, Quaker or Scorched, so it handles a single bean or a handful at once.
Models were trained on public coffee bean datasets and exported to ONNX; accuracy is best on photos that resemble the training data (a single bean on a plain background for classification). Predictions are informational and not a substitute for a certified grader.
Every analysis is logged to PostgreSQL; the uploaded image is stored in Supabase Storage.
| Image | Roast | Defect result | Confidence | Time |
|---|---|---|---|---|
| Loading… | ||||