Go to Post Robotics is really preparing us for jobs at NASA. Look. We're past deadline, overweight, overbudget, and our project doesn't even work! - Oblarg [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 14-11-2015, 19:04
Lireal Lireal is online now
Registered User
AKA: Alex Colello
FRC #2141 (Spartonics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Concord, California
Posts: 108
Lireal has a spectacular aura aboutLireal has a spectacular aura aboutLireal has a spectacular aura about
Getting Started with Vision Processing

In previous years, my team has always struggled to simply put a robot out on the match floor, but this year we tripled in size and would like to start learning more advanced techniques, such as vision processing.

The previous threads that I have looked at seem pretty dated, and there aren't many resources on the FIRST website about how to start using vision from scratch. So, here are the questions I have:

1. What additional devices or software is needed to process images?
2. Where are good resources to learn how to do vision processing without any knowledge of it?

My team programs in Java, but we are willing to learn other languages if necessary(as long as it doesn't affect how we code the rest of the robot).

Any help that you can give is really appreciated .
  #2   Spotlight this post!  
Unread 14-11-2015, 19:11
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,282
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Getting Started with Vision Processing

Quote:
Originally Posted by Lireal View Post
In previous years, my team has always struggled to simply put a robot out on the match floor, but this year we tripled in size and would like to start learning more advanced techniques, such as vision processing.

The previous threads that I have looked at seem pretty dated, and there aren't many resources on the FIRST website about how to start using vision from scratch. So, here are the questions I have:

1. What additional devices or software is needed to process images?
2. Where are good resources to learn how to do vision processing without any knowledge of it?

My team programs in Java, but we are willing to learn other languages if necessary(as long as it doesn't affect how we code the rest of the robot).

Any help that you can give is really appreciated .
If you've never done it before then I would start with the Screensteps site that FIRST provides:
http://wpilib.screenstepslive.com/s/...ifecam-hd-3000

I can't speak to Java but the LabVIEW vision examples are great. I suspect the Java examples are just as valuable.

Start with basic image filtering and shape detection. Once you've got that down, move on to more advanced processing with OpenCV. Some teams last year had luck running OpenCV on the RoboRIO. We went for the secondary processor setup.

If you're super cutting edge then the Jetson TX1 and a stereoscopic camera with neural network processing might be the way to go.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
  #3   Spotlight this post!  
Unread 14-11-2015, 19:37
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 740
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: Getting Started with Vision Processing

Quote:
In previous years, my team has always struggled to simply put a robot out on the match floor
If this is the case, I would strongly recommend not pursuing vision processing. Advanced techniques like this are things that already strong teams pursue to get even better; say a jump from the 80th percentile to the 90th percentile. If your team has barely fielded a robot in the past, and you're looking to make your team more competitive, I would recommend some of the following:
  • Get some licenses of Solidworks or Inventor (both of which are free to FRC teams) and start learning how to CAD. Look at CAD of other teams' robots, there's tons of examples in CD-Media and http://frcdesigns.com/
  • Explore writing basic PID loops and learn how to use them to control your robots more accurately, both in teleop and autonomous
  • Go through all the products on AndyMark and VEXPro's websites. Start thinking about how to use more off-the-shelf products on your robtos; they're a great way to maintain your robot quality while getting it done faster.
  • Spend the next month trying to find a practice area. Without a doubt, the one thing you can do to make your team perform better on the field is getting as much drive practice in as possible. If you can't build a duplicate robot to practice during the season, make your drivetrain first and throw some weight on it and have your drivers start messing around with it. Aim to finish your robot earlier (Week 5) and spend the last week and a half of build practicing and tuning a basic autonomous mode.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
  #4   Spotlight this post!  
Unread 14-11-2015, 20:16
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,751
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: Getting Started with Vision Processing

If your team is large enough to take care of the basics, then vision can be a good sub team project. The Screensteps pages seemed to only discuss setting up the cameras of various types. Good stuff, but not really vision processing. If you are going to spend time on this, I'd search for FRC vision white papers. There are ones from teams and for various games. This one https://decibel.ni.com/content/docs/DOC-20173 is the one I'd suggest for a basic paper that is useful for many FRC target types.

Greg McKaskle
  #5   Spotlight this post!  
Unread 14-11-2015, 23:39
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 80
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Getting Started with Vision Processing

There's a program being worked on by a few WPI seniors for their capstone project to make it much easier to work on computer vision problems for FRC. They released the first alpha yesterday here
  #6   Spotlight this post!  
Unread 14-11-2015, 23:49
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Getting Started with Vision Processing

I'm also not sure that you will find vision processing useful yet. If someone had given you a sensor last year that told you exactly where every tote on the field was relative to your robot how useful would it have been to you? If you're just emerging from the stage where it was a struggle to get a robot on the floor I suspect the answer would be "not very".

However, if you do have a bunch more people it might be possible to develop both your computer vision skills and the capabilities needed to take advantage of them at the same time. I'd have some people study controls and others study search algorithms. That way when you find out you want to go someplace 5 feet ahead and 3 to the right you can both plan a path to get there and a way to carry it out.
  #7   Spotlight this post!  
Unread 15-11-2015, 08:38
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 430
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Getting Started with Vision Processing

Our team put together a pretty comprehensive guide, using the beagle bone black as a coprocessor.

Instructions and example code is available here: https://github.com/Team2168/2168_Vis...ster/README.md
__________________
http://team2168.org
  #8   Spotlight this post!  
Unread 15-11-2015, 08:46
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,282
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Getting Started with Vision Processing

Quote:
Originally Posted by otherguy View Post
Our team put together a pretty comprehensive guide, using the beagle bone black as a coprocessor.

Instructions and example code is available here: https://github.com/Team2168/2168_Vis...ster/README.md
Very cool! Thanks for posting this.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
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 03:00.

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