          if len(rotated) > 1:
              rotated_landmarks = [tuple(point) for point in rotated[1].tolist()]
              face["landmarksXY"] = rotated_landmarks
      else:
          rotated_landmarks = dlib.rectangle(  # pylint: disable=c-extension-no-member
              int(pt_x), int(pt_y), int(pt_x1), int(pt_y1))
          face = rotated_landmarks
  
      logger.trace("Rotated landmarks: %s", rotated_landmarks)
      return face
  
 
</s> remove     elif isinstance(face,
                    dlib.rectangle):  # pylint: disable=c-extension-no-member
        bounding_box = [[face.left(), face.top()],
                        [face.right(), face.top()],
                        [face.right(), face.bottom()],
                        [face.left(), face.bottom()]]
 </s> add     elif isinstance(face, BoundingBox):
        bounding_box = [[face.left, face.top],
                        [face.right, face.top],
                        [face.right, face.bottom],
                        [face.left, face.bottom]] </s> remove         detected = [dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(face.left() / scale),
            int(face.top() / scale),
            int(face.right() / scale),
            int(face.bottom() / scale))
 </s> add         detected = [BoundingBox(face.left / scale, face.top / scale,
                                face.right / scale, face.bottom / scale) </s> remove         detected = [dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(face.left() / scale),
            int(face.top() / scale),
            int(face.right() / scale),
            int(face.bottom() / scale))
 </s> add         detected = [BoundingBox(face.left / scale, face.top / scale,
                                face.right / scale, face.bottom / scale) </s> remove         faces = [dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(face[0]), int(face[1]), int(face[2]), int(face[3]))
                 for face in faces]
 </s> add         faces = [BoundingBox(face[0], face[1], face[2], face[3]) for face in faces] </s> remove         detected = [dlib.rectangle(  # pylint: disable=c-extension-no-member
            int(face.left() / scale), int(face.top() / scale),
            int(face.right() / scale), int(face.bottom() / scale))
 </s> add         detected = [BoundingBox(face.left / scale, face.top / scale,
                                face.right / scale, face.bottom / scale)
        rotated_landmarks = BoundingBox(pt_x, pt_y, pt_x1, pt_y1)
          if len(rotated) > 1:
              rotated_landmarks = [tuple(point) for point in rotated[1].tolist()]
              face["landmarksXY"] = rotated_landmarks
      else:
        rotated_landmarks = BoundingBox(pt_x, pt_y, pt_x1, pt_y1)
        rotated_landmarks = BoundingBox(pt_x, pt_y, pt_x1, pt_y1)
          face = rotated_landmarks
  
      logger.trace("Rotated landmarks: %s", rotated_landmarks)
      return face
  
keep keep keep keep replace replace keep keep keep keep keep
 Remove dlib.rectangles. Replace with BoundingBox class 
lib/utils.py