Bug#799262: [opencv] please provide package python3-opencv

Kota Kato orangain at gmail.com
Tue Mar 15 15:43:32 UTC 2016


Hi,

I've created a patch to provide python3-opencv package. In my environment,
the patch work well with python 3.5 on the latest stretch.

The package contains the following files:

    $ dpkg -c python3-opencv_3.0.0+dfsg-1~exp2.1_amd64.deb
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./usr/
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./usr/share/
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./usr/share/doc/
    drwxr-xr-x root/root         0 2016-03-15 15:06
./usr/share/doc/python3-opencv/
    -rw-r--r-- root/root      9481 2016-03-15 12:54
./usr/share/doc/python3-opencv/changelog.Debian.gz
    -rw-r--r-- root/root      3471 2015-12-08 13:35
./usr/share/doc/python3-opencv/copyright
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./usr/share/lintian/
    drwxr-xr-x root/root         0 2016-03-15 15:06
./usr/share/lintian/overrides/
    -rw-r--r-- root/root       105 2016-03-15 12:50
./usr/share/lintian/overrides/python3-opencv
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./usr/lib/
    drwxr-xr-x root/root         0 2016-03-15 15:06 ./usr/lib/python3/
    drwxr-xr-x root/root         0 2016-03-15 15:06
./usr/lib/python3/dist-packages/
    -rw-r--r-- root/root   1439704 2016-03-15 15:06
./usr/lib/python3/dist-packages/cv2.cpython-35m-x86_64-linux-gnu.so

After installing the package, you can use cv2 module as followings:

    $ python3 -V
    Python 3.5.1+
    $ python3 -c 'import cv2; print(cv2.getBuildInformation())'
      videoio: Removing WinRT API headers by default

    General configuration for OpenCV 3.0.0
=====================================
      Version control:               2.4.11-397-g8e732f3-dirty

      Platform:
        Host:                        Linux 4.3.0-1-amd64 x86_64
        CMake:                       3.4.1
        CMake generator:             Unix Makefiles
        CMake build tool:            /usr/bin/make
        Configuration:               Release

    [...]

      Python 2:
        Interpreter:                 /usr/bin/python2.7 (ver 2.7.11)
        Libraries:                   /usr/lib/x86_64-linux-gnu/
libpython2.7.so (ver 2.7.11+)
        numpy:
/usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0b3)
        packages path:               lib/python2.7/dist-packages

      Python 3:
        Interpreter:                 /usr/bin/python3.5 (ver 3.5.1)
        Libraries:                   /usr/lib/x86_64-linux-gnu/
libpython3.5m.so (ver 3.5.1+)
        numpy:
/usr/lib/python3/dist-packages/numpy/core/include (ver 1.10.4)
        packages path:               lib/python3.5/dist-packages

      Python (for build):            /usr/bin/python2.7

    [...]

It's very happy for me if Debian and Ubuntu officially provide a
python3-opencv package.

--
Kota Kato (orangain) orangain at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160315/e00658ba/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python3-opencv.patch
Type: application/octet-stream
Size: 6262 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160315/e00658ba/attachment.obj>


More information about the debian-science-maintainers mailing list