Case study · Mobile · Computer vision
From a scrambled cube to a step-by-step solution in a few taps
The Rubik's Cube Solver is an Android app that reads the colors of a scrambled cube with the camera and then shows the solution one move at a time on an animated 3D cube.
The problem
Solving a scrambled cube takes algorithms most people never learn. Reading the cube from photos is also tricky: lighting changes how colors look, and a single misread sticker makes the cube unsolvable.
Our solution
- 1
The app guides the user to capture each face with an on-screen overlay, then sends the stickers to a separate FastAPI service for color detection.
- 2
A small ONNX neural network classifies each sticker into one of six colors. When it is not confident, a color-range (HSV) check takes over, which makes detection far more reliable in poor light.
- 3
The detected cube state goes to a solver that finds a short solution, and a custom isometric 3D renderer in Flutter plays it back move by move.
Key features
- Guided camera capture for all six faces
- Hybrid color detection: neural network with a color-range fallback
- Short, step-by-step solutions
- Custom isometric 3D cube renderer built in Flutter
Results
- Faces scanned
- 6
- Colors classified
- 6
- A complete pipeline from camera photo to animated solution
- A reusable pattern for pairing a Flutter app with a lightweight ML service
Have an idea? Let's stack it up.
Tell us what you are building. You will get a clear plan and a fair quote, usually within one business day.