Son güncelleme: 2026-04-15 Repo: https://github.com/kocaemre/stai Sprint: Tek günlük yoğun geliştirme
| Takım | Durum | Branch / PR |
|---|---|---|
| Backend | 🟢 Siamese model entegre, end-to-end inference çalışıyor | main |
| Frontend | 🟢 Dashboard merge'lendi — WS + REST entegrasyonu tam | ✅ PR #1 merged |
| ML | 🟢 Siamese + golden sample + backend entegre | ✅ PR #2 merged |
| Physical Input | 🟢 Arduino + DroidCam → POST /inspect çalışıyor | ✅ PR #3 merged |
| RobotStudio | 🟡 Kod + setup guide hazır, arkadaş kendi PC'sinde kuracak | main |
| Test & Demo | 🟡 docs/DEMO.md + run_all.ps1 hazır; demo günü akışı yazılı |
main |
Legend: 🟢 hazır · 🟡 devam ediyor · 🔴 bloklu · ⚪ başlamadı
- FastAPI iskelet + lifespan
-
POST /inspect— multipart image → CNN stub → decision → robot komut → WS broadcast -
/ws/dashboardWebSocket manager + broadcast helper -
GET/PUT /api/config(runtime threshold override) -
GET /api/stats(total, defects, avg latency, robot + model durumu) -
GET /health - Async TCP robot controller — reconnect + heartbeat watchdog + send lock
- Pluggable ML inference —
.ptyoksa stub mode (pipeline akar) - SQLAlchemy async:
inspections,defects,events+ SQLite -
/data/incoming/*.jpgstatic mount (Live Feed için) - Smoke test suite (
backend/tests/test_smoke.py) — 10 test, ~500ms, pytest-asyncio + httpx ASGI - Commit'ler:
f11933b(iskelet),f4f49dc(review fix),9a91b84(image path fix)
- Next.js 15 + React 19 + Recharts + Lucide
- WebSocket
/ws/dashboard— 3s auto-reconnect -
/health5s polling → status badges -
/api/stats10s polling → running avg latency - Threshold slider → debounced
PUT /api/config - Stat cards, timeline area chart (bucket aggregation), pie chart, live feed, event log
- Backend kapalıyken simulation fallback (demo için)
-
docs/API.md— REST + WebSocket contract -
docs/PROTOCOL.md— Socket protokolü (RobotStudio için) -
docs/MODEL_CARD.md— taslak: interface contract hazır, metrics ML takımı doldurur - Root
README.md— monorepo map, branch stratejisi, entegrasyon tablosu - Her takımın klasöründe README
- Physical Input → mevcut prototipi
physical/altına commit,POST /inspect'e bağla - RobotStudio → station kurulumu + RAPID socket server (port 1025)
- ML → MVTec AD + ResNet50 + Focal Loss →
.ptexport →backend/models/'e - Test & Demo → test senaryoları + final report iskelet
- ML
.ptgelince →backend/models/defect_detector.ptkopyala + restart - RobotStudio hazır olunca →
.env'deROBOT_ENABLED=true - Frontend zaten bağlı
| Checkpoint | Durum |
|---|---|
| Frontend ↔ Backend (REST + WS) | ✅ DONE |
| Physical ↔ Backend (POST /inspect) | ⏳ |
ML ↔ Backend (.pt load) |
⏳ |
| RobotStudio ↔ Backend (TCP socket) | ⏳ |
| End-to-end (Physical → ML → Robot → Dashboard) | ⏳ |
| 10-parça full test | ⏳ |
9a91b84 Fix inspection.image path for frontend consumption
f4f49dc Backend self-review fixes
f11933b Initial scaffold: backend + monorepo structure
+ squashed: feat(frontend): Next.js 15 dashboard (PR #1)