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>
265 lines
7.6 KiB
Plaintext
265 lines
7.6 KiB
Plaintext
menuconfig BR2_PACKAGE_OPENCV
|
|
bool "opencv"
|
|
select BR2_PACKAGE_ZLIB
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_USE_WCHAR
|
|
depends on !BR2_STATIC_LIBS # include dlfcn.h
|
|
help
|
|
OpenCV (Open Source Computer Vision) is a library of programming
|
|
functions for real time computer vision.
|
|
|
|
Note that the opencv_core module and the opencv_hal library
|
|
are always built and installed, not matter which other
|
|
modules are enabled below.
|
|
|
|
http://opencv.org/
|
|
|
|
if BR2_PACKAGE_OPENCV
|
|
|
|
comment "OpenCV modules"
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_CALIB3D
|
|
bool "calib3d"
|
|
select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
help
|
|
Include opencv_calib3d (camera calibration and 3d reconstruction) module
|
|
into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_FEATURES2D
|
|
bool "features2d"
|
|
select BR2_PACKAGE_OPENCV_LIB_FLANN
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_ML
|
|
help
|
|
Include opencv_features2d (2d features framework) module into the OpenCV
|
|
build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_FLANN
|
|
bool "flann"
|
|
# opencv_core dependency is already enabled
|
|
help
|
|
Include opencv_flann (clustering and search in multi-dimensional spaces)
|
|
module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_HIGHGUI
|
|
bool "highgui"
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGCODECS
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_VIDEOIO
|
|
help
|
|
Include opencv_highgui (high-level gui and media i/o) module into the
|
|
OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_IMGCODECS
|
|
bool "imgcodecs"
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
help
|
|
Include opencv_imgcodecs (image codecs) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
bool "imgproc"
|
|
# opencv_core dependency is already enabled
|
|
help
|
|
Include opencv_imgproc (image processing) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_ML
|
|
bool "ml"
|
|
# opencv_core dependency is already enabled
|
|
help
|
|
Include opencv_ml (machine learning) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
|
|
bool "objdetect"
|
|
# opencv_core dependency is already enabled
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_ML
|
|
help
|
|
Include opencv_objdetect (object detection) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_PHOTO
|
|
bool "photo"
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
help
|
|
Include opencv_photo (computational photography) module into the OpenCV
|
|
build.
|
|
|
|
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"
|
|
# opencv_core dependency is already enabled
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_VIDEO
|
|
help
|
|
Include opencv_shape (shape descriptors and matchers) module into the
|
|
OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_STITCHING
|
|
bool "stitching"
|
|
select BR2_PACKAGE_OPENCV_LIB_CALIB3D
|
|
select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
|
|
help
|
|
Include opencv_stitching (images stitching) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_SUPERRES
|
|
bool "superres"
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_VIDEO
|
|
help
|
|
Include opencv_superres (super resolution) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_TS
|
|
bool "ts"
|
|
# opencv_core dependency is already enabled
|
|
select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGCODECS
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_VIDEOIO
|
|
help
|
|
Include opencv_ts (test) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_VIDEOIO
|
|
bool "videoio"
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGCODECS
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
help
|
|
Include opencv_videoio (media i/o) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_VIDEO
|
|
bool "video"
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
help
|
|
Include opencv_video (video analysis) module into the OpenCV build.
|
|
|
|
config BR2_PACKAGE_OPENCV_LIB_VIDEOSTAB
|
|
bool "videostab"
|
|
select BR2_PACKAGE_OPENCV_LIB_CALIB3D
|
|
select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
|
|
select BR2_PACKAGE_OPENCV_LIB_IMGPROC
|
|
select BR2_PACKAGE_OPENCV_LIB_PHOTO
|
|
select BR2_PACKAGE_OPENCV_LIB_VIDEO
|
|
help
|
|
Include opencv_videostab (video stabilization) module into the OpenCV
|
|
build.
|
|
|
|
comment "Test sets"
|
|
config BR2_PACKAGE_OPENCV_BUILD_TESTS
|
|
bool "build tests"
|
|
|
|
config BR2_PACKAGE_OPENCV_BUILD_PERF_TESTS
|
|
bool "build performance tests"
|
|
|
|
comment "3rd party support"
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_FFMPEG
|
|
bool "ffmpeg support"
|
|
select BR2_PACKAGE_BZIP2
|
|
select BR2_PACKAGE_FFMPEG
|
|
select BR2_PACKAGE_FFMPEG_SWSCALE
|
|
help
|
|
Use ffmpeg from the target system.
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_GSTREAMER
|
|
bool "gstreamer support"
|
|
depends on BR2_USE_MMU # gstreamer -> libglib2
|
|
depends on BR2_USE_WCHAR # gstreamer -> libglib2
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer -> libglib2
|
|
select BR2_PACKAGE_GSTREAMER
|
|
select BR2_PACKAGE_GST_PLUGINS_BASE
|
|
select BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_APP
|
|
|
|
comment "gstreamer support needs a toolchain w/ wchar, threads"
|
|
depends on BR2_USE_MMU
|
|
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_GTK
|
|
bool "gtk support"
|
|
depends on BR2_PACKAGE_XORG7
|
|
depends on BR2_USE_WCHAR # libgtk2 -> libglib2
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libgtk2 -> libglib2
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_USE_MMU # libgtk2 -> glib2
|
|
depends on BR2_ARCH_HAS_ATOMICS # libgtk2 -> cairo
|
|
depends on BR2_PACKAGE_OPENCV_LIB_HIGHGUI
|
|
select BR2_PACKAGE_LIBGTK2
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_JASPER
|
|
bool "jpeg2000 support"
|
|
select BR2_PACKAGE_JASPER
|
|
help
|
|
Enable jpeg2000 support.
|
|
|
|
Note: this does not use the libjasper bundled with opencv,
|
|
but uses the libjasper package installed system-wide by
|
|
Buildroot.
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_JPEG
|
|
bool "jpeg support"
|
|
select BR2_PACKAGE_JPEG
|
|
help
|
|
Use shared libjpeg from the target system.
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_PNG
|
|
bool "png support"
|
|
select BR2_PACKAGE_LIBPNG
|
|
help
|
|
Use shared libpng from the target system.
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_QT
|
|
bool "qt backend support"
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_USE_MMU # qt
|
|
depends on BR2_PACKAGE_OPENCV_LIB_HIGHGUI
|
|
select BR2_PACKAGE_QT
|
|
select BR2_PACKAGE_QT_STL
|
|
select BR2_PACKAGE_QT_GUI_MODULE
|
|
select BR2_PACKAGE_QT_TEST
|
|
help
|
|
Use Qt with QtTest module and STL support
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_TIFF
|
|
bool "tiff support"
|
|
select BR2_PACKAGE_TIFF
|
|
help
|
|
Use shared libtiff from the target system.
|
|
|
|
config BR2_PACKAGE_OPENCV_WITH_V4L
|
|
bool "v4l support"
|
|
help
|
|
Enable Video 4 Linux support.
|
|
|
|
If the package libv4l is enabled, its support is automatically enabled.
|
|
|
|
comment "Install options"
|
|
|
|
config BR2_PACKAGE_OPENCV_INSTALL_DATA
|
|
bool "install extra data"
|
|
help
|
|
Install various data that is used by cv libraries and/or demo
|
|
applications, specifically for haarcascades and lbpcascades
|
|
features.
|
|
|
|
For further information: see OpenCV documentation.
|
|
|
|
endif # BR2_PACKAGE_OPENCV
|
|
|
|
comment "opencv needs a toolchain w/ C++, NPTL, wchar, dynamic library"
|
|
depends on !BR2_INSTALL_LIBSTDCPP || \
|
|
!BR2_USE_WCHAR || \
|
|
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
|
BR2_STATIC_LIBS
|