Quote:
Originally Posted by charr
I'm trying to coax my daughter's team in the direction of OpenCV and wondered if you could share any more pointers or code samples.
Thanks,
Chris
|
Let me prefix this post by stating that I've only been working with OpenCV for about a month, and am by no means an expert. This will be my team's first year using it. Nevertheless, here are some of the resources I've been using to learn OpenCV:
- The OpenCV
documentation and
tutorials are well written and a great reference. The first class you will want to learn about is the Mat class (short for Matrix), which is what images are stored as. Then look into the Core, Imgproc, and Highgui modules.
- If you use the Java bindings of OpenCV, then you will want to refer to the
Javadocs
-
This thread contains links to many valuable resources regarding OpenCV and vision processing.
- The ScreenSteps Live documentation has a
section that explains the algorithm that the sample vision code uses. Although it uses NI Vision as opposed to OpenCV, many of the principles still apply.
-
DaisyCV, Team 341's 2012 vision code, is an excellent example of an FRC vision system built with OpenCV. Note that it is a SmartDashboard extension and uses WPIJavaCV, which differs a bit from modern OpenCV.
We'll likely be posting our code after the end of the season on
GitHub (shameless self plug

), but if you'd like to see a sample of the code I have now to help you get started, send me a PM and I'll see what I can do.