handdetect: Change gsthanddetect to C++

Change the gsthanddetect.c file to cpp and add it into Makefile.
It is necessary to migrate the handdetect plugin to C++,
in order to load new and old classifiers, to make handdetect work
with newer versions of Opencv.

https://bugzilla.gnome.org/show_bug.cgi?id=752528
This commit is contained in:
Luis de Bethencourt 2015-10-02 16:01:29 +01:00
parent b58f711566
commit dab249a445
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ libgstopencv_la_SOURCES = gstopencv.cpp \
gstcvsobel.c \ gstcvsobel.c \
gstedgedetect.cpp \ gstedgedetect.cpp \
gstfaceblur.cpp \ gstfaceblur.cpp \
gsthanddetect.c \ gsthanddetect.cpp \
gstpyramidsegment.c \ gstpyramidsegment.c \
gsttemplatematch.c \ gsttemplatematch.c \
gsttextoverlay.c \ gsttextoverlay.c \
@ -27,7 +27,8 @@ libgstopencv_la_SOURCES = gstopencv.cpp \
motioncells_wrapper.cpp \ motioncells_wrapper.cpp \
MotionCells.cpp MotionCells.cpp
libgstopencv_la_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) $(OPENCV_CFLAGS) libgstopencv_la_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) $(OPENCV_CFLAGS) \
-DGST_HAAR_CASCADES_DIR=\"$(pkgdatadir)/@GST_API_VERSION@/opencv_haarcascades\"
# flags used to compile this facedetect # flags used to compile this facedetect
# add other _CFLAGS and _LIBS as needed # add other _CFLAGS and _LIBS as needed
@ -36,7 +37,6 @@ libgstopencv_la_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_C
# OpenCV's define isn't good enough to avoid 'unused' gcc warnings (at v2.1.0) # OpenCV's define isn't good enough to avoid 'unused' gcc warnings (at v2.1.0)
libgstopencv_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \ libgstopencv_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \
$(GST_CFLAGS) $(OPENCV_CFLAGS) \ $(GST_CFLAGS) $(OPENCV_CFLAGS) \
-DGST_HAAR_CASCADES_DIR=\"$(pkgdatadir)/@GST_API_VERSION@/opencv_haarcascades\" \
-DCV_INLINE="static inline" \ -DCV_INLINE="static inline" \
-DCV_NO_BACKWARD_COMPATIBILITY -DCV_NO_BACKWARD_COMPATIBILITY