title: Convert OpenCV's Rect to dlib's rectangle?
body: <p>I use OpenCV's face detector with C++ for dlib's face alignment instead of dlib's detector because of slow speed.<br>
  To use dlib's face alignment, I have to pass the detection rectangle to the face alignment function.<br>
  However, I cannot do that even though dlib's detector is ok.<br>
  Because <code>std::vector&lt;rectangle&gt; dets</code>is used in <a href="http://dlib.net/face_landmark_detection_ex.cpp.html" rel="noreferrer">dlib's sample code</a>, I tried to assign as shown below, but I couldn't.<br>
  Note that <code>detect_rect</code> is face detection rectangle by OpenCV's detector.<br></p>
  
  <pre><code>dets[0].l = detect_rect.left;
  dets[0].t = detect_rect.top;
  dets[0].r = detect_rect.right;
  dets[0].b = detect_rect.bottom;
  </code></pre>
  
  <p>Could you tell me any advice?</p>
  
  <p>Thank you.</p>