<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Timm,<br>
</p>
<p><br>
</p>
<p>I think you should make sure you have the "profiles" for face/nose/mouth etc.<br>
</p>
<p>These are the Haar features that OpenCV uses for the face detection.<br>
</p>
<p><br>
</p>
<p>You can specify them with<br>
</p>
<p>... ! facedetect profile=[path] ! ...<br>
</p>
<p><br>
</p>
<p>According to</p>
<p>gst-inspect-1.0 facedetect<br>
</p>
<p><br>
</p>
<p>The default path is:<br>
</p>
<p>/usr/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml<br>
</p>
<p><br>
</p>
<p>As a first check. See if you have that file<br>
</p>
<p><br>
</p>
<p>Cheers<br>
</p>
<p>Martin<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-size:16px"><br>
</span></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<hr tabindex="-1" style="color: rgb(33, 33, 33); font-size: 12pt; display: inline-block; width: 98%;">
<br>
</div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of Timm Murray <tmurray@wumpus-cave.net><br>
<b>Sent:</b> Tuesday, September 11, 2018 12:06 AM<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Subject:</b> No Facial Detection Ubuntu 18.04</font>
<div> </div>
</div>
<div>
<div dir="ltr">I'm using the following pipeline for facial detection:
<div><br>
</div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0); background-color:rgb(255,255,255)">gst-launch-1.0 v4l2src device=/dev/video0 \
</span><br>
   ! 'video/x-raw,width=640,height=480' \ <br>
   ! videoconvert \ <br>
   ! facedetect \ <br>
   ! videoconvert \ <br>
   ! xvimagesink<br>
</span><br>
</div>
<div>This should display the video stream from my web cam to a window, with faces highlighted.  It does show the stream, but it's not drawing boxes around the faces.</div>
<div><br>
</div>
<div>I think something with my environment might be messed up, as the same pipeline had worked for me in the past.  Just not sure where to start looking.  This is on Ubuntu 18.04, GStreamer 1.14.1, and OpenCV 3.2.0.<span style="font-family:monospace"><br>
</span></div>
<div><br>
</div>
<div>Thanks,</div>
<div>Timm</div>
</div>
</div>
</div>
</body>
</html>