      def alignment_dict(image):
          """ Set the image to a dict for alignment """
          height, width = image.shape[:2]
          face = DetectedFace(x=0, w=width, y=0, h=height)
          face = face.to_dlib_rect()
          return {"image": image,
                  "detected_faces": [face]}
  
      @staticmethod
      def get_landmarks(filename):
 
</s> remove             logger.error("Error initializing FAN. Trying Dlib")
 </s> add             logger.error("Error initializing FAN. Trying CV2-DNN") </s> remove     def rotate_rect(d_rect, rotation_matrix):
        """ Rotate a dlib rect based on the rotation_matrix"""
        logger.trace("Rotating d_rectangle")
        d_rect = rotate_landmarks(d_rect, rotation_matrix)
        return d_rect
 </s> add     def rotate_rect(bounding_box, rotation_matrix):
        """ Rotate a BoundingBox based on the rotation_matrix"""
        logger.trace("Rotating BoundingBox")
        bounding_box = rotate_landmarks(bounding_box, rotation_matrix)
        return bounding_box </s> remove         d_rect, landmarks = extract_data
        alignment["x"] = d_rect.left()
        alignment["w"] = d_rect.right() - d_rect.left()
        alignment["y"] = d_rect.top()
        alignment["h"] = d_rect.bottom() - d_rect.top()
 </s> add         bbox, landmarks = extract_data
        alignment["x"] = bbox.left
        alignment["w"] = bbox.width
        alignment["y"] = bbox.top
        alignment["h"] = bbox.height </s> remove         """ Set a dlib rectangle for predetected faces """
 </s> add         """ Set a BoundingBox for predetected faces """ </s> remove     def from_dlib_rect(self, d_rect, image=None):
        """ Set Bounding Box from a Dlib Rectangle """
        logger.trace("Creating from dlib_rectangle: %s", d_rect)
        if not isinstance(d_rect, d_rectangle):
            raise ValueError("Supplied Bounding Box is not a dlib.rectangle.")
        self.x = d_rect.left()
        self.w = d_rect.right() - d_rect.left()
        self.y = d_rect.top()
        self.h = d_rect.bottom() - d_rect.top()
 </s> add     def from_bounding_box(self, bounding_box, image=None):
        """ Set Bounding Box from a BoundingBox """
        logger.trace("Creating from BoundingBox: %s", bounding_box)
        if not isinstance(bounding_box, BoundingBox):
            raise ValueError("Supplied Bounding Box is not a BoundingBox.")
        self.x = bounding_box.left
        self.w = bounding_box.width
        self.y = bounding_box.top
        self.h = bounding_box.height
        face = face.to_bounding_box()
      def alignment_dict(image):
          """ Set the image to a dict for alignment """
          height, width = image.shape[:2]
          face = DetectedFace(x=0, w=width, y=0, h=height)
        face = face.to_bounding_box()
          return {"image": image,
                  "detected_faces": [face]}
  
      @staticmethod
      def get_landmarks(filename):
keep keep keep keep replace keep keep keep keep keep
 Remove dlib.rectangles. Replace with BoundingBox class 
tools/sort.py