dwalton76 / rubiks-color-resolver

Resolve rubiks cube RGB values to the six cube colors
MIT License
35 stars 15 forks source link

blue is not detecting in low light conditions #1

Closed leonoosterwijk closed 6 years ago

leonoosterwijk commented 7 years ago

hey i found this project tonight and tried to make it work on my raspberry pi (for my rubiks solving robot) and i found that in low light the blue on my cube is not being detected. I tried fiddling with the blue definitions in the file but might not have the right end of the stick. here is the image which is failing detection let me know if you have any advice.

screen shot 2017-03-11 at 23 22 45
dwalton76 commented 7 years ago

@leonoosterwijk when it happens can you capture an image (just straight from the webcam, not from the program with the white circles) and post it here? You can run "rubiks-cube-tracker.py --filename FILENAME.png" and it will pop up a few windows at various stages to show what is happening. My guess is that there blue vs. black surroundings are so close that we aren't find the edges of the blue squares.

PS This part of the code is actually part of https://github.com/dwalton76/rubiks-cube-tracker so we should probably move the conversation there