  import logging
  
  import numpy as np
  
  from dlib import rectangle as d_rectangle  # pylint: disable=no-name-in-module
  from lib.aligner import Extract as AlignerExtract, get_align_mat, get_matrix_scaling
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
 
</s> remove from ._base import Detector, dlib, logger
 </s> add from ._base import BoundingBox, Detector, logger </s> remove import dlib
 </s> add  </s> remove from lib.faces_detect import DetectedFace
 </s> add from lib.faces_detect import BoundingBox, DetectedFace </s> remove from ._base import Detector, dlib, logger
 </s> add from ._base import BoundingBox, Detector, logger </s> remove from ._base import cv2, Detector, dlib, logger
 </s> add from ._base import BoundingBox, cv2, Detector, logger
  import logging
  
  import numpy as np
  

  from lib.aligner import Extract as AlignerExtract, get_align_mat, get_matrix_scaling
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
keep keep keep keep replace keep keep keep keep keep
 Remove dlib.rectangles. Replace with BoundingBox class 
lib/faces_detect.py