How it works

This app runs entirely in your browser on Android Chrome. Here is the pipeline:

  1. Open the camera using the "Start camera" button.
  2. Hold the top UNO card inside the guide frame.
  3. Every 500ms, a frame is captured and the centre region is analysed.
  4. Pixel-level HSL colour analysis classifies the card as Red, Green, Blue, Yellow, or Wild/Black.
  5. A temporal smoothing buffer stabilises results to avoid flicker.
  6. The UNO rules engine shows which cards in your hand are playable.

Current status

Colour detection is live and works with real camera input. Face/number detection requires a trained ML model (TensorFlow.js or ONNX) which is not yet integrated — for now the app detects colour only and defaults the face value.

Tips for best results

  • Use good, even lighting — avoid harsh shadows or glare.
  • Fill the guide frame with the card as much as possible.
  • Hold the card steady for 1-2 seconds for the smoothing to stabilise.
  • A plain background behind the card helps accuracy.