option('enable-test', type: 'boolean', value: true)
option('install-test', type: 'boolean', value: false)
-option('enable-opencv-test', type: 'boolean', value: true)
option('enable-tensorflow-lite', type: 'boolean', value: true)
option('enable-tensorflow', type: 'boolean', value: true)
-option('enable-movidius-ncsdk2', type: 'boolean', value: false)
option('enable-tensorflow-mem-optmz', type: 'boolean', value: true)
+option('enable-movidius-ncsdk2', type: 'boolean', value: false)
option('install-example', type: 'boolean', value: false)
option('disable-video-support', type: 'boolean', value: false)
option('disable-audio-support', type: 'boolean', value: false)
-opencv_dep = dependency('opencv')
+opencv_dep = dependency('opencv', required: false)
-library('nnstreamer_customfilter_opencv_scaler',
- 'nnstreamer_customfilter_opencv_scaler.cc',
- dependencies: [glib_dep, gst_dep, nnstreamer_dep, opencv_dep],
- install: get_option('install-example'),
- install_dir: customfilter_install_dir
-)
+if opencv_dep.found()
+ library('nnstreamer_customfilter_opencv_scaler',
+ 'nnstreamer_customfilter_opencv_scaler.cc',
+ dependencies: [glib_dep, gst_dep, nnstreamer_dep, opencv_dep],
+ install: get_option('install-example'),
+ install_dir: customfilter_install_dir
+ )
-library('nnstreamer_customfilter_opencv_average',
- 'nnstreamer_customfilter_opencv_average.cc',
- dependencies: [glib_dep, gst_dep, nnstreamer_dep, opencv_dep],
- install: get_option('install-example'),
- install_dir: customfilter_install_dir
-)
+ library('nnstreamer_customfilter_opencv_average',
+ 'nnstreamer_customfilter_opencv_average.cc',
+ dependencies: [glib_dep, gst_dep, nnstreamer_dep, opencv_dep],
+ install: get_option('install-example'),
+ install_dir: customfilter_install_dir
+ )
+endif
subdir('custom_example_passthrough')
subdir('custom_example_scaler')
subdir('custom_example_average')
-if get_option('enable-opencv-test')
- subdir('custom_example_opencv')
-endif
+subdir('custom_example_opencv')
subdir('custom_example_RNN')
subdir('custom_example_LSTM')