Go to Post One of our electrical engineers would bring his kids in every so often, so they could actually see their dad during build season. - Karthik [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 29-01-2016, 22:49
Manusha4Lyfe Manusha4Lyfe is offline
Registered User
FRC #5124
 
Join Date: Jan 2015
Location: Torrance
Posts: 6
Manusha4Lyfe is an unknown quantity at this point
Wink GRIP Overlaying Contours Onto Images

I was wondering if it is possible to overlay contours detected in GRIP back over the original image feed . Thanks for your replies
  #2   Spotlight this post!  
Unread 30-01-2016, 13:59
dszlucha dszlucha is offline
Registered User
FRC #1518 (Raider Robotics)
Team Role: Mentor
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Rochester, NY
Posts: 12
dszlucha is an unknown quantity at this point
Re: GRIP Overlaying Contours Onto Images

Using the vision algorithm from the "Using GRIP for the 2016 game" tutorial I was able to do this by adding a Mask operator and hooking the output of the original or resized image to the mask input and the output of the HVL Threshold to the mask input of the mask operator. For whatever reason I couldn't set the output of Find or Filter Contours to the mask input of the Mask operator.

David
  #3   Spotlight this post!  
Unread 31-01-2016, 17:40
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: GRIP Overlaying Contours Onto Images

Assuming you're trying to look at contours on the driver station while GRIP is deployed, I'm working on a SmartDashboard plugin for GRIP that should do something similar to this.

https://github.com/WPIRoboticsProjec...SmartDashboard

It gets feature data from NetworkTables and images from GRIP's "Publish Video" operation. Unlike SmartDashboard's built-in USB Camera viewer, it should work if GRIP is running on either the roboRIO or a coprocessor, since there's an option to set the address.

It doesn't have support for rendering contours yet, but it's on the way.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #4   Spotlight this post!  
Unread 08-03-2016, 20:02
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

Thomas,
What is the status on this? We'd love to give it a try.
Thanks,
Martin Haeberli
(de-)mentor, FRC 3045 Gear Gremlins (formerly SWAT)
  #5   Spotlight this post!  
Unread 08-03-2016, 20:04
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: GRIP Overlaying Contours Onto Images

Quote:
Originally Posted by mhaeberli View Post
Thomas,
What is the status on this? We'd love to give it a try.
Thanks,
Martin Haeberli
(de-)mentor, FRC 3045 Gear Gremlins (formerly SWAT)
It now supports rendering contours.

https://github.com/WPIRoboticsProjec...board/releases
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #6   Spotlight this post!  
Unread 08-03-2016, 21:02
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

thx!
  #7   Spotlight this post!  
Unread 08-03-2016, 21:10
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

One more question - where on my Mac would I find SmartDashboard/extensions ... ?
  #8   Spotlight this post!  
Unread 08-03-2016, 21:38
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

Ok, found that - ~/SmartDashboard/extensions/ - of course!
  #9   Spotlight this post!  
Unread 08-03-2016, 23:42
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

Next question - does it / can it work with SFX - SFX 2014?
  #10   Spotlight this post!  
Unread 10-03-2016, 13:24
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: GRIP Overlaying Contours Onto Images

Quote:
Originally Posted by mhaeberli View Post
Next question - does it / can it work with SFX - SFX 2014?
Probably not, unless someone writes an SFX port of the extension
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #11   Spotlight this post!  
Unread 13-03-2016, 00:21
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

Any suggestions on debugging wuth the current SmartDashboard extension if overlays aren't showing up?

Also, is there a way to overlay, say a number (e.g., size) from GRIP, or, more generally, from NetworkTables, via GRIP's video out? That would be _very_ cool!

Thanks,

Martin Haeberli
(de-)mentor, FRC 3045 Gear Gremlins (formerly SWAT)
  #12   Spotlight this post!  
Unread 14-03-2016, 14:39
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 47
robert1356 is an unknown quantity at this point
Re: GRIP Overlaying Contours Onto Images

Quote:
Originally Posted by mhaeberli View Post
Any suggestions on debugging wuth the current SmartDashboard extension if overlays aren't showing up?
Simplest way is to add a call into the disabledPeriodic(), autonomousPeriodic() and teleopPeriodic() that calls a method for updating your GRIP information. Inside this method, you just read the parameters from the GRIP table and put them on the smart dashboard. Not as nice as an overlay, but works quite well.

I also have a boolean configured as a box (so it shows red/green) for "Is Image processing running" I do this by looking at the frame rate. If it's zero, it's not running, if it's non-zero, it is running. I always set the value to zero at the beginning of the robot code - sometimes values get stuck in the network tables - this makes sure that the tables have a zero if the image processing isn't running.
  #13   Spotlight this post!  
Unread 14-03-2016, 20:55
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: GRIP Overlaying Contours Onto Images

nice!
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 12:48.

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