Config.in 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. menuconfig BR2_PACKAGE_OPENCV
  2. bool "opencv-2.4"
  3. depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
  4. depends on BR2_INSTALL_LIBSTDCPP
  5. depends on BR2_USE_WCHAR
  6. select BR2_PACKAGE_ZLIB
  7. help
  8. OpenCV (Open Source Computer Vision) is a library of
  9. programming functions for real time computer vision.
  10. http://opencv.org/
  11. if BR2_PACKAGE_OPENCV
  12. comment "OpenCV modules"
  13. config BR2_PACKAGE_OPENCV_LIB_CALIB3D
  14. bool "calib3d"
  15. default y
  16. select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  17. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  18. help
  19. Include opencv_calib3d module into the OpenCV build.
  20. config BR2_PACKAGE_OPENCV_LIB_CONTRIB
  21. bool "contrib"
  22. default y
  23. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  24. select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  25. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  26. select BR2_PACKAGE_OPENCV_LIB_ML
  27. select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
  28. select BR2_PACKAGE_OPENCV_LIB_VIDEO
  29. help
  30. Include opencv_contrib module into the OpenCV build.
  31. config BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  32. bool "features2d"
  33. default y
  34. select BR2_PACKAGE_OPENCV_LIB_FLANN
  35. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  36. help
  37. Include opencv_features2d module into the OpenCV build.
  38. config BR2_PACKAGE_OPENCV_LIB_FLANN
  39. bool "flann"
  40. default y
  41. # opencv_core dependency is already enabled
  42. help
  43. Include opencv_flann module into the OpenCV build.
  44. config BR2_PACKAGE_OPENCV_LIB_GPU
  45. bool "gpu"
  46. depends on !BR2_STATIC_LIBS
  47. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  48. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  49. select BR2_PACKAGE_OPENCV_LIB_LEGACY
  50. select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
  51. select BR2_PACKAGE_OPENCV_LIB_PHOTO
  52. select BR2_PACKAGE_OPENCV_LIB_VIDEO
  53. help
  54. Include opencv_gpu module into the OpenCV build.
  55. comment "gpu module needs a toolchain w/ dynamic libraries"
  56. depends on BR2_STATIC_LIBS
  57. config BR2_PACKAGE_OPENCV_LIB_HIGHGUI
  58. bool "highgui"
  59. default y
  60. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  61. help
  62. Include opencv_highgui module into the OpenCV build.
  63. config BR2_PACKAGE_OPENCV_LIB_IMGPROC
  64. bool "imgproc"
  65. default y
  66. # opencv_core dependency is already enabled
  67. help
  68. Include opencv_imgproc module into the OpenCV build.
  69. config BR2_PACKAGE_OPENCV_LIB_LEGACY
  70. bool "legacy"
  71. default y
  72. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  73. select BR2_PACKAGE_OPENCV_LIB_ML
  74. select BR2_PACKAGE_OPENCV_LIB_VIDEO
  75. help
  76. Include opencv_legacy module into the OpenCV build.
  77. config BR2_PACKAGE_OPENCV_LIB_ML
  78. bool "ml (machine learning)"
  79. default y
  80. # opencv_core dependency is already enabled
  81. help
  82. Include opencv_ml module into the OpenCV build.
  83. config BR2_PACKAGE_OPENCV_LIB_NONFREE
  84. bool "nonfree"
  85. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  86. select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  87. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  88. help
  89. Include opencv_nonfree module into the OpenCV build.
  90. config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
  91. bool "objdetect"
  92. default y
  93. # opencv_core dependency is already enabled
  94. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  95. help
  96. Include opencv_objdetect module into the OpenCV build.
  97. config BR2_PACKAGE_OPENCV_LIB_PHOTO
  98. bool "photo"
  99. default y
  100. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  101. help
  102. Include opencv_photo module into the OpenCV build.
  103. comment "opencv_python module requires numpy which is not yet available."
  104. config BR2_PACKAGE_OPENCV_LIB_STITCHING
  105. bool "stitching"
  106. default y
  107. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  108. select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  109. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  110. select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
  111. help
  112. Include opencv_stitching module into the OpenCV build.
  113. config BR2_PACKAGE_OPENCV_LIB_SUPERRES
  114. bool "superres"
  115. default y
  116. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  117. select BR2_PACKAGE_OPENCV_LIB_VIDEO
  118. help
  119. Include opencv_superres "super resolution" - module into the
  120. OpenCV build.
  121. config BR2_PACKAGE_OPENCV_LIB_TS
  122. bool "ts (touchscreen)"
  123. default y
  124. # opencv_core dependency is already enabled
  125. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  126. select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  127. select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
  128. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  129. select BR2_PACKAGE_OPENCV_LIB_VIDEO
  130. help
  131. Include opencv_ts module into the OpenCV build.
  132. config BR2_PACKAGE_OPENCV_LIB_VIDEO
  133. bool "video"
  134. default y
  135. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  136. help
  137. Include opencv_video module into the OpenCV build.
  138. config BR2_PACKAGE_OPENCV_LIB_VIDEOSTAB
  139. bool "videostab"
  140. default y
  141. select BR2_PACKAGE_OPENCV_LIB_CALIB3D
  142. select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
  143. select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
  144. select BR2_PACKAGE_OPENCV_LIB_IMGPROC
  145. select BR2_PACKAGE_OPENCV_LIB_PHOTO
  146. select BR2_PACKAGE_OPENCV_LIB_VIDEO
  147. help
  148. Include opencv_videostab module into the OpenCV build.
  149. if !BR2_STATIC_LIBS
  150. comment "Test sets"
  151. config BR2_PACKAGE_OPENCV_BUILD_TESTS
  152. bool "build tests"
  153. config BR2_PACKAGE_OPENCV_BUILD_PERF_TESTS
  154. bool "build performance tests"
  155. endif
  156. comment "Tests sets need a toolchain w/ dynamic libraries"
  157. depends on BR2_STATIC_LIBS
  158. comment "3rd party support"
  159. config BR2_PACKAGE_OPENCV_WITH_FFMPEG
  160. bool "ffmpeg support"
  161. depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
  162. select BR2_PACKAGE_BZIP2
  163. select BR2_PACKAGE_FFMPEG
  164. select BR2_PACKAGE_FFMPEG_SWSCALE
  165. help
  166. Use ffmpeg from the target system.
  167. config BR2_PACKAGE_OPENCV_WITH_GSTREAMER1
  168. bool "gstreamer support"
  169. depends on BR2_USE_MMU # gstreamer1 -> libglib2
  170. depends on BR2_USE_WCHAR # gstreamer1 -> libglib2
  171. depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer1 -> libglib2
  172. select BR2_PACKAGE_GSTREAMER1
  173. select BR2_PACKAGE_GST1_PLUGINS_BASE
  174. select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
  175. help
  176. Enable gstreamer support.
  177. comment "gstreamer support needs a toolchain w/ wchar, threads"
  178. depends on BR2_USE_MMU
  179. depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
  180. config BR2_PACKAGE_OPENCV_WITH_GTK
  181. bool "gtk support"
  182. depends on BR2_PACKAGE_XORG7
  183. depends on BR2_USE_WCHAR # libgtk2 -> libglib2
  184. depends on BR2_TOOLCHAIN_HAS_THREADS # libgtk2 -> libglib2
  185. depends on BR2_INSTALL_LIBSTDCPP
  186. depends on BR2_USE_MMU # libgtk2 -> glib2
  187. depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz
  188. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libgtk2 -> pango -> harfbuzz
  189. depends on BR2_PACKAGE_OPENCV_LIB_HIGHGUI
  190. select BR2_PACKAGE_LIBGTK2
  191. config BR2_PACKAGE_OPENCV_WITH_JASPER
  192. bool "jpeg2000 support"
  193. select BR2_PACKAGE_JASPER
  194. help
  195. Enable jpeg2000 support.
  196. Note: this does not use the libjasper bundled with opencv,
  197. but uses the libjasper package installed system-wide by
  198. Buildroot.
  199. config BR2_PACKAGE_OPENCV_WITH_JPEG
  200. bool "jpeg support"
  201. select BR2_PACKAGE_JPEG
  202. help
  203. Use shared libjpeg from the target system.
  204. config BR2_PACKAGE_OPENCV_WITH_PNG
  205. bool "png support"
  206. select BR2_PACKAGE_LIBPNG
  207. help
  208. Use shared libpng from the target system.
  209. config BR2_PACKAGE_OPENCV_WITH_TIFF
  210. bool "tiff support"
  211. select BR2_PACKAGE_TIFF
  212. help
  213. Use shared libtiff from the target system.
  214. config BR2_PACKAGE_OPENCV_WITH_V4L
  215. bool "v4l support"
  216. help
  217. Enable Video 4 Linux support.
  218. If the package libv4l is enabled, its support is
  219. automatically enabled.
  220. comment "Install options"
  221. config BR2_PACKAGE_OPENCV_INSTALL_DATA
  222. bool "install extra data"
  223. help
  224. Install various data that is used by cv libraries and/or demo
  225. applications, specifically for haarcascades and lbpcascades
  226. features.
  227. For further information: see OpenCV documentation.
  228. endif # BR2_PACKAGE_OPENCV
  229. comment "opencv needs a toolchain w/ C++, NPTL, wchar"
  230. depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS_NPTL)