# I'm learning to solve a Rubiks cube, so I built an app that scans mine and walks me through the solve — retained record

> Retained reddit record from reddit:computervision.

Canonical: https://highsignal.app/data/records/c95f2516fc0a918f

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:computervision)  published 2026-09-26 04:43 ingested 2026-09-27 02:36

[original source ↗](https://www.reddit.com/r/computervision/comments/1wqhge4/im_learning_to_solve_a_rubiks_cube_so_i_built_an/)

## retained text



```
I am using image processing to solve a Rubiks cube.  
The pipeline is plain image processing with OpenCV. It finds the stickers with edge detection, fits a 3x3 grid to them, and flattens each face with a perspective warp. It then reads each sticker's colour in LAB and matches it against a palette of reference colours measured from my previous tests. Glare was the hardest part to find a solution to. What fixed it was letting the hue count more than the brightness, and making sure each colour ends up with exactly 9 stickers.  
Has anyone found a better way to handle glare?

Code: [https://github.com/donsolo-khalifa/RubikSolver](https://github.com/donsolo-khalifa/RubikSolver)
```



document fetched 2026-09-27 00:23 · canonical https://reddit.com/r/computervision/comments/1wqhge4/im_learning_to_solve_a_rubiks_cube_so_i_built_an
