2018-12-17 18:58:52 +00:00
|
|
|
if get_option('opencv').disabled()
|
2020-09-10 17:35:11 +00:00
|
|
|
opencv_dep = disabler()
|
2018-12-17 18:58:52 +00:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2016-11-28 20:11:28 +00:00
|
|
|
gstopencv_sources = [
|
2016-11-15 16:57:20 +00:00
|
|
|
'gstcvdilate.cpp',
|
|
|
|
'gstcvdilateerode.cpp',
|
|
|
|
'gstcvequalizehist.cpp',
|
|
|
|
'gstcverode.cpp',
|
|
|
|
'gstcvlaplace.cpp',
|
|
|
|
'gstcvsmooth.cpp',
|
|
|
|
'gstcvsobel.cpp',
|
|
|
|
'gstdisparity.cpp',
|
|
|
|
'gstedgedetect.cpp',
|
|
|
|
'gstfaceblur.cpp',
|
|
|
|
'gstfacedetect.cpp',
|
|
|
|
'gstgrabcut.cpp',
|
|
|
|
'gsthanddetect.cpp',
|
|
|
|
'gstmotioncells.cpp',
|
|
|
|
'gstopencv.cpp',
|
|
|
|
'gstretinex.cpp',
|
|
|
|
'gstsegmentation.cpp',
|
|
|
|
'gstskindetect.cpp',
|
|
|
|
'gsttemplatematch.cpp',
|
|
|
|
'gsttextoverlay.cpp',
|
|
|
|
'MotionCells.cpp',
|
2016-12-14 09:37:14 +00:00
|
|
|
'motioncells_wrapper.cpp',
|
2017-10-16 20:29:01 +00:00
|
|
|
'gstdewarp.cpp',
|
|
|
|
'camerautils.cpp',
|
|
|
|
'cameraevent.cpp',
|
|
|
|
'gstcameracalibrate.cpp',
|
2020-05-24 18:07:25 +00:00
|
|
|
'gstcameraundistort.cpp',
|
|
|
|
'gstcvtracker.cpp'
|
2016-11-15 16:57:20 +00:00
|
|
|
]
|
|
|
|
|
2019-10-24 13:40:25 +00:00
|
|
|
if opencv_found
|
2016-11-15 16:57:20 +00:00
|
|
|
gstopencv = library('gstopencv',
|
2016-11-28 20:11:28 +00:00
|
|
|
gstopencv_sources,
|
|
|
|
cpp_args : gst_plugins_bad_args + gstopencv_cargs + [ '-DGST_USE_UNSTABLE_API' ],
|
2020-05-24 18:07:25 +00:00
|
|
|
link_args : [noseh_link_args, '-lopencv_tracking'],
|
2018-12-17 10:30:27 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
2017-05-09 17:16:50 +00:00
|
|
|
dependencies : [gstbase_dep, gstvideo_dep, opencv_dep, gstopencv_dep],
|
2016-11-15 16:57:20 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstopencv]
|
2018-12-17 18:58:52 +00:00
|
|
|
elif get_option('opencv').enabled()
|
|
|
|
error('OpenCV support enabled but required dependencies were not found.')
|
2016-11-15 16:57:20 +00:00
|
|
|
endif
|