title: Using a different face detector with dlib's landmark detector
body: <p>I am currently working on a python implementation of Adrian Rosebrock's video blink detector with dlib blog post:</p>
  
  <p><a href="https://www.pyimagesearch.com/author/adrian/" rel="nofollow noreferrer">https://www.pyimagesearch.com/author/adrian/</a></p>
  
  <p>Basically, I am using dlib's frontal face detector and passing the bounding box around the face to dlib's landmark detector as seen in this picture:</p>
  
  <p><a href="https://imgur.com/xvkfNeG" rel="nofollow noreferrer">https://imgur.com/xvkfNeG</a></p>
  
  <p>Sometimes dlib's frontal face detector doesn't find a face, but other face detectors like OpenCV's do. Adrian's blog made it sound like I could use openCV's frontal face detector and pass the bounding box along instead. </p>
  
  <p>However when I do this the landmark detector can't find the eyes of the person correctly as seen in this photo:</p>
  
  <p><a href="https://imgur.com/3eAFFsQ" rel="nofollow noreferrer">https://imgur.com/3eAFFsQ</a></p>
  
  <p>Is there way I could use an alternative face detector with dlib's landmark detector? Or am I stuck using dlib's frontal face detector because the bounding box passed by a different face detector will be ever so slightly incorrect for the dlib landmark detector?</p>
  
  <p>Thank you for your time!</p>