Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Image display to smartDashboard. (http://www.chiefdelphi.com/forums/showthread.php?t=110712)

Hypnotoad 01-07-2013 10:34 PM

Image display to smartDashboard.
 
Hello. I am trying to get an image with the bounding box of my target onto the smartDashboard. The one problem I have run into is that I have no idea of how to get modified images over to the computer. The only way I have found to get a camera onto the smartDashboard was with view> add> camera. I was just wondering if there was any existing code to do so. I don't mind writing my own widget as it would be a good learning experience but I would NOT like to rewrite software that already exists just for the sake of learning, as 6 weeks is not much time.

AsianRookie 01-08-2013 11:53 AM

Re: Image display to smartDashboard.
 
Do you need an image from the camera to image process?

shank948 01-08-2013 12:09 PM

Re: Image display to smartDashboard.
 
Have you looked into Roborealm? This resource was distributed in the KOP this year, with a link to the download and a license key. I haven't done much work with it myself, but my understanding is that it will help you do exactly what you are trying to do.

Hypnotoad 01-08-2013 03:36 PM

Re: Image display to smartDashboard.
 
Honestly, I checked it out and using it would be more complicated and difficult, for us at least. We already have an image and all of the things we need to draw the rectangle. We just need to draw it and get it to the smartDashoard. So do I have confirmation that I will have to write my own widget.

timothyb89 01-10-2013 09:19 PM

Re: Image display to smartDashboard.
 
Quote:

Originally Posted by Hypnotoad (Post 1210809)
So do I have confirmation that I will have to write my own widget.

We did this last year, we modified the SquareTrackerExtension from the smartdashboard svn repository to have it draw polygons recognized by our vision code: source

The usual image processing additions are in processImage() (which did the bounding boxes) and then the UI additions are in paintComponent(). The additions were mainly some debug text and the ability to click and select polygons for the targeting system.

I'm a bit unfamiliar with the the 2013 vision code, but if it's at all similar this could help out a bit.

Hypnotoad 01-12-2013 10:07 AM

Re: Image display to smartDashboard.
 
I started a new thread about this but I'm going to ask it here as I have not gotten any replies on said thread. Does anyone have GOOD documentation on how network tables works? The java docs don't count. I mean like a PDF.


All times are GMT -5. The time now is 07:39 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi