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


Groups > comp.lang.python > #91247

Re: OpenCV with Python (cv or cv2)

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:sourceforge': 0.03; 'subject:Python': 0.05; 'python)': 0.05; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'python.': 0.11; 'url:)': 0.14; 'suggest': 0.15; 'output': 0.15; '>in': 0.16; '>thanks,': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cmake': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'headers,': 0.16; 'message- id:@fido.openend.se': 0.16; 'numpy': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'url:debian': 0.16; 'url:packages': 0.16; 'later': 0.16; 'laura': 0.18; '(in': 0.18; 'load': 0.20; '(not': 0.20; 'versions': 0.20; 'changes': 0.20; 'cc:addr:python.org': 0.21; 'trying': 0.22; 'cc:2**1': 0.22; '"",': 0.22; '2015': 0.23; 'module': 0.23; "haven't": 0.24; 'tried': 0.24; 'import': 0.24; 'header:In-Reply- To:1': 0.24; '(most': 0.24; 'install': 0.25; 'installed': 0.26; 'error': 0.27; 'module.': 0.27; 'complain': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'tutorial': 0.29; 'url:mailman': 0.31; 'code': 0.31; 'you?': 0.32; 'post': 0.32; 'probably': 0.32; 'url:python': 0.33; 'right?': 0.33; 'running': 0.34; 'needed': 0.34; 'url:listinfo': 0.35; 'could': 0.35; 'skip:> 10': 0.35; 'but': 0.36; 'being': 0.36; 'too': 0.36; 'url:org': 0.36; 'modules': 0.36; 'url:2012': 0.36; 'url:source': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'missing': 0.37; 'tue,': 0.38; 'version': 0.38; 'mean': 0.38; 'url:2': 0.39; 'subject:with': 0.40; 'subject: (': 0.40; 'some': 0.40; 'your': 0.60; 'header:Message-Id:1': 0.62; 'between': 0.65; 'differences': 0.66; 'reuse': 0.66; 'url:4': 0.70; 'url:11': 0.72; 'received:89': 0.80; '(import': 0.84; 'python-dev': 0.84; 'url:zip': 0.84; 'package:': 0.93
To Markos <markos@c2o.pro.br>
cc python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: OpenCV with Python (cv or cv2)
In-Reply-To Message from Markos <markos@c2o.pro.br> of "Tue, 26 May 2015 10:24:30 -0300." <5564740E.3090206@c2o.pro.br>
References <5564740E.3090206@c2o.pro.br>
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <15475.1432650071.1@fido>
Content-Transfer-Encoding quoted-printable
Date Tue, 26 May 2015 16:21:11 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Tue, 26 May 2015 16:21:16 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.57.1432650086.5151.python-list@python.org> (permalink)
Lines 71
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1432650086 news.xs4all.nl 2901 [2001:888:2000:d::a6]:33639
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91247

Show key headers only | View raw


In a message of Tue, 26 May 2015 10:24:30 -0300, Markos writes:
>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.)

You mean python 2.6.6, right?
and this package: https://packages.debian.org/source/squeeze/opencv
which is 2.1.0-3 is too old for you?

What do you mean that you
tried to install versions 2.4.11 and 2.4.10 but couldn't?  What
error messages did you get?

>I lost some time trying to load the module cv2:
>
>> >> Import cv2.cv the cv

s/the/as/ ?
 
>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
>-- 
>https://mail.python.org/mailman/listinfo/python-list

post the output you got from cmake

It will probably complain that it is missing some headers, so couldn't
make libcv2.so

If you haven't installed python-dev (not just python) and numpy I
guarantee it will not find needed headers; if you have but it is
still not being made we will have to look harder at what is going wrong.

If it made a libcv.so for you, did it put it in a place you can see
with your PYTHONPATH?

Laura

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


Thread

Re: OpenCV with Python (cv or cv2) Laura Creighton <lac@openend.se> - 2015-05-26 16:21 +0200

csiph-web