Hi
I am creating a Rubik's cube detection program for OpenCV in order to detect the colour of each individual cubie however i am struggling to tell the difference between colours such as red, orange and yellow. I have investigated this throughly and tried many different arrays.
Any help would be appreciated if anyone has any better arrays.
The code I have used is below
What I have tried:
"red" : (np.array([160, 75, 75]), np.array([180, 255, 255])),
"blue" : (np.array([110, 75, 75]), np.array([130, 255, 255])),
"green" : (np.array([35, 0, 0]), np.array([85, 255, 255])),
"yellow" : (np.array([20, 75, 75]), np.array([40, 255, 255])),
"white" : (np.array([0, 0, 20]), np.array([180, 30, 255])),
"orange" : (np.array([10, 100, 100]), np.array([20, 255, 255]))