Go to Post So basically, the advantage of #35 is that it allows you to be sloppier in your design and fabrication. If you pay close attention to these details, you will never have a problem with #25 chain. - Jim Zondag [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-01-2013, 01:16
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Question Vision Proccessing Fine Points

Hello,

Last year, we managed to get our robot to track the basketball rings successively. Unfortunately, when we arrived at the competition, the lighting was different, causing our vision processing to stop working. We could not re calibrate the camera on the playing field, and so were forced to abandon the idea. If we ran the project via labview, then we could select the color on a camera feed in the vision processing VI. In order to not face the same problem this year, we have considered trying to select the color on the dashboard, and have that sent to the robot. This is though, inefficient and requires us to add another layer of communication to the robot. I would like to know how other teams are coping with this and if anyone has a better way of doing this. The Vision processing Vi used is attached.
Attached Files
File Type: vi Vision Processing.vi (22.1 KB, 25 views)

Last edited by sasha831 : 07-01-2013 at 01:19. Reason: Added Attachment
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2013, 06:16
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Vision Proccessing Fine Points

You better go with the monochrome option of the image processing rather than color for better "compatibility". We used Instensity last year, but there seem to be a few better options in this year's code.

Also, when you use the monochrome option, it's very easy to implement the lower value limit and upper value limit slides into your custom dashboard (you can do that with the color too, but I pity the poor driver who would dare to mark a spot on the camera image's frame mid-game).

Also, use a LED ring around you camera's lens! I can't stress it enough.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2013, 07:38
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,752
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 Proccessing Fine Points

Once you decide to set any value on the dashboard, the extra layer of communication comes up. It is independent of color or monochrome choice.

Fortunately, the SmartDashboard and Network Tables provides that extra layer.

Processing monochrome means you need to communicate a minimum of one number to the robot, and color means you likely want to communicate about four.

Please look at the rectangle processing example for 2013 and investigate how you would perform calibration. Ask questions, and myself and others will be happy to help.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 07-01-2013, 23:48
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Vision Proccessing Fine Points

I would definitely second the idea of putting an LED ring on your camera - it at least doubles the effectiveness of the tracking. In addition, all teams should be allowed time to calibrate their cameras at regional events. Did you not have time, or were you not allowed?
Reply With Quote
  #5   Spotlight this post!  
Unread 08-01-2013, 00:12
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Vision Proccessing Fine Points

We did all the vision processing inside the dashboard program last year, so adjusting the color settings from the dashboard was quite easy! Basically, the robot sent the camera image to the driver station, and the driver station sent rectangle coordinates back to the robot. All the image processing happened in between.

And yes - you really really need a ring light. We found that green is a good option, since it's not a hue that you usually see elsewhere on the field.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-01-2013, 03:42
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Vision Proccessing Fine Points

Quote:
Originally Posted by bvisness View Post
We did all the vision processing inside the dashboard program last year, so adjusting the color settings from the dashboard was quite easy! Basically, the robot sent the camera image to the driver station, and the driver station sent rectangle coordinates back to the robot. All the image processing happened in between.

And yes - you really really need a ring light. We found that green is a good option, since it's not a hue that you usually see elsewhere on the field.
We did that too and honestly it tends to be our favorite way to go with vision processing so long as we don't have a coprocessor. Vision processing is eating the cRIO alive, and considering the default robot/Dashboard code already sends like 2 or 3 int/bool values from the SmartDashboard to the robot, sending the X/Y relative coordinates of the target, the distance from the target in ft and whether or not the target is in the center of the frame in bool shouldn't be such a problem as far as bandwidth is concerned
Reply With Quote
  #7   Spotlight this post!  
Unread 08-01-2013, 08:15
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,752
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 Proccessing Fine Points

You should be able to adjust the framerate and the image size to avoid overtaxing the CPU. Better yet, perhaps you should only process images when you need the results.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 08-01-2013, 19:38
Tangert's Avatar
Tangert Tangert is offline
Registered User
FRC #4467 (Titanium Titans)
Team Role: Coach
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Pennsylvania
Posts: 14
Tangert is an unknown quantity at this point
Re: Vision Proccessing Fine Points

The Rookie Kits did not have a camera in them this year, so the rookie teas that missed out on the few axis cameras available through First Choice will need to purchase their own cameras. Even though we are rookies we where hoping to use a vision targeting system to help alleviate some of the pressure on the driver.

Does anyone have any recommendations for a goof Vision Camera system. and LED ring?
Reply With Quote
  #9   Spotlight this post!  
Unread 08-01-2013, 20:00
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,752
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 Proccessing Fine Points

I wrote up my suggestion here.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2013, 23:52
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Re: Vision Proccessing Fine Points

Thank you for all the responses.

We did indeed acquire 3 different light rings: White, Red and Green. Of these three we discovered that green worked best and white was the worst. We are indeed looking at monochrome. We tried having the vision processing happen in the dashboard, but this slowed down the camera frame rates from 20 frames a second to about 7.

Tangart, if you read the vision processing white paper there will be a link to a online shop which sells the led rings at a reasonable price.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi