OpenCV Python binding

604 views
Skip to first unread message

Sebastian Haase

unread,
Mar 28, 2012, 7:24:04 AM3/28/12
to pythonvision
Hi,
I have been trying to get into OpenCV. Trying to ask some question
about its Python binding on the Yahoo OpenCV mailing list.
Without much success!

Is anyone here using OpenCV ? Any idea who might be currently
working on the OpenCV python binding ?

Thanks,
Sebastian Haase

Sprindzuk Matvey

unread,
Mar 28, 2012, 11:17:25 AM3/28/12
to python...@googlegroups.com

Anthony Oliver

unread,
Mar 28, 2012, 2:18:17 PM3/28/12
to python...@googlegroups.com
I'm one of the core developers for a cross platform vision library called SimpleCV (http://www.simplecv.org).  It wrappers OpenCV amongst others.  If you are new to computer vision it is probably worth a look as we have a bunch of examples: http://examples.simplecv.org


---------------------------------
Anthony Oliver

Niall Macquaide

unread,
Mar 28, 2012, 2:22:59 PM3/28/12
to python...@googlegroups.com
Hi,
The willow garage distro works for me on windows.
Niall.
--
Niall

Sebastian Haase

unread,
Mar 29, 2012, 4:20:57 AM3/29/12
to python...@googlegroups.com
Thanks for all the replies !
The cookbook entry that was mentioned is using the (old) cv module -
not the new cv2 module.
IOW, even though the page locks really nice and inviting (sphinx) it
should probably mostly be considered obsolete !

I have done lots of image processing using numpy and scipy. As I
understand, the new cv2 is very(!) compatible with ndarray.
(while the older cv module is not. I.e. you always have to explicitly
convert back and forth using things like "numpy.asarray(mat)" and
"mat = cv.fromarray(a)")

I was then disconcerned that using cv2 still required to also use cv
(e.g. as cv2.cv) to access many non covered functions and many
constants.

Anthony, I saw simpleCV. It looks really nice ! But it does not (yet)
cover many of the algorithms I might want to use/try from openCV. I
was wondering, how simpleCV was interfacing with openCV - are you guys
feeding back some API improvements/cleanups to the openCV python
binding ... ?

Thanks,
Sebastian

Sebastian Haase

unread,
Mar 29, 2012, 4:47:12 AM3/29/12
to python...@googlegroups.com
I found the word I was trying to using was "disconcerted" (not
"disconcerned")...
And an up-to-date sphinx documentation appears to be at
http://opencv.itseez.com/index.html

But how is itseez related to willowgarage - why is the documentation
at itseez not at willowgarage ?
http://itseez.com/index.php?page=profile
"""Itseez is a team of talented engineers focused on computer vision.
We are best known as the authors of the Open Source Computer Vision
Library ...."""

Furthermore http://itseez.com/index.php?page=mt lists "Vadim
Pisarevsky, Principal Engineer"
who - if I'm not mistaken - started the cv2 module ....

- Sebastian

Anthony Oliver

unread,
Mar 29, 2012, 12:34:59 PM3/29/12
to python...@googlegroups.com
To be honest, that's how the whole SimpleCV project started. We got sick of their not being documentation, and were using other tools like ipython, etc, that we wanted integrated.  We have also written our own blob detection library because we got sick of compile errors and having to use cvblob as a dependency.

We have a long way to go, and for seasoned vision programmers SimpleCV is probably not the route you want to go, if you are beginner it's definitely easier to get up and running.  I wrote an article about the differences recently and I welcome any feedback:


I think people get the misconception we are trying to replace opencv, and by no means is the case. We label ourselves as a framework not as a library.  Think of us as a jquery or rails (ruby on rails) for vision. :)

---------------------------------
Anthony Oliver
Chief Technology Officer
---------------------------------

abidrahmank

unread,
May 10, 2012, 12:08:10 AM5/10/12
to pythonvision


Hi,

I am using OpenCV-Python for last 1.5 years. There are a lot of
tutorials on internet on how to setup OpenCV-Python.

Anyway, this is how I setup OpenCV-Python in Windows :
http://opencvpython.blogspot.com/2012/05/install-opencv-in-windows-for-python.html

In linux, it is more easy, since they can be obtained from their
repos.

Regards,
ARK

Sebastian Haase

unread,
May 10, 2012, 5:22:07 AM5/10/12
to python...@googlegroups.com
Hi ARK,

the problem is not having "any" python binding to OpenCV,
but using the *new* python binding for OpenCV 2.2+ which - for
example - is supposed to ease the interaction with NumPy

Cheers,
-Sebastian Haase

klo

unread,
May 14, 2012, 9:51:15 PM5/14/12
to python...@googlegroups.com
New wiki link from opencv main page (http://code.opencv.org/projects/OpenCV/wiki/WikiStart) provides various up to date and beautiful to print PDF references.
Also same sphinx docs as in below quoted text

Maybe I'm missing something in this thread, but I hope this helps someone



On Thursday, March 29, 2012 10:47:12 AM UTC+2, sebhaase wrote:
I found the word I was trying to using was "disconcerted" (not
"disconcerned")...
And  an up-to-date  sphinx documentation appears to be at
http://opencv.itseez.com/index.html
...


abidrahmank

unread,
Jun 12, 2012, 1:50:11 PM6/12/12
to python...@googlegroups.com
Hi,

OpenCV Python bindings are really good. It has Numpy support now, so pretty fast. If you want some tutorials to get started, visit here : www.opencvpython.blogspot.com

Sebastian Haase

unread,
Jun 12, 2012, 2:01:17 PM6/12/12
to python...@googlegroups.com
great blog - thanks for posting the link.
I also think the python binding is (slowly?) getting more robust ....
(It still doesn't make sense having to write "cv2.cv.BoxPoints(rect)"
instead of "cv2.BoxPoints(rect)" !!)
Now its version 2.4.1 When I started this thread is was at 2.3

- Sebastian Haase

jeanpatri...@gmail.com

unread,
Jun 12, 2012, 3:37:15 PM6/12/12
to python...@googlegroups.com
Thanks,

Jean-patrick


Le , abidrahmank <abidr...@gmail.com> a écrit :

abid rahman

unread,
Jun 14, 2012, 11:37:19 PM6/14/12
to python...@googlegroups.com
It still doesn't make sense having to write "cv2.cv.BoxPoints(rect)" instead of "cv2.BoxPoints(rect)"

They are used to find the corners for a rotated rect. I think the developers have forgotten about this function. You can't find any documentation for this function anywhere.
Reply all
Reply to author
Forward
0 new messages