Go to Post I do this stuff because...well first inspired me to become me. I now understand who i am better and what i want to do. - Marygrace [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 16-02-2014, 19:13
rebelalliancep rebelalliancep is offline
Registered User
FRC #4624
 
Join Date: Feb 2014
Location: Owatonna
Posts: 1
rebelalliancep is an unknown quantity at this point
Hot Goal Detection with Red Light

I was wondering what ranges need to be used for the thresholdHSV command used in autonomous. We are currently using a red LED surrounding our camera. I noticed that there was a way to get the range using a the NI Vision Assistant, but our copy of it has already expired. Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2014, 19:50
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Hot Goal Detection with Red Light

We used a blue light, and an RGB threshold. With the exposure cranked way down on our axis camera, we had no issues detecting hot at week zero.

HSV is great for complex vision processing, but is really unnecessary if you are using the reflective tap and an LED ring light. I would expect that your G and B values would be very low.

For the blue light we had the following rgb values:

int redLow = 0;
int redHigh = 10;
int greenLow = 0;
int greenHigh = 10;
int blueLow = 50;
int blueHigh = 110;

We didn't need to do any calibrations at week zero.

You should be able to load your image into any photo editing tool and measure the rgb values. Gimp provides both RGB and HSV. I just find RGB more intuitive.
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2014, 20:44
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,748
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: Hot Goal Detection with Red Light

If the ranges of numbers are small, RGB is fine. HSV or HSL or HSI really come in handy when you are looking for a larger range. RGB can only describe rectangles. HS? can describe doughnuts, circles, triangles, and remain true to your intended color.

You should be able to install the newer Vision Assistant from the DVD.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2014, 22:07
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Hot Goal Detection with Red Light

One of the students on our team last year, or the year prior came up with a pretty handy solution.

Open the live feed for the camera in the web browser, aim it at a target have the ring light turned on.

Then use an application like Just Color Picker. No installer just an exe. It will run on top of the browser which has the video feed in it. Just place your mouse cursor over the live image and record the min/max values for the RGB values that you see in your image. You may need to widen up the ranges to support different lighting conditions.

Your camera should be calibrated prior to running through this sequence.
__________________
http://team2168.org
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2014, 16:21
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,748
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: Hot Goal Detection with Red Light

The default dashboard logs one image every second to the logged in user's home directory/My Documents/LabVIEW Data. The images are named 00.jpg to 59.jpg.

These images can be loaded into any package you like, including Vision Assistant, and analyzed to review color, focus, positioning, lighting, shake, cables and other mechanisms obscuring the image, etc.

Greg McKaskle
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 09:33.

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