summaryrefslogtreecommitdiffstats
path: root/package/opencv/Config.in
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2015-06-25 21:59:49 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-26 20:44:29 +0200
commitc96fb31aa1fa1cd0ee7e4546c11d0a18a3bca044 (patch)
treecc3c9f4a7efdeee0103afb640025a328b314d4f6 /package/opencv/Config.in
parent07d3749c25e342e2a2c4835a097dd156add5eee7 (diff)
downloadbuildroot-c96fb31aa1fa1cd0ee7e4546c11d0a18a3bca044.tar.gz
buildroot-c96fb31aa1fa1cd0ee7e4546c11d0a18a3bca044.zip
package/opencv: add python support
opencv_python module needs python-numpy because it uses some numpy headers in this wrapper. >From its 2.4 release, OpenCV offers python bindings, but they required most of the OpenCV modules to be enabled. Since OpenCV-3.0.0, python bindings have been reworked: - it now supports both python2 and python3 - only built modules supporting wrapped in python will be included in the bindings. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/opencv/Config.in')
-rw-r--r--package/opencv/Config.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/opencv/Config.in b/package/opencv/Config.in
index 877ddda912..576f66787a 100644
--- a/package/opencv/Config.in
+++ b/package/opencv/Config.in
@@ -85,7 +85,17 @@ config BR2_PACKAGE_OPENCV_LIB_PHOTO
Include opencv_photo (computational photography) module into the OpenCV
build.
-comment "opencv_python module requires numpy which is not yet available."
+config BR2_PACKAGE_OPENCV_LIB_PYTHON
+ bool "python"
+ depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+ depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
+ || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
+ || BR2_sh || BR2_x86_64 # python-numpy
+ depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_i386 || BR2_x86_64 # python-numpy
+ select BR2_PACKAGE_PYTHON_NUMPY
+ help
+ Include opencv_python module into the OpenCV build.
+ No python example is installed.
config BR2_PACKAGE_OPENCV_LIB_SHAPE
bool "shape"
OpenPOWER on IntegriCloud