Go to Post I think Dave has been spending time on icanhascheezburger. Either that or the fumes from his rendering machines have affected the grammar control portion of his brain. - rsisk [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-01-2014, 13:52
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
Drawing Circle Over Image Feed Java

Hey all,

We're trying to draw a circle over the location of the ball on the image feed. I have begun work on a camera extension but ran into a problem when trying to get the variables needed (if a circle was found, radius length in pixels, x center, and y center). Is there a way that I can access those values from the SmartDashboard and use them in my extension?

Thanks,

Evan
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2014, 22:44
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: Drawing Circle Over Image Feed Java

(assuming SFX and extending the camera viewer class, which is actually a bad idea that you should NOT DO)
in the registered method (don't forget to call super) snag the datacor eprovider and get the observable values from it (getObservable("path/to/vars")) which will automatically fire if you add change listeners

However, that is a bad idea. You really should create a moving shape control, which ironically is the next turorial we are going to put out so hold tight for a day or two.
__________________
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
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 22:33.

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