Go to Post "Hurry, we broke the drivetrain again" - Lil' Lavery [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 13-01-2014, 22:16
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
1706 Computer Vision Source Code

As someone who has had an uphill battle in the dark with opencv, I figured I should open source some simple, instructional, programs I have written in the past 2 years. I hope this helps.

https://cmastudios.me/owncloud/public.php?service=files&t=a4410ac2a928edef612274f 6a3486745

I do apologize but I will not be releasing any previous or current competition code largely due to the satisfaction you get when you figure something out and it works. People would lose that if I just gave them a working code that can easily be adjusted between the years to track whatever needs to be tracked.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #2   Spotlight this post!  
Unread 13-01-2014, 22:35
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: 1706 Computer Vision Source Code

Thanks for posting your examples. Do you have permission to redistribute the ebooks at that site?
  #3   Spotlight this post!  
Unread 13-01-2014, 22:36
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Computer Vision Source Code

They were all opensourced, so I assume yes....better safe than sorry, though. Let me check. The Paul dawkins one yes, the opencv ones yes (obviously), the academic paper = yes, all the algorithm books checked out, and the other paper is my sad excuse for an academic paper about the 2012 vision program.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."

Last edited by faust1706 : 13-01-2014 at 22:39.
  #4   Spotlight this post!  
Unread 14-01-2014, 17:58
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 1706 Computer Vision Source Code

You are awesome. By the way, is that your website? I love the MineCraft world on there .
  #5   Spotlight this post!  
Unread 15-01-2014, 12:09
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: 1706 Computer Vision Source Code

Quote:
Originally Posted by faust1706 View Post
I do apologize but I will not be releasing any previous or current competition code largely due to the satisfaction you get when you figure something out and it works. People would lose that if I just gave them a working code that can easily be adjusted between the years to track whatever needs to be tracked.
I feel a large part of open sourcing software is so that other people can build on it and do even greater things with it than you did. Reinventing the wheel over and over again (in parallel, no less) seems like a waste of all of our times.

I'm glad that the developers of OpenCV don't have that view.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #6   Spotlight this post!  
Unread 15-01-2014, 18:13
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Computer Vision Source Code

Quote:
Originally Posted by virtuald View Post
I feel a large part of open sourcing software is so that other people can build on it and do even greater things with it than you did. Reinventing the wheel over and over again (in parallel, no less) seems like a waste of all of our times.

I'm glad that the developers of OpenCV don't have that view.
I agree with that. I am very thankful that the guys contributing to openCV put everything online.

But, FIRST is about learning. If I were to outsource a program of tracking the reflective tape now, a lot of people would take it, put it on a single board computer and run it without really understanding what it does. It's the same principle as the "learning python the hard way" website. It prevents you from copying and pasting. If you write it yourself, you're more likely to remember it.

I do, however, help people with individual problems and describe the technique I used this year and the functions I called. I will be putting more advanced program on our team website eventually, and it will include a program of getting distance to a target.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #7   Spotlight this post!  
Unread 15-01-2014, 18:38
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: 1706 Computer Vision Source Code

Quote:
Originally Posted by faust1706 View Post
But, FIRST is about learning. If I were to outsource a program of tracking the reflective tape now,
I agree, and I would not advocate someone releasing their solution to this years challenge. It's your work, I think you should benefit from it for that year's competition. However, I release our team's previous year's competition code each year so that others can build upon it.

Quote:
a lot of people would take it, put it on a single board computer and run it without really understanding what it does. It's the same principle as the "learning python the hard way" website. It prevents you from copying and pasting. If you write it yourself, you're more likely to remember it.
I disagree with this point of view. While you're right that *some* people may just run it without understanding what's happening -- that's their loss, and they aren't going to get very far in life if that's all they do. However, there are some people who will benefit from a fully worked out example to build off of, and it will enhance their understanding of the problem space.

You shouldn't try to decide for others what they're going to do with your code. You can't stop some people from using the code without gaining understanding, but if there's only a few who benefit from the code and get deeper understanding/interest in the problem space, I would call that a win.

A good example of this is our image processing code / dashboard from last year. Team 341 released their image processing code for 2012 for others to use. Having the fully worked out example to play with was a good starting point, and we were able to translate it into python, and take the ideas and expand them into something even more awesome than the original code (IMHO).
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #8   Spotlight this post!  
Unread 15-01-2014, 21:24
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Computer Vision Source Code

I see where you're coming from. I'll probably post the last 2 years programs sometime in the near future now thanks to you. A reason I didn't for the 2012 one was because it has very high level math in it that is not easily understood. The other one is just basic trig but fails when the floor isn't flat, but that wasn't a problem at competitions.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #9   Spotlight this post!  
Unread 15-01-2014, 21:57
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: 1706 Computer Vision Source Code

Thank you very much for the resources. I have to say I agree completely with your sentiments. While FIRST is all about "standing atop the shoulders of giants" you shouldn't be able to just copy someones code. There is an immense satisfaction when you have a mid to high level complexity of a program and you understand every in and out of it, and that simply wouldn't happen if you didn't work at it yourself.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
  #10   Spotlight this post!  
Unread 16-01-2014, 18:46
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Computer Vision Source Code

I have some more programs that I am willing to share, but I just cannot figure out github or firstforge. It is in a dropbox, so if you are interested, just send me a pm with your email and I'll add you to the share list.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #11   Spotlight this post!  
Unread 16-01-2014, 19:19
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 1706 Computer Vision Source Code

Quote:
Originally Posted by faust1706 View Post
I have some more programs that I am willing to share, but I just cannot figure out github or firstforge. It is in a dropbox, so if you are interested, just send me a pm with your email and I'll add you to the share list.
I also wonder how to use Git! . I got Microsoft Visual Studio Online, which gives unlimited private repositories, for even commercial use, for teams of 5. I don't know how to use it
  #12   Spotlight this post!  
Unread 16-01-2014, 20:20
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 102
sparkytwd will become famous soon enough
Re: 1706 Computer Vision Source Code

Team 3574 shares it's code on github during the season: https://github.com/Team3574
  #13   Spotlight this post!  
Unread 16-01-2014, 21:35
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: 1706 Computer Vision Source Code

Github has a lot of useful documentation. You can start here:

https://help.github.com/articles/set-up-git
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
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:24.

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