Go to Post At this point in build season, I'm thinking that whatever type we can get built and working is the best type, by far! - MrForbes [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 02-02-2014, 14:14
AIS Falcons's Avatar
AIS Falcons AIS Falcons is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: Israel
Posts: 14
AIS Falcons is an unknown quantity at this point
Trouble Detecting Ball in Image

Hey all,

We're trying to detect the ball in the camera feed so we can either pick it up autonomously or make it easier for the driver. We were able to find the ball in vision assistant but when we moved the code to Dashboard it was no longer working the same way. We're using an HSV threshold, a filter for small particles, a canny edge detector, and a Gaussian blur. Upon testing the code and looking at the output picture we saw that the Gaussian blur was not showing up.
Most of our code is in the attached picture, it's based off the default dashboard.

Thanks,

Team 4338

Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2014, 01:55
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,751
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: Trouble Detecting Ball in Image

Can we get more specifics? What is it doing? What would you like it to do?

Can you probe the images and other outputs and use breakpoints to see if any of the steps in particular are not working? By the way, be sure that binary images use the binary palette for viewing?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2014, 13:21
AIS Falcons's Avatar
AIS Falcons AIS Falcons is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: Israel
Posts: 14
AIS Falcons is an unknown quantity at this point
Re: Trouble Detecting Ball in Image

Our goal for this code is for it to draw a circle over the ball in the camera feed which we can use to then subsequently pick up the ball using our program. At the moment upon printing out a debug image to the dashboard screen we see that our Gaussian blur step does not do anything; the image just contains the final edge detector step. We set the image to a binary palette but nothing changed? Any help would be appreciated.

Thanks,

Team 4338
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2014, 08:03
killer_rabbit3's Avatar
killer_rabbit3 killer_rabbit3 is offline
programming rabbit
AKA: Alexander Martinez
FRC #1038 (Lakota Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: liberty township OH
Posts: 13
killer_rabbit3 is an unknown quantity at this point
Re: Trouble Detecting Ball in Image

Can you show a bit more of your dashboard code so we can see how you intergrated it into dashboard?
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2014, 19:47
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,751
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: Trouble Detecting Ball in Image

It looks like the same image is being used for input and output. If you probe different wires, you should be able to see the intermediates. If you want that step on your panel, you will need to be more careful about how you use the source and destination images. You will need to create temporary debugging images so that the source is not modified.

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:57.

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