[Pkg-scicomp-devel] Bug#563717: Bug#563717: [python-opencv] Missing cv module

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Tue Feb 16 05:18:59 UTC 2010


Hi,

2010/1/5 Federico Ceratto <federico.ceratto at gmail.com>:
> Package: python-opencv
> Version: 2.0.0-2
> Severity: important
>
> --- Please enter the report below this line. ---
>
> Hello,
>
> Starting with version 2.0 OpenCV provides a new Python interface that should
> be imported by running "import cv" [see
> http://opencv.willowgarage.com/wiki/PythonInterface ]
>
> Such module seems to be missing from the 2.0.0-2 package. The only files
> named cv.py in my /usr directory seems to be the usual sub-modules of the
> "opencv" module:
>
> /usr/share/pyshared/opencv/cv.py
> /usr/lib/pymodules/python2.5/opencv/cv.py
>
> Is it missing or has it been packaged with a different name?
>
may be "from opencv import cv"?
I confirmed it in the following sources

-----
#! /usr/bin/env python

import sys
from opencv import cv

if __name__ == '__main__':

    print "OpenCV version:%d.%d.%d" % (
        cv.CV_MAJOR_VERSION,
        cv.CV_MINOR_VERSION,
        cv.CV_SUBMINOR_VERSION)
-----

Best regards,
  Nobuhiro
-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6





More information about the Pkg-scicomp-devel mailing list