Go to Post Brainstorming and creativity are great, but you do actually have to build the ideas you come up with sometime. - Chris is me [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 01-03-2012, 20:10
touchdownjesus4's Avatar
touchdownjesus4 touchdownjesus4 is offline
Registered User
AKA: Tyler Vonderhaar
FRC #4028 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cincinnati, OH
Posts: 64
touchdownjesus4 is on a distinguished road
Using camera to track rectangles

I know there are a lot of threads about this, but I wanted to get the opinion of you all if this was worth my time. I'm a new java programmer this year and still getting the hang of everything, but I managed to program our entire robot and get everything up and running.

Now that I have everything critical programmed, I would like to take a shot at tracking the rectangles. Realistically, I am not going to be able to implement this into our robot, but getting a readout on the dashboard of the distance from the hoop could be helpful (this is my main goal for the tracking). If I can't get that to work, I want to at least have a basic understanding of tracking so I can better implement it next year.

Realistically, how complicated is attempting to track the squares with java, and what all is involved? I only have about a week and a half to do this, and really no way to test until I get to competition. Is it worth my time to try it, or should I just wait until the off season?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-03-2012, 19:57
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Using camera to track rectangles

It's not too hard to get some basic functionality. One warning though - at this late date you want to be very careful about adding image processing code to your robot. If not done well, it can introduce significant lag issues.

That being said...you want to start by making sure you have the latest update for the FRC libraries in your Netbeans. A new sample program was added part way into the build season. Create a new project, go to Samples, then FRC Java, and choose the "CameraTestProject". This will give you a sample program that has the key image processing routines in it.
It also includes sample images to test with and a Vision Assistant script to experiment with.
Using Vision Assistant (which should be on your Drivers Station) is hugely helpful in testing and tuning your image processing routines. Vision Assistant can also be used to acquire your own real images to test with.

Hopefully that will get you started! It's some pretty neat stuff.

Dale Van Voorst
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 09:48.

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