Go to Post My mom's cousin heard from her friend who heard from her brother who heard from his barber who heard from his son that his teacher told him that his father's brother's sister's former roommate heard from Frank himself. - notmattlythgoe [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2016, 17:19
Wyspar Wyspar is offline
Registered User
FRC #5132 (RoboClovers)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: żDe donde eres?
Posts: 20
Wyspar is an unknown quantity at this point
Is it possible for GRIP to find the boulder?

We have a green light from superbrightleds, but I don't think it would work well because the field is green. I tried to use grip to find the ball using the rgb value on GRIP, but that only went so far.
  #2   Spotlight this post!  
Unread 04-02-2016, 21:36
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 91
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
Re: Is it possible for GRIP to find the boulder?

You will probably need to do some more advanced image processing using opencv. You may need to use something like this
  #3   Spotlight this post!  
Unread 04-02-2016, 21:54
Turing'sEgo Turing'sEgo is offline
Registered User
no team
 
Join Date: Jan 2016
Rookie Year: 2010
Location: Boulder
Posts: 47
Turing'sEgo can only hope to improve
Re: Is it possible for GRIP to find the boulder?

The problem with doing RGB tracking of the boulder is that it is gray. In other words, you're trying to track an absence of color sort of speak. You could investigate dynamically thresholding techniques such as Otsu's method (which opencv has).
  #4   Spotlight this post!  
Unread 05-02-2016, 08:21
xjschwen xjschwen is offline
Registered User
FRC #3668
 
Join Date: Jan 2016
Location: Michigan
Posts: 20
xjschwen is an unknown quantity at this point
Re: Is it possible for GRIP to find the boulder?

while it is not a video feed we were able to process a boulder while it was sitting on a beige table.

It did take some work to get the middle range of RGB to isolate most of the boulder in the picture.

I am unsure what will happen once the boulder start to show some wear.

https://drive.google.com/file/d/0BxS...ew?usp=sharing
  #5   Spotlight this post!  
Unread 05-02-2016, 08:40
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: Is it possible for GRIP to find the boulder?

GRIP is based on OpenCV. I'm not sure how many functions it exposes. There are LabVIEW examples for 2014 and perhaps other years that show an approach to do this using NIVision. Generally, color alone will not be a good enough predictor. I'd hope that your code doesn't rely solely on color for targets either.

Don't forget to think about your camera mounting if you are trying to identify a ball. A camera mounted low will see lots of background that intersects with the ball. A camera mounted a bit higher and aims down will see more carpet around the ball. It will also see less shadow. Also, if a silver ball is in a corner with a shiny diamond-plate wall on one side and a reflective lexan wall on the other, you probably shouldn't expect a camera to be your best sensor option.

Greg McKaskle
  #6   Spotlight this post!  
Unread 05-02-2016, 09:13
Mr. Spiegs Mr. Spiegs is offline
Registered User
FRC #1559
 
Join Date: Feb 2016
Location: Victor, NY
Posts: 2
Mr. Spiegs is an unknown quantity at this point
Smile Re: Is it possible for GRIP to find the boulder?

After some strenuous testing, we were able to effectively get grip to find the bolder. My advice to you:

- Using the image processing given, work on try to detect blobs or contours (whichever is more beneficial in the long run) to create an outline of the bolder

- Mess around with color saturation (we used black and white) in addition to some sort of blur as a way to make a more structured object that looks more whole than the simple contours or blobs pictured in basic

- There is a custom color script that works like a color drop that's available somewhere online (I'd look for it but am kind of tied up for a while). We had some success with it, but we found a slightly more effective way following our usage.

I wish you luck with whatever trials in the future!
  #7   Spotlight this post!  
Unread 05-02-2016, 09:23
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,308
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Is it possible for GRIP to find the boulder?

Quote:
Originally Posted by Mr. Spiegs View Post
After some strenuous testing, we were able to effectively get grip to find the bolder. My advice to you:

- Using the image processing given, work on try to detect blobs or contours (whichever is more beneficial in the long run) to create an outline of the bolder

- Mess around with color saturation (we used black and white) in addition to some sort of blur as a way to make a more structured object that looks more whole than the simple contours or blobs pictured in basic

- There is a custom color script that works like a color drop that's available somewhere online (I'd look for it but am kind of tied up for a while). We had some success with it, but we found a slightly more effective way following our usage.

I wish you luck with whatever trials in the future!
What kind of accuracy are you getting from using GRIP to do boulder tracking?
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
  #8   Spotlight this post!  
Unread 05-02-2016, 09:25
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Is it possible for GRIP to find the boulder?

I'll add that if you are planning on tracking the boulder, you will really want to take advantage of the time allotted for calibration at competitions (as guaranteed in section 5.5.8 of the manual).

The lights on the field at a competition are guaranteed to be different from the lights at your school or workspace. Since the balls are not retroreflective and you aren't shining your own light at them, the calibration you do at home will likely be a little off.

The green light isn't particularly well designed for bolder tracking- it is useful for the retroreflective tape on the goals because it creates a more or less known color that you can track irrespective of the ambient lighting.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Closed Thread


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 06:31.

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