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

2016-03-15 Thread Kota Kato
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) orang...@gmail.com


python3-opencv.patch
Description: Binary data


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

2015-09-17 Thread Bastian Venthur
Package: opencv
Severity: normal


Hi,

as supporting Python3 seems to be a release goal (see Paul's mail from
2015-04-14 on -announce), I'm filing this bugreport.

Opencv seems to have Python3 support since Version3
(http://opencv.org/opencv-3-0-alpha.html), which is good news as there
should be no need to port the old Python2-only code.


Cheers,

Bastian




-- 
Dr. Bastian Venthur  http://venthur.de
Debian Developer venthur at debian org