Go to Post Ah, this sounds like a sitcom whose pilot I should write and send to NBC - "Life With Lavery". There's a lot of eating, several practical jokes, and lots of bad hair. - Amanda Morrison [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 21-02-2013, 19:41
pickle27 pickle27 is offline
Registered User
FRC #2809 (KBotics)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Canada
Posts: 7
pickle27 is on a distinguished road
Cool C++/OpenCV Vision System

Hey I wanted to share our team's 2013 vision system, I think its pretty cool and unique.

Full source code here:
https://github.com/KBotics/2809_vision2013

and an explanation on my website:
http://kevinhughes.ca/2013/02/21/frc...vision-system/

Good Luck in your 2013 season!
  #2   Spotlight this post!  
Unread 24-02-2013, 21:21
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Re: Cool C++/OpenCV Vision System

Whoa, neural networks? You must have had to spend a while training them to get anything useful.
  #3   Spotlight this post!  
Unread 24-02-2013, 21:30
jacob9706 jacob9706 is offline
Registered User
AKA: Jacob Ebey
FRC #3574 (High Tekerz)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Seattle
Posts: 101
jacob9706 is on a distinguished road
Re: Cool C++/OpenCV Vision System

Wow very nice. Training can be a pain in the butt so we tried to avoid it this year. Why did you decide to go with cpp instead of Python or another scripting language?

Last year we did cpp but decided for the ease we would switch to python, and let me tell you, it is a whole new world.
__________________
/*
* Team 3574 Alumni
*
* 2011 - Highest Seeded Rookie
* 2011 - Rookie All-Star
* 2012 - Engineering Inspiration
* 2012 - Olympic Deans List Winner
* 2013 - Engineering Inspiration
* 2013 - Judges Award (For unique circular robot and the way the team works together.)
*/
  #4   Spotlight this post!  
Unread 25-02-2013, 10:54
pickle27 pickle27 is offline
Registered User
FRC #2809 (KBotics)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Canada
Posts: 7
pickle27 is on a distinguished road
Re: Cool C++/OpenCV Vision System

Quote:
Originally Posted by jacob9706 View Post
Wow very nice. Training can be a pain in the butt so we tried to avoid it this year. Why did you decide to go with cpp instead of Python or another scripting language?

Last year we did cpp but decided for the ease we would switch to python, and let me tell you, it is a whole new world.
The training process is actually pretty straight forward and quick (but then again I work with machine learning quite a bit).

I actually wanted to go with python originally but I got held up on the NetworkTables so I went this route using java to call cpp. The actual overall framework (called cppVision on my site) is pretty much obsolete now because OpenCV is releasing up to date official java bindings. - Also our students were familiar with c++ and there isn't a whole lot of difference between using OpenCV on python and c++ in my opinion.

I'd love to see a lot more OpenCV in FRC so hopefully next season we have a few more options for using the NetworkTables.

Last edited by pickle27 : 25-02-2013 at 11:54.
  #5   Spotlight this post!  
Unread 25-02-2013, 11:04
jacob9706 jacob9706 is offline
Registered User
AKA: Jacob Ebey
FRC #3574 (High Tekerz)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Seattle
Posts: 101
jacob9706 is on a distinguished road
Re: Cool C++/OpenCV Vision System

Quote:
Originally Posted by pickle27 View Post
The training process is actually pretty straight forward and quick (but then again I work with machine learning quite a bit).

I actually wanted to go with python originally but I got held up on the NetworkTables so I went this route using java to call cpp. The actual overall framework (called cppVision on my site) is pretty much obsolete now because OpenCV is releasing up to date official java bindings. - Also our students were familiar with c++ and there isn't a whole lot of difference between using OpenCV on python and c++ in my opinion.

I'd love to see a lot more OpenCV in FRC so hopefully next season we have a few more options for using the NetworkTables.
there are two threads on here about python netwlrt tables. One is an opencv thread started by myself with a link to my teams github which contains our implementation of the network tables according to FIRST'S protocol. the second thread has the link to just the network tables class.
__________________
/*
* Team 3574 Alumni
*
* 2011 - Highest Seeded Rookie
* 2011 - Rookie All-Star
* 2012 - Engineering Inspiration
* 2012 - Olympic Deans List Winner
* 2013 - Engineering Inspiration
* 2013 - Judges Award (For unique circular robot and the way the team works together.)
*/
  #6   Spotlight this post!  
Unread 25-02-2013, 11:06
pickle27 pickle27 is offline
Registered User
FRC #2809 (KBotics)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Canada
Posts: 7
pickle27 is on a distinguished road
Re: Cool C++/OpenCV Vision System

Yeah! I briefly read through that thread last week but we were already finished this years vision system, nice work!
  #7   Spotlight this post!  
Unread 25-02-2013, 11:13
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Cool C++/OpenCV Vision System

Is there any way to use this with a Java robot? Containment within a SmartDashboard plugin maybe?
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
  #8   Spotlight this post!  
Unread 25-02-2013, 11:53
pickle27 pickle27 is offline
Registered User
FRC #2809 (KBotics)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Canada
Posts: 7
pickle27 is on a distinguished road
Re: Cool C++/OpenCV Vision System

Quote:
Originally Posted by F22Rapture View Post
Is there any way to use this with a Java robot? Containment within a SmartDashboard plugin maybe?
Actually the only way to run this at the moment is using a smartdashboard plugin.

Here is the one I wrote:
http://kevinhughes.ca/projects/cppvision/
https://github.com/pickle27/cppVision

My original goal was to make a stand-alone desktop program for the vision system (like what Team 3574 has done!) but I changed to use the Smartdashboard to use the FRC NetworkTables implementation.
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:26.

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