Thread: Vision
View Single Post
  #2   Spotlight this post!  
Unread 10-02-2012, 08:49
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,751
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: Vision

Personally I would load it up in Vision Assistant, read the 2012 vision white paper and try out vision example code.

Specifically, if you launch the NI Vision Assistant, the first screen will have a button to Open images.

Once you have images loaded and they are shown in the big document area and you are Processing Images, click on the second button on the left center, the rainbow or color image processing button. Third on the list is a color threshold function. Choose it and adjust the sliders to mask (in red) the green parts of the image. You can do this in RGB, but it may be more precise to do it in HSL color space. If you are finding it difficult, draw a rectangle on the image that selects what the histograms display. This will give you a better idea what to set the sliders to. I attached a screenshot of this step to show the results you can achieve -- though due to the distance or light brightness, your colors are a bit dim, but workable.

From there, you have an idea of the color of your reflected target and you can use the white paper or examples to get you started.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-02-10 at 7.46.32 AM.png
Views:	54
Size:	122.1 KB
ID:	11831