View Single Post
  #6   Spotlight this post!  
Unread 30-01-2013, 11:57
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: White Ring Light

Quote:
Originally Posted by dmitch View Post
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
Reply With Quote