Go to Post How about instead of using the flag we just all wrap out robots in color saran wrap. there! problem sovled! - John Gutmann [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
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 29-01-2012, 19:20
Tub Tubs Tub Tubs is offline
Registered User
FRC #3049
 
Join Date: Feb 2010
Location: Washington
Posts: 23
Tub Tubs is an unknown quantity at this point
Axis Camera Ball Detection

I am trying to have the Axis camera detect the color orange so it can activate a motor. is this pheasable.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2012, 20:07
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: Axis Camera Ball Detection

I'll say yes, but you may want to point the camera mostly towards the ground. If they are moving, it will be difficult to drive the robot to catch them. Stationary balls should be doable though.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2012, 00:28
Tub Tubs Tub Tubs is offline
Registered User
FRC #3049
 
Join Date: Feb 2010
Location: Washington
Posts: 23
Tub Tubs is an unknown quantity at this point
Re: Axis Camera Ball Detection

Also would i use the get color .vi for this and setup color a say orange
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2012, 11:09
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: Axis Camera Ball Detection

Better: cast the image to HSL (hue, saturation, and luminance) and use the color threshold to select only the pixels that match the ball. The result is a binary image that will be zero everywhere except where the color matches your criteria. Send that image to Particle Report to the the location of the matching regions, as well as other information, like their size, that you can use to determine which objects are balls. The Vision White Paper should be helpful here, although it is mostly about finding the reflective targets above the baskets: https://decibel.ni.com/content/docs/DOC-20173

You may also find this tutorial helpful: https://decibel.ni.com/content/docs/DOC-14726. It's all about picking out specific colored objects in an image. (It uses Vision Assistant, which I don't like, but may be helpful if you are new to image processing. Once you are more experienced, you will probably find it faster to write the code directly.)
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 16:04.

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