Go to Post Deodorant cannot be stressed enough. To quote a teammate "body odor is a body don't-or." - C. De Vries [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 11-01-2015, 13:08
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Vision Tracking Grey Totes

Hey everybody. I posted a few days ago in the general programming section about the 2015 Vision Tracking example. I have yet to get any response, but I have managed to learn a little since then, so I thought I'd sort of restate my question(s).

My goal is to be able to track a grey tote. I'd like to track from the short side (not that that makes a huge difference, as the grey totes don't have tape on the sides). I've looked at the 2015 Vision Example, which includes a VI for shape and color processing. However, I haven't had success with picking up a grey tote.

While I was looking into this problem, I checked out NI Vision Assistant, but I can't seem to find a way to consistently lock onto a tote. I'd like to use the Vision data for centering, so I can't just match the color, which wouldn't consistently hit the same point on a grey tote.

So I suppose I have two questions.

1) How can I get the example to register the grey tote?

and

2) If I can't get the example to run, how can I track a grey tote for centering?

Thanks,

Benjamin Shields
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2015, 21:39
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 Tracking Grey Totes

I think that you will likely be able to set the S and V values of the target color so that it is pretty good at tracking a gray tote. I'll don't have many images of the gray tote, so I'm not sure what will work for you.

For the images included in the example, Image 18, you can set the Hue to be a wide range, or a bluish range. Set the Saturation to go 0 - 50 and the values to go 0 - 100. That gives a reasonable, but potentially noise mask, but the other metrics tend to clean it up in the images I have.

Feel free to post an image.

Also, while it isn't idea for distant totes, the shape based example intentionally uses high contrast patterns printed on the end of the tote. You can train it for different patterns and adjust the search criteria to get very good tracking once you are somewhat close to the tote.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2015, 22:00
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Vision Tracking Grey Totes

Hmm. Okay. I'll try that tomorrow and report back.

Thank you!
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2015, 23:06
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Vision Tracking Grey Totes

We don't have anything working yet, but our physical pickup is similar to the Greenhorn's Ri3d, but with a "rake" gripper that works like a contour gauge, and a passive "foot". This is optimized for long-side pickup and a bottom-stack, so we're going to try tracking the long side first. We took a few stills with the KOP camera, and using the edge detection algorithms in the latest version of imagemagick to identify those stacking tabs and the corrugations certainly seems promising. We have figured out that we want to get the camera in the 30fps mode, which cuts the screen resolution in half. Even at 640 pixels, though, you can still have 1mm resolution with the whole tote in the field of view.

If we do get this working well enough, we will go for a tote-stack auto routine - drive in rough with the vision targets, line up close with the edge detector, lift, and back up a few feet. Repeat twice, then dash to the auto zone and deliver. We have also purchased some decent range finders (the cheap ultrasonics have a 1" resolution) to get close enough to grab by the lip.

We're also playing with tricks like casting light from different directions, to cast shadows onto the tote.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2015, 08:03
TylerStaudigel's Avatar
TylerStaudigel TylerStaudigel is offline
Registered User
FRC #0144 (R.O.C.K)
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2014
Location: United States
Posts: 39
TylerStaudigel is an unknown quantity at this point
Re: Vision Tracking Grey Totes

How do you get the default vision codes to work. When we use the default just color code the robot cannot obtain accurate enough values to track the tote, but when we try to use the color and shape vi it can do an excellent job at identifying the tote, but cannot track it relative to center. Finally when we try to use the targets it tracks like ten objects within it's field of view. Anyone got any advice?
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2015, 09:01
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 Tracking Grey Totes

Quote:
How do you get the default vision codes to work
Have you followed the tutorial? If you are using your camera with your lighting, it may be necessary to calibrate the color ranges. This is good practice since you will run into this at an event/demo. It is really pretty easy once you understand what H, S, and V mean. Once the mask looks good, the rest is basic trig and math.

Feel free to ask more detailed questions, post images showing the state of failure, and I can give more detailed assistance.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2015, 08:08
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Vision Tracking Grey Totes

As the totes are grey, it may help to either convert the image to greyscale, so the changes within the tote are relatively exaggerated, OR to calculate color saturation, and know that anything with a lot of saturation is NOT the tote.
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 20:10.

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