By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 935 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

Python OpenCV wrapper

P: n/a

What is the current status of Python OpenCV interface i.e. the opencv

\OpenCV\samples\python\ gives following ERROR:
OpenCV Python version of contours
Traceback (most recent call last):
File "\OpenCV\samples\python\", line 6, in ?
from opencv import cv
ImportError: No module named opencv

but I can't find any hints towards a opencv Python module.

OpenCV means Intel® Open Source Computer Vision Library. It is a collection
of C functions and a
few C++ classes that implement some popular Image Processing and Computer
Vision algorithms.

This is the best what I was able to find using Google, but it seems to lead
dated 2005-02-02 (the original page was not available, but Google has a
cache :/):
Before putting a lot of effort in SWIG wrapping of OpenCV ourselves, we
searched the web for already existing Python wrappers. There has been some
work on the topic, but none that satisfied our needs, since we're interested
in wrappers for the current and future OpenCV releases that provide access
to the data structure internals.:

a.. - The SWIG homepage
b.. -
SWIG Bug ???[754443] conversion of preprocessor math", one of the bugs that
make direct SWIG wrapping of OpenCV headers impossible.
c.. - Basic SWIG wrapping for
Python and OpenCV (see above). This is where we took PIL and Numeric
convertor ideas from.
d.. - An older attempt to
SWIG wrapping OpenCV for Python. Uses manually rewritten OpenCV headers that
are not portable to current OpenCV releases (Beta 3 and Beta 4 not working).
e..;name=top - Ruby
wrappres for OpenCV (see above). Sorry, this page is in Japanese .
Sep 6 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.