Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91245

OpenCV with Python (cv or cv2)

Date 2015-05-26 10:24 -0300
From Markos <markos@c2o.pro.br>
Subject OpenCV with Python (cv or cv2)
Newsgroups comp.lang.python
Message-ID <mailman.55.1432648308.5151.python-list@python.org> (permalink)

Show all headers | View raw


Hi,

I want to use OpenCV with Python.

I installed version 2.4.9 
(http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/) 
in debian Squeeze running Python 2.6.6. Using the tutorial: 
http://indranilsinharoy.com/2012/11/01/installing-opencv-on-linux/

(I tried to install versions 2.4.11 and 2.4.10 (in Squeeze with python 
2.2.6) but I couldn't.)

I lost some time trying to load the module cv2:

> >> Import cv2.cv the cv
Traceback (most recent call last):
File "<stdin>", line 1, in <module >>
ImportError: No module named cv2.cv

After a while I realized I could use the cv module. (import cv)

But still I do not understand the differences between the modules cv and 
cv2.

Do you suggest any good tutorial about the differences between cv and cv2?

I will have to make many changes in python programs using cv to reuse 
the code later with cv2?

Thanks,
Markos

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

OpenCV with Python (cv or cv2) Markos <markos@c2o.pro.br> - 2015-05-26 10:24 -0300
  Re: OpenCV with Python (cv or cv2) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-26 17:46 +0200
    Re: OpenCV with Python (cv or cv2) Rustom Mody <rustompmody@gmail.com> - 2015-05-26 10:02 -0700
      Re: OpenCV with Python (cv or cv2) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-27 00:17 +0200
  Re: OpenCV with Python (cv or cv2) IronManMark20 <mr.smittye@gmail.com> - 2015-05-26 21:54 -0700

csiph-web