GNOME Bugzilla – Bug 753940
opencv: handdetect: haar cascade files path is wrong in gst-uninstalled
Last modified: 2015-09-29 16:03:01 UTC
Created attachment 309828 [details] [review] patch for the gst-uninstalled script When running handdetect from gst-uninstalled it won't find the haar cascade files. Add an environment variable and use this to have the correct paths by default.
Created attachment 309829 [details] [review] patch for gsthanddetect.cpp This patch is meant to be applied after merging the commits in: https://bugzilla.gnome.org/show_bug.cgi?id=752528
Review of attachment 309828 [details] [review]: commit 7c58eefb77bd78cd766c44de56bc69d3d606c386 Author: Luis de Bethencourt <luisbg@osg.samsung.com> Date: Fri Aug 21 17:42:52 2015 +0100 gstreamer-uninstalled: add path for OpenCV haar cascade files Some OpenCV plugins use haar cascade files that are included in the GStreamer sources. To be able to use these from uninstalled, they need to be found through an environment variable. Adding this environment variable pointing to haar cascade files to gst-uninstalled.
Review of attachment 309829 [details] [review]: commit 9bb76699e04cd612ae8ef3d7e2b8e9918d1778f7 Author: Luis de Bethencourt <luisbg@osg.samsung.com> Date: Tue Sep 29 17:00:22 2015 +0100 handdetect: check for haar cascade files path When running GStreamer from uninstalled sources, the location of the haar cascade files will be local. Check if running in uninstalled and set the file paths accordingly.