Skip to content

YashIndane/Rubiks-Cube-Assistant

Repository files navigation

Rubiks-Cube-Assistant

A assistant to help you solve a standard Rubik's cube

Description

Getting the roi

1.The dataset consists of pixel values in the format of BGR format for each of the colours. The features are B,G,R and the target value is the colour label. For each label 625 rows of data is available.The model is trained on SVM classifier with the linear kernel.

  1. The 9 colours on each face of cube is grabbed after filtering the countours by area and shape.

sample_image1

  1. After the colours are grabbed , the middle pixel in them is used to predict the colour of whole ROI. This predicted colour values are stored in an array serially for further solving the cube.

Solving the cube

To see demo click here -> demo

The instructions for solving the cube have been webscrapped from https://ruwix.com/online-rubiks-cube-solver-program/

Installation

$ pip install selenium

For doing headless scrapping -

chrome_opt = webdriver.ChromeOptions()
chrome_opt.add_argument('--headless')
driver = webdriver.Chrome("<CHROME-DRIVER-PATH>", chrome_options=chrome_opt)

Releases

No releases published

Packages

No packages published

Languages