PrototypeSource availableHackathon AI game backend / 2025
Problem
A drawing game needs fast sketch recognition and scoring that reflects time and prediction quality.
Solution
Build two FastAPI routes: one decodes base64 sketches, preprocesses them into 28x28 grayscale inputs, and calls a CNN; the other builds a 61-value observation and calls a PPO model.
Key Features
FastAPI app with routed sketch prediction and score endpoints
Base64 sketch decoding from the Flutter canvas export flow
Image preprocessing pipeline: grayscale conversion, drawing-area crop, aspect-preserving resize, and 28x28 padding
CNN sketch guess model trained on a Quick, Draw-style class subset with top prediction output
Gymnasium environment and PPO scoring model using timing, similarity sequence, and previous-score context
Flutter mobile surfaces for onboarding, mode selection, drawing, prediction, Firebase-backed sessions, and chat/game flow
Next.js landing repository that gives the prototype a product-facing presentation layer