Dice Vision System

Computer Vision solution using ML to detect, track, and read dice rolls in real time, integrating results into a centralized game server.

Client:

EM games, Germany

Project Overview

A gaming company sought to develop an AI-powered vision system to automate dice recognition during gameplay. The solution needed to reliably detect dice in a controlled environment, determine when they stopped rolling, read the values shown, and transmit the results to a Unity-based game server. The system had to operate in real time, ensuring accuracy and responsiveness without relying on generative AI outputs.

Challenge

The project faced multiple technical and operational challenges:

  • Real-Time Precision: Detecting dice movement and final stability within a strict 3-second window.

  • Face Recognition: Accurately reading the dice face value using limited training data (initially only 101 images for two-dice combinations).

  • Integration: Ensuring seamless communication with the Unity gaming server and maintaining consistent performance in live conditions.

  • Constraints: The client prohibited the use of generative AI, requiring a fully deterministic ML pipeline.

  • Commercial Risks: The client requested low-risk payment stages, necessitating incremental, testable deliverables.

Solution

Axis designed a modular CV pipeline composed of four stages:

  1. Movement Detection: OpenCV + optical flow to identify dice rolling events.

  2. Dice Detection: YOLOv8 models trained to locate dice within the frame.

  3. Stop Detection: Tracking ROIs until movement ceases within the 3-second stability window.

  4. Face Recognition & Scoring: Classifier to read pip values on each die, calculate totals, and send results to the Unity game server.

The project was divided into four commercial stages:

  1. Dataset preparation.

  2. Delivery of trained detection and classification models.

  3. Testing on unseen data.

  4. Integration with the game engine.

Ready to join the digital revolution?

Schedule a Call and Learn More

Axis Agency Logo

©2025 AXIS Agency. All rights reserved