Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91245 > unrolled thread
| Started by | Markos <markos@c2o.pro.br> |
|---|---|
| First post | 2015-05-26 10:24 -0300 |
| Last post | 2015-05-26 21:54 -0700 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | Markos <markos@c2o.pro.br> |
|---|---|
| Date | 2015-05-26 10:24 -0300 |
| Subject | OpenCV with Python (cv or cv2) |
| Message-ID | <mailman.55.1432648308.5151.python-list@python.org> |
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
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2015-05-26 17:46 +0200 |
| Message-ID | <1510511.19yO2C5bcj@PointedEars.de> |
| In reply to | #91245 |
Markos wrote: ^^^^^^ Please append your last name. > 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/ Do not do that. Install the distribution packages instead. > (I tried to install versions 2.4.11 and 2.4.10 (in Squeeze with python > 2.2.6) but I couldn't.) I have stretch/sid with python-opencv=2.4.9+dsfg-1.1 installed. squeeze has python-opencv=2.1.0-3+squeeze1. squeeze is *oldoldstable* now. You want to upgrade NOW. <https://packages.debian.org/search?suite=squeeze&searchon=names&keywords=python-opencv> -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-05-26 10:02 -0700 |
| Message-ID | <294d27bb-1d61-4e66-a357-61bab4056a74@googlegroups.com> |
| In reply to | #91250 |
On Tuesday, May 26, 2015 at 9:19:35 PM UTC+5:30, Thomas 'PointedEars' Lahn wrote: > Markos wrote: > ^^^^^^ > Please append your last name. No more required than an affidavit proving PointedEars is your legal name
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2015-05-27 00:17 +0200 |
| Message-ID | <29851508.nIeS5LJI7T@PointedEars.de> |
| In reply to | #91256 |
Rustom Mody wrote: > On Tuesday, May 26, 2015 at 9:19:35 PM UTC+5:30, Thomas 'PointedEars' Lahn > wrote: >> Markos wrote: >> ^^^^^^ >> Please append your last name. > > No more required than an affidavit proving PointedEars is your legal name In addition to this utter nonsense, do you have anything constructive to say about the rest of my posting? If not, troll elsewhere. -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | IronManMark20 <mr.smittye@gmail.com> |
|---|---|
| Date | 2015-05-26 21:54 -0700 |
| Message-ID | <b2e15c41-b1bf-44a4-9c2b-cf844f4bb580@googlegroups.com> |
| In reply to | #91245 |
On Tuesday, May 26, 2015 at 6:52:00 AM UTC-7, Markos wrote: > 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 To actually answer your questions, cv2 is the newest and best opencv binding. It uses numpy arrays, instead of what cv uses. This means it is much easier to deal with. I will also point you to https://stackoverflow.com/questions/10417108/what-is-different-between-all-these-opencv-python-interfaces
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web