1 menuconfig BR2_PACKAGE_OPENCV
3 select BR2_PACKAGE_ZLIB
4 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
5 depends on BR2_INSTALL_LIBSTDCPP
6 depends on BR2_USE_WCHAR
8 OpenCV (Open Source Computer Vision) is a library of programming
9 functions for real time computer vision.
15 comment "OpenCV modules"
17 config BR2_PACKAGE_OPENCV_LIB_CALIB3D
20 select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
21 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
23 Include opencv_calib3d module into the OpenCV build.
25 config BR2_PACKAGE_OPENCV_LIB_CONTRIB
28 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
29 select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
30 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
31 select BR2_PACKAGE_OPENCV_LIB_ML
32 select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
33 select BR2_PACKAGE_OPENCV_LIB_VIDEO
35 Include opencv_contrib module into the OpenCV build.
37 config BR2_PACKAGE_OPENCV_LIB_FEATURES2D
40 select BR2_PACKAGE_OPENCV_LIB_FLANN
41 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
43 Include opencv_features2d module into the OpenCV build.
45 config BR2_PACKAGE_OPENCV_LIB_FLANN
48 # opencv_core dependency is already enabled
50 Include opencv_flann module into the OpenCV build.
52 config BR2_PACKAGE_OPENCV_LIB_GPU
54 depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 # opencv libphoto
55 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
56 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
57 select BR2_PACKAGE_OPENCV_LIB_LEGACY
58 select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
59 select BR2_PACKAGE_OPENCV_LIB_PHOTO
60 select BR2_PACKAGE_OPENCV_LIB_VIDEO
61 depends on !BR2_STATIC_LIBS
63 Include opencv_gpu module into the OpenCV build.
65 comment "gpu module needs a toolchain w/ dynamic libraries"
66 depends on BR2_STATIC_LIBS
68 config BR2_PACKAGE_OPENCV_LIB_HIGHGUI
71 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
73 Include opencv_highgui module into the OpenCV build.
75 config BR2_PACKAGE_OPENCV_LIB_IMGPROC
78 # opencv_core dependency is already enabled
80 Include opencv_imgproc module into the OpenCV build.
82 config BR2_PACKAGE_OPENCV_LIB_LEGACY
85 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
86 select BR2_PACKAGE_OPENCV_LIB_ML
87 select BR2_PACKAGE_OPENCV_LIB_VIDEO
89 Include opencv_legacy module into the OpenCV build.
91 config BR2_PACKAGE_OPENCV_LIB_ML
92 bool "ml (machine learning)"
94 # opencv_core dependency is already enabled
96 Include opencv_ml module into the OpenCV build.
98 config BR2_PACKAGE_OPENCV_LIB_NONFREE
100 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
101 select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
102 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
104 Include opencv_nonfree module into the OpenCV build.
106 config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
109 # opencv_core dependency is already enabled
110 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
112 Include opencv_objdetect module into the OpenCV build.
114 config BR2_PACKAGE_OPENCV_LIB_PHOTO
117 depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 # Binutils 2.25 nios2 issue
118 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
120 Include opencv_photo module into the OpenCV build.
122 comment "opencv_python module requires numpy which is not yet available."
124 config BR2_PACKAGE_OPENCV_LIB_STITCHING
127 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
128 select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
129 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
130 select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
132 Include opencv_stitching module into the OpenCV build.
134 config BR2_PACKAGE_OPENCV_LIB_SUPERRES
137 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
138 select BR2_PACKAGE_OPENCV_LIB_VIDEO
140 Include opencv_superres "super resolution" - module into the OpenCV
143 config BR2_PACKAGE_OPENCV_LIB_TS
144 bool "ts (touchscreen)"
146 # opencv_core dependency is already enabled
147 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
148 select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
149 select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
150 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
151 select BR2_PACKAGE_OPENCV_LIB_VIDEO
153 Include opencv_ts module into the OpenCV build.
155 config BR2_PACKAGE_OPENCV_LIB_VIDEO
158 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
160 Include opencv_video module into the OpenCV build.
162 config BR2_PACKAGE_OPENCV_LIB_VIDEOSTAB
165 depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 # opencv libphoto
166 select BR2_PACKAGE_OPENCV_LIB_CALIB3D
167 select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
168 select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
169 select BR2_PACKAGE_OPENCV_LIB_IMGPROC
170 select BR2_PACKAGE_OPENCV_LIB_PHOTO
171 select BR2_PACKAGE_OPENCV_LIB_VIDEO
173 Include opencv_videostab module into the OpenCV build.
179 config BR2_PACKAGE_OPENCV_BUILD_TESTS
182 config BR2_PACKAGE_OPENCV_BUILD_PERF_TESTS
183 bool "build performance tests"
187 comment "Tests sets need a toolchain w/ dynamic libraries"
188 depends on BR2_STATIC_LIBS
190 comment "3rd party support"
192 config BR2_PACKAGE_OPENCV_WITH_FFMPEG
193 bool "ffmpeg support"
194 depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
195 select BR2_PACKAGE_BZIP2
196 select BR2_PACKAGE_FFMPEG
197 select BR2_PACKAGE_FFMPEG_SWSCALE
199 Use ffmpeg from the target system.
202 prompt "gstreamer support"
204 OpenCV prefers gstreamer-1 over gstreamer-0.10.
206 config BR2_PACKAGE_OPENCV_WITHOUT_GSTREAMER
209 config BR2_PACKAGE_OPENCV_WITH_GSTREAMER
210 bool "gstreamer-0.10"
211 depends on BR2_USE_MMU # gstreamer -> libglib2
212 depends on BR2_USE_WCHAR # gstreamer -> libglib2
213 depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer -> libglib2
214 select BR2_PACKAGE_GSTREAMER
215 select BR2_PACKAGE_GST_PLUGINS_BASE
216 select BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_APP
218 comment "gstreamer-0.10 support needs a toolchain w/ wchar, threads"
219 depends on BR2_USE_MMU
220 depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
222 config BR2_PACKAGE_OPENCV_WITH_GSTREAMER1
224 depends on BR2_USE_MMU # gstreamer1 -> libglib2
225 depends on BR2_USE_WCHAR # gstreamer1 -> libglib2
226 depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer1 -> libglib2
227 select BR2_PACKAGE_GSTREAMER1
228 select BR2_PACKAGE_GST1_PLUGINS_BASE
229 select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
231 comment "gstreamer-1.x support needs a toolchain w/ wchar, threads"
232 depends on BR2_USE_MMU
233 depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
237 config BR2_PACKAGE_OPENCV_WITH_GTK
239 depends on BR2_PACKAGE_XORG7
240 depends on BR2_USE_WCHAR # libgtk2 -> libglib2
241 depends on BR2_TOOLCHAIN_HAS_THREADS # libgtk2 -> libglib2
242 depends on BR2_INSTALL_LIBSTDCPP
243 depends on BR2_USE_MMU # libgtk2 -> glib2
244 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz
245 depends on BR2_PACKAGE_OPENCV_LIB_HIGHGUI
246 select BR2_PACKAGE_LIBGTK2
248 config BR2_PACKAGE_OPENCV_WITH_JASPER
249 bool "jpeg2000 support"
250 select BR2_PACKAGE_JASPER
252 Enable jpeg2000 support.
254 Note: this does not use the libjasper bundled with opencv,
255 but uses the libjasper package installed system-wide by
258 config BR2_PACKAGE_OPENCV_WITH_JPEG
260 select BR2_PACKAGE_JPEG
262 Use shared libjpeg from the target system.
264 config BR2_PACKAGE_OPENCV_WITH_PNG
266 select BR2_PACKAGE_LIBPNG
268 Use shared libpng from the target system.
270 config BR2_PACKAGE_OPENCV_WITH_QT
271 bool "qt backend support"
272 depends on BR2_INSTALL_LIBSTDCPP
273 depends on BR2_USE_MMU # qt
274 depends on BR2_PACKAGE_OPENCV_LIB_HIGHGUI
275 depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 # Qt GUI module
276 select BR2_PACKAGE_QT
277 select BR2_PACKAGE_QT_STL
278 select BR2_PACKAGE_QT_GUI_MODULE
279 select BR2_PACKAGE_QT_TEST
281 Use Qt with QtTest module and STL support
283 comment "qt backend support needs a toolchain not affected by Binutils bug 19405"
284 depends on BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405
286 config BR2_PACKAGE_OPENCV_WITH_TIFF
288 select BR2_PACKAGE_TIFF
290 Use shared libtiff from the target system.
292 config BR2_PACKAGE_OPENCV_WITH_V4L
295 Enable Video 4 Linux support.
297 If the package libv4l is enabled, its support is automatically enabled.
299 comment "Install options"
301 config BR2_PACKAGE_OPENCV_INSTALL_DATA
302 bool "install extra data"
304 Install various data that is used by cv libraries and/or demo
305 applications, specifically for haarcascades and lbpcascades
308 For further information: see OpenCV documentation.
310 endif # BR2_PACKAGE_OPENCV
312 comment "opencv needs a toolchain w/ C++, NPTL, wchar"
313 depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS_NPTL)