Go to Post I'm sure there aren't a bunch of rule makers sitting in a board room discussing "What rule can we change now to mess with the teams' heads?" Lets all just sit back and enjoy the regionals! - Rick [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 24-01-2014, 09:01
theonlydvr theonlydvr is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: United States
Posts: 12
theonlydvr is an unknown quantity at this point
Sending Images from Axis Camera to SmartDashboard [Answered]

Hey all,

I've recently been working with vision processing to find reflector tape and pickup the ball autonomously. I've so far been able to create a mask of what I need and now I'm moving on to the actual detection (circles and rectangles). However before I start this I would like to see the masks (edited images) on the dashboard. How can I make an image from my program (or cRIO) display on the SmartDashboard?

Thanks,

Evan

Last edited by theonlydvr : 24-01-2014 at 09:37. Reason: Answered
  #2   Spotlight this post!  
Unread 24-01-2014, 09:25
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: Sending Images from Axis Camera to SmartDashboard

SD and Network tables isn't really intended for large or complex elements. This means that sending a modified image doesn't really work out.

There are two suggestions for getting the display on the dashboard.
1. Rather than ship the mask, do the calculations of the interesting elements. Describe those by using a rectangle, circle, or lines. These can be transmitted via SD and annotated on the image.
2. Open your own TCP port or socket and send the binary mask using read and writes.

Greg McKaskle
  #3   Spotlight this post!  
Unread 24-01-2014, 09:29
theonlydvr theonlydvr is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: United States
Posts: 12
theonlydvr is an unknown quantity at this point
Re: Sending Images from Axis Camera to SmartDashboard

Thanks for the answer. I can understand how an image may be rather complex to send. Are you saying in the first option that you can layer something over the Axis image feed on the SmartDashboard like a circle and if so how?

Thanks,

Evan
  #4   Spotlight this post!  
Unread 24-01-2014, 09:33
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: Sending Images from Axis Camera to SmartDashboard

I'm not sure what capabilities for annotation are available for the SD video, but I was assuming that you could draw on top of the video feed.

For the LV dashboard, there are functions to overlay a rect, circle, line, text, or a bitmap. You can string these together to make more sophisticated annotations. This is what the example code does to help understand the aspect ratio and rectangular scores of each masked particle.

The annotations are a good way to view the data. But the core part is to communicate the more interpreted and compact version of the data -- the geometric shape rather than the mask.

Greg McKaskle
  #5   Spotlight this post!  
Unread 24-01-2014, 09:36
theonlydvr theonlydvr is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: United States
Posts: 12
theonlydvr is an unknown quantity at this point
Re: Sending Images from Axis Camera to SmartDashboard

Thanks so much. That helps a lot in the decision making for our team. We only have two programmers (myself and one that knows some Labview). Now we have good reason to create our dashboard in Labview.

Thanks,

Evan
  #6   Spotlight this post!  
Unread 25-01-2014, 13:47
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Sending Images from Axis Camera to SmartDashboard

At the moment, you can't do this, but our next major milestone (currently working on the "videocore" branch) is exactly what you want. No ETA at the moment unfortunatly, and its more likely to appear next year. This year you can get around it by making a custom control though.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
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 02:30.

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