Forums > MaxMSP

Multiple colour tracking with Jitter question.

Feb 22 2010 | 2:21 am

I’m creating an interaction design project that will read the colour combinations of a rubiks cube. Is this at all possible to do with webcams and jitter. I know that it’s possible to do with single colours, but any tips or links to similar projects/code would bee very much appreciated.


Feb 22 2010 | 3:55 am

you should be able to get a long ways with jit.findbounds, it’s well-suited for this. just use nine to analyze each side. However, if there are multiple squares with the same color, you’ll get the overall bounding box.

Actually, for a more or less static image of a side, you could just pick a point in each section and get the straight RGB values, may not need findbounds at all. Look to [suckah] to help determine the colors—as they are actually "seen" by the camera, that is.

Now, making an interactive virtual one with OpenGL would be really cool… especially if it solved itself!

Feb 22 2010 | 10:24 am

You could use [jit.findbounds] to find the entire face of the rubik’s cube and then downsample the resolution to 3 3 and use the colour values for each of the nine squares. I really hope you intend to hook this up to some sort of robot arm for automatic, extremely fast puzzle solving!


Feb 25 2010 | 10:20 am

Thanks guys, for your fantastic suggestions.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP