board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / opencv / Config.in
blobc046baaa4b4352d68844315117679c278f7d9ac4
1 menuconfig BR2_PACKAGE_OPENCV
2         bool "opencv-2.4"
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
7         help
8           OpenCV (Open Source Computer Vision) is a library of programming
9           functions for real time computer vision.
11           http://opencv.org/
13 if BR2_PACKAGE_OPENCV
15 comment "OpenCV modules"
17 config BR2_PACKAGE_OPENCV_LIB_CALIB3D
18         bool "calib3d"
19         default y
20         select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
21         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
22         help
23           Include opencv_calib3d module into the OpenCV build.
25 config BR2_PACKAGE_OPENCV_LIB_CONTRIB
26         bool "contrib"
27         default y
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
34         help
35           Include opencv_contrib module into the OpenCV build.
37 config BR2_PACKAGE_OPENCV_LIB_FEATURES2D
38         bool "features2d"
39         default y
40         select BR2_PACKAGE_OPENCV_LIB_FLANN
41         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
42         help
43           Include opencv_features2d module into the OpenCV build.
45 config BR2_PACKAGE_OPENCV_LIB_FLANN
46         bool "flann"
47         default y
48         # opencv_core dependency is already enabled
49         help
50           Include opencv_flann module into the OpenCV build.
52 config BR2_PACKAGE_OPENCV_LIB_GPU
53         bool "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
62         help
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
69         bool "highgui"
70         default y
71         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
72         help
73           Include opencv_highgui module into the OpenCV build.
75 config BR2_PACKAGE_OPENCV_LIB_IMGPROC
76         bool "imgproc"
77         default y
78         # opencv_core dependency is already enabled
79         help
80           Include opencv_imgproc module into the OpenCV build.
82 config BR2_PACKAGE_OPENCV_LIB_LEGACY
83         bool "legacy"
84         default y
85         select BR2_PACKAGE_OPENCV_LIB_CALIB3D
86         select BR2_PACKAGE_OPENCV_LIB_ML
87         select BR2_PACKAGE_OPENCV_LIB_VIDEO
88         help
89           Include opencv_legacy module into the OpenCV build.
91 config BR2_PACKAGE_OPENCV_LIB_ML
92         bool "ml (machine learning)"
93         default y
94         # opencv_core dependency is already enabled
95         help
96           Include opencv_ml module into the OpenCV build.
98 config BR2_PACKAGE_OPENCV_LIB_NONFREE
99         bool "nonfree"
100         select BR2_PACKAGE_OPENCV_LIB_CALIB3D
101         select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
102         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
103         help
104           Include opencv_nonfree module into the OpenCV build.
106 config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
107         bool "objdetect"
108         default y
109         # opencv_core dependency is already enabled
110         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
111         help
112           Include opencv_objdetect module into the OpenCV build.
114 config BR2_PACKAGE_OPENCV_LIB_PHOTO
115         bool "photo"
116         default y
117         depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19405 # Binutils 2.25 nios2 issue
118         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
119         help
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
125         bool "stitching"
126         default y
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
131         help
132           Include opencv_stitching module into the OpenCV build.
134 config BR2_PACKAGE_OPENCV_LIB_SUPERRES
135         bool "superres"
136         default y
137         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
138         select BR2_PACKAGE_OPENCV_LIB_VIDEO
139         help
140           Include opencv_superres "super resolution" - module into the OpenCV
141           build.
143 config BR2_PACKAGE_OPENCV_LIB_TS
144         bool "ts (touchscreen)"
145         default y
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
152         help
153           Include opencv_ts module into the OpenCV build.
155 config BR2_PACKAGE_OPENCV_LIB_VIDEO
156         bool "video"
157         default y
158         select BR2_PACKAGE_OPENCV_LIB_IMGPROC
159         help
160           Include opencv_video module into the OpenCV build.
162 config BR2_PACKAGE_OPENCV_LIB_VIDEOSTAB
163         bool "videostab"
164         default y
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
172         help
173           Include opencv_videostab module into the OpenCV build.
175 if !BR2_STATIC_LIBS
177 comment "Test sets"
179 config BR2_PACKAGE_OPENCV_BUILD_TESTS
180         bool "build tests"
182 config BR2_PACKAGE_OPENCV_BUILD_PERF_TESTS
183         bool "build performance tests"
185 endif
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
198         help
199           Use ffmpeg from the target system.
201 choice
202         prompt "gstreamer support"
203         help
204           OpenCV prefers gstreamer-1 over gstreamer-0.10.
206 config BR2_PACKAGE_OPENCV_WITHOUT_GSTREAMER
207         bool "none"
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
223         bool "gstreamer-1.x"
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
235 endchoice
237 config BR2_PACKAGE_OPENCV_WITH_GTK
238         bool "gtk support"
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
251         help
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
256           Buildroot.
258 config BR2_PACKAGE_OPENCV_WITH_JPEG
259         bool "jpeg support"
260         select BR2_PACKAGE_JPEG
261         help
262           Use shared libjpeg from the target system.
264 config BR2_PACKAGE_OPENCV_WITH_PNG
265         bool "png support"
266         select BR2_PACKAGE_LIBPNG
267         help
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
280         help
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
287         bool "tiff support"
288         select BR2_PACKAGE_TIFF
289         help
290           Use shared libtiff from the target system.
292 config BR2_PACKAGE_OPENCV_WITH_V4L
293         bool "v4l support"
294         help
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"
303         help
304           Install various data that is used by cv libraries and/or demo
305           applications, specifically for haarcascades and lbpcascades
306           features.
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)