Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cahidenes/rubiks-cube-solver
Rubik's Cube solver with cube detection using OpenCV in python
https://github.com/cahidenes/rubiks-cube-solver
opencv rubiks-cube rubiks-cube-solver
Last synced: about 1 month ago
JSON representation
Rubik's Cube solver with cube detection using OpenCV in python
- Host: GitHub
- URL: https://github.com/cahidenes/rubiks-cube-solver
- Owner: cahidenes
- License: mit
- Created: 2021-01-30T11:36:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T18:47:54.000Z (about 3 years ago)
- Last Synced: 2024-08-03T23:03:33.169Z (5 months ago)
- Topics: opencv, rubiks-cube, rubiks-cube-solver
- Language: Python
- Homepage:
- Size: 8.65 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rubik's Cube Solver
Recognizes Rubik's cubes and solves with Kociemba's two-phase algorithm.This repository implements only recognizing part. Solution part is imported [(kociemba package)](https://pypi.org/project/kociemba/)
- Aimed for stickerless cubes. Occasionally works for other cubes, worth trying.
- **Key Feature:** Recognizes cube from only two opposite corners, no specific order needed. Easy and fast.## Demo
![Demo](https://github.com/cahidenes/visuals/blob/main/rubiks-cube-solver.gif?raw=true)
## Pip Installs
pip install opencv-python
pip install kociemba## Doesn't Work?
- Make sure all sides of your cube is well lit
- Make sure your cube is aligned nice enough with grid lines (especially the central corner)
- Make sure your finger doesn't cover your cube
- Remove logo sticker or cover with the appropriate color
- Try again with different corners or rotations (if you have passed the first corner, you can't choose any corner)
- Try again with flat color background
- Open an issue with screenshots provided## Possible Further Improvements
- Support for cubes with stickers
- Recognize cubes anywhere on the screen
- Better UI_Feel free to contribute or use in your projects :)_