View Single Post
  #4   Spotlight this post!  
Unread 07-02-2009, 19:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,780
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Axis Cam brightness in LabView

The mask for both of the colors is set pretty wide, so as you noticed, bright orange, red, and magenta will get picked up too. That isn't so bad.

You say the green doesn't look so hot. The best way to determine which parameter is off is to open up the subVI called FindTwoColor. On its panel is a button for debugHSL and an image display which you can mouse over to see individual pixels in HSL. This is off by default because it slows stuff down, but for tuning, turn it on and hover over the pink and green areas. Compare that to the HSL numbers on your top panel.

Ideally the H number is somewhere near the center. It probably needs to be around five or ten from the high or low.

The saturation needs to be above the minimum by ten or so, and the luminance above the minimum by ten or so.

If your light is sufficiently different, you may need to bump the numbers a little. You can do it while the VI runs. The other option is to turn on more lights or move to a place with more even lighting.

I would really like to hear which parameter was off and how much you had to change it to work.

Greg McKaskle