View Single Post
  #8   Spotlight this post!  
Unread 18-12-2008, 19:08
ChrisH's Avatar Unsung FIRST Hero
ChrisH ChrisH is offline
Generally Useless
FRC #0330 (Beach 'Bots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 1,230
ChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond repute
Re: Team Fusion's take on cRIO and LabView

Quote:
Originally Posted by Luke Pike View Post
.

I found out, through much experimentation, that you really only need two vision vi's, IMAQ Color Threshold and IMAQ Particle Analysis Report. You wire the image from the camera and wire the color range you want into the Color Threshold vi. This vi looks for the color you specify and removes any pixels that are not in the color range. You can then wire the resulting image into the particle analysis. The Particle Analysis vi will give you an array of particle reports for every particle mass it finds. You probably want to make a global for the particle reports so you can access them in autonomous. The report with the highest area is the object your looking for. You can get the center of mass from the report and use it to compute how much to turn.
I THINK this is what we are doing. I just keep the bot running and let the programers play. I am present for most of the testing however.

We have been amazed at how insensitive the camera is to variations in lighting. When you think about it a red ball in a dark space has not changed color, but our perception of its color has. We think it is a darker color. This camera is not fooled. If there is even a very little bit of light the camera will find the color it is looking for. The biggest problem is on the other end. If the light is too bright the color washes out.

With this system 2005 would have been a very different game.
__________________
Christopher H Husmann, PE

"Who is John Galt?"
Reply With Quote