Quote:
Originally Posted by dmitch
In the example code, how would you get it so that the camera sent in only a monchrome image, or the code would only analyze the L value?
|
In the code, there is something about the threshhold, in this line (This is what we changed it to to get a white light working):
Threshold threshold(0, 255, 0, 255, 240, 255);
Those numbers are MinHue, MaxHue, MinSaturation, MaxSaturation, MinLuminosity, MaxLuminosity. So just make the Hue and Sat. from 0-255, and the Lightness from 240-255.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage