I just had a little bit of fun with OpenCV's python interface and an
IPython notebook. I haven't posted much this month, so why not share? It seems like an excellent way to
create tutorials. This notebook shows working through two of Abid
Rahman's OpenCV blog posts on contours: Contours
- 1: Getting Started and Contours
- 2: Brotherhood. Be warned... I have never used OpenCV before
today and I'm working hard on making myself use NumPy array slicing.
First, download the notebook, uncompress it and then start ipython like this in the same directory:
Also available on nbviewer.ipython.org as nbviewer.ipython.org/4694308/, which I created from https://gist.github.com/4694343. Sadly, I it doesn't let you say that the contents are JSON when you give a filename of opencv-learning.ipynb.
I wasn't able to quickly make a PDF that looked right, so I'll post a couple screen shots.
First, download the notebook, uncompress it and then start ipython like this in the same directory:
ipython notebook --pylab=inlineopencv-learning.ipynb.bz2
Also available on nbviewer.ipython.org as nbviewer.ipython.org/4694308/, which I created from https://gist.github.com/4694343. Sadly, I it doesn't let you say that the contents are JSON when you give a filename of opencv-learning.ipynb.
I wasn't able to quickly make a PDF that looked right, so I'll post a couple screen shots.


