Go to Post The real reason I am coming to IRI is to get that Paul Copioli, he will be bearhugged, if its the last thing I do :p - Mike Schroeder [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 09-02-2014, 15:10
jalozinski jalozinski is offline
Registered User
FRC #4787
 
Join Date: Jan 2014
Location: Chicago
Posts: 17
jalozinski is an unknown quantity at this point
SmartDashboard dynamic images

hey hey hey. i know you can do live camera feeds with SmartDashboard, but I want to apply some filters (on green, then particles) and display those as a live camera feed. any ideas? if worst comes to worst, what would be the best way to send a signal back to the driver station to open the images repeatedly with java graphics or something ghetto like that?
  #2   Spotlight this post!  
Unread 11-02-2014, 01:49
irvingc irvingc is offline
Registered User
FRC #0948 (Newport Robotics Group)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Bellevue, WA
Posts: 31
irvingc is on a distinguished road
Re: SmartDashboard dynamic images

If you only wish to display a filtered camera image, you can extend the WPICameraExtension SmartDashboard widget and override the processImage() method to apply some filters to the raw image*; you will need to install the SmartDashboard with Vision extensions.

If you wish to display the filtered camera image side-by-side with the original image, it's a bit more difficult; you'll probably need to copy the WPICameraExtension sources into a new class and modify the paintComponent() method to draw both images to the screen (using "ghetto" Java graphics).

* To be clear--you will need to apply these filters using an image processing library such as JavaCV (WPIJavaCV provides some nice bindings for this). I don't think there's an easy way to access the NIVision libraries in a desktop environment.

Last edited by irvingc : 11-02-2014 at 01:54.
  #3   Spotlight this post!  
Unread 11-02-2014, 06:48
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,756
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: SmartDashboard dynamic images

The NI Vision libraries are provided on the desktop and they have bindings from C and form LabVIEW. If you choose to use them, the manuals are installed in the Program Files/National Instruments/Vision folder. The manual for the C bindings will contain the name CVI.

Greg McKaskle
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:49.

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