This is a simple OpenCV project where the program identifies the colors of each face of the cube and gives the solution to solve the cube
To get a local copy up and running follow these simple steps.
You need to have Python installed in your system, any version above 3.6 will be fine.
- Clone the repo
git clone https://github.com/ssreeramj/rubik-cube-solver.git
- Install required packages
pip install -r requirements.txt
- Run the program
python main.py
This current version of the program is not much flexible and works for the following colors: Red, Blue, Orange, Green, White, Yellow.
Start displaying the cube in the following order with WHITE color on top: RED -> BLUE -> ORANGE -> GREEN
After this, display WHITE and YELLOW centers keeping the BLUE center on your left.
Press SPACE to capture a particular face and press n to capture the face again.
- Make the application more flexible such as capability to identify different colors.
- Be able to identify the cube, without the hardcoded box.
Feel free to suggest any improvements in the ISSUES section.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request