Go to Post I don't actually have any hex shaft stock in my house (I live in an unusual household). - ollien [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-21-2013, 12:51 PM
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Java equivalent of NI demo vision project

We did vision for the first time last year, am looking at moving to Java this year.

One thing that was very helpful last year was an NI provided sample on the PC where you access the camera and manipulate the parameters for the recognition software via sliders in real time, and get a real time view of the scene with the recognized particles highlighted and numeric information overlaid. Made it very easy for the students to see what the various parameters actually do.

Looking at writing SmartDashBoard/OpenCV based detection, so I'd like to have something similar to make it easy for the students to visualize what the various pieces of Java code do. I'm looking at Team 341's 2012 code, and it can optionally display intermediate results, but the adjustable parameters are not there.

Has anyone already seen/done this, or am I going to have to roll my own up? The interactive aspect is what's missing.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-21-2013, 10:26 PM
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Java equivalent of NI demo vision project

It's quite doable using SmartDashboard Properties. My team's 2013 vision system used this, and it made calibrating thresholds wonderfully easy. I'll be playing with our usage of these properties during this preseason to see if I can make the system nicer and more flexible, but the current version shows the basic concepts of it.

One thing you might notice is the obnoxiously large propertyChanged() method, and all the variables storing the values from each of the properties. This was a hack I made to avoid using the Property.getValue() method, which I had blamed for some previous performance problems. This hack got a bit out of hand however, and I'm not totally sure whether it had any positive effects. A big part of making this "nicer" is figuring out how to eliminate that obnoxiousness without causing any performance problems, which may be as simple as using getValue().
__________________
I code stuff.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-22-2013, 06:50 PM
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Re: Java equivalent of NI demo vision project

Hey Joe i was wondering if its possible for you to comment some of your code? That would be great instead of trying to guess what certain things are.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 08-23-2013, 09:25 AM
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Java equivalent of NI demo vision project

Quote:
Originally Posted by tuXguy15 View Post
Hey Joe i was wondering if its possible for you to comment some of your code? That would be great instead of trying to guess what certain things are.
I'm working on that. I apologize that it's a mess; I focused on making it work, not on making the code easily readable. I'll be refactoring it significantly during this preseason.
__________________
I code stuff.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-23-2013, 02:52 PM
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Re: Java equivalent of NI demo vision project

Thanks so much
__________________
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 07:45 AM.

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