mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 16:55:23 +00:00
opencv: Fix hand detect profile paths
This is the same mechanism used by facedetect Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8403>
This commit is contained in:
parent
ce73ab5245
commit
73da2edbba
3 changed files with 6 additions and 3 deletions
|
@ -236840,7 +236840,7 @@
|
|||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "@0@/fist.xml",
|
||||
"default": "/usr/share/opencv4/haarcascades//fist.xml",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gchararray",
|
||||
|
@ -236852,7 +236852,7 @@
|
|||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "@0@/palm.xml",
|
||||
"default": "/usr/share/opencv4/haarcascades//palm.xml",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gchararray",
|
||||
|
|
|
@ -70,6 +70,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_handdetect_debug);
|
|||
#endif
|
||||
|
||||
/* define HAAR files */
|
||||
#define GST_HAAR_CASCADES_DIR OPENCV_PREFIX G_DIR_SEPARATOR_S "share" \
|
||||
G_DIR_SEPARATOR_S OPENCV_PATH_NAME G_DIR_SEPARATOR_S "haarcascades" \
|
||||
G_DIR_SEPARATOR_S
|
||||
#define HAAR_FILE_FIST GST_HAAR_CASCADES_DIR G_DIR_SEPARATOR_S "fist.xml"
|
||||
#define HAAR_FILE_PALM GST_HAAR_CASCADES_DIR G_DIR_SEPARATOR_S "palm.xml"
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ libopencv_headers = [
|
|||
]
|
||||
|
||||
|
||||
gstopencv_cargs = ['-DGST_HAAR_CASCADES_DIR="@0@"']
|
||||
gstopencv_cargs = []
|
||||
opencv_dep = dependency('opencv', version : ['>= 3.0.0', '< 3.5.0'], required : false)
|
||||
if not opencv_dep.found()
|
||||
opencv_dep = dependency('opencv', version : ['>= 4.0.0'], required : opencv_opt)
|
||||
|
|
Loading…
Reference in a new issue