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
|
|
|
]
|
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
gstopencv_headers = [
|
|
|
|
'gstcvlaplace.h',
|
|
|
|
'gstcameracalibrate.h',
|
|
|
|
'gstcverode.h',
|
|
|
|
'gstsegmentation.h',
|
|
|
|
'gsttextoverlay.h',
|
|
|
|
'gstcvequalizehist.h',
|
|
|
|
'gstdisparity.h',
|
|
|
|
'gstgrabcut.h',
|
|
|
|
'gstedgedetect.h',
|
|
|
|
'gstskindetect.h',
|
|
|
|
'gsttemplatematch.h',
|
|
|
|
'gstfacedetect.h',
|
|
|
|
'gstretinex.h',
|
|
|
|
'MotionCells.h',
|
|
|
|
'gstcvdilateerode.h',
|
|
|
|
'gstdewarp.h',
|
|
|
|
'motioncells_wrapper.h',
|
|
|
|
'gstcvdilate.h',
|
|
|
|
'gstcvsobel.h',
|
|
|
|
'gstfaceblur.h',
|
|
|
|
'gstmotioncells.h',
|
|
|
|
'gstcvsmooth.h',
|
|
|
|
'gsthanddetect.h',
|
|
|
|
'gstcameraundistort.h',
|
|
|
|
'gstcvtracker.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: gstopencv_sources + gstopencv_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'opencv': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
|
|
|
if get_option('opencv').disabled()
|
|
|
|
opencv_dep = disabler()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
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
|