diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2014-07-04 21:00:38 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2014-07-04 21:13:49 -0400 |
commit | 25c289f6c4f6b822d7e242984fc9417a4a802b45 (patch) | |
tree | 9e9507882b21be178f43bcb5dca93d7195e0ed94 /ext/opencv/gstfacedetect.c | |
parent | 09fc19b83fd515e1713175d26412bc8021a9cfbd (diff) | |
download | gstreamer-plugins-bad-25c289f6c4f6b822d7e242984fc9417a4a802b45.tar.gz |
facedetect: Make cascades dir a little more portable
Diffstat (limited to 'ext/opencv/gstfacedetect.c')
-rw-r--r-- | ext/opencv/gstfacedetect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/opencv/gstfacedetect.c b/ext/opencv/gstfacedetect.c index 6f8740dbf..c531480a0 100644 --- a/ext/opencv/gstfacedetect.c +++ b/ext/opencv/gstfacedetect.c @@ -83,7 +83,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_face_detect_debug); #define GST_CAT_DEFAULT gst_face_detect_debug -#define HAAR_CASCADES_DIR OPENCV_PREFIX "/share/opencv/haarcascades/" +#define HAAR_CASCADES_DIR OPENCV_PREFIX G_DIR_SEPARATOR_S "share" \ + G_DIR_SEPARATOR_S "opencv" G_DIR_SEPARATOR_S "haarcascades" \ + G_DIR_SEPARATOR_S #define DEFAULT_FACE_PROFILE HAAR_CASCADES_DIR "haarcascade_frontalface_default.xml" #define DEFAULT_NOSE_PROFILE HAAR_CASCADES_DIR "haarcascade_mcs_nose.xml" #define DEFAULT_MOUTH_PROFILE HAAR_CASCADES_DIR "haarcascade_mcs_mouth.xml" |