              box = (det_face.left,
                     det_face.top,
                     det_face.right,
                     det_face.bottom)
              diff_height_width = det_face.h - det_face.w
              offset_y = int(abs(diff_height_width / 2))
              box_moved = self.move_box(box, [0, offset_y])
              # Make box square.
              roi = self.get_square_box(box_moved)
  
 
</s> remove         logger.trace("Returning: %s", roi)
 </s> add         logger.trace("Returning: %s", roi)  # type: ignore </s> remove             y_center = (face.top + face.bottom) / 2.0 - face.h * 0.12
            scale = (face.w + face.h) * self.reference_scale
 </s> add             y_center = (face.top + face.bottom) / 2.0 - face.height * 0.12
            scale = (face.width + face.height) * self.reference_scale </s> remove         logger.trace("kernel_size: %s", kernel_size)
 </s> add         logger.trace("kernel_size: %s", kernel_size)  # type: ignore </s> remove             size = ((roi[1][0] - roi[0][0]) ** 2 +  # pylint:disable=unsubscriptable-object
                    (roi[1][1] - roi[0][1]) ** 2) ** 0.5  # pylint:disable=unsubscriptable-object
 </s> add             size = ((roi[1][0] - roi[0][0]) ** 2 + (roi[1][1] - roi[0][1]) ** 2) ** 0.5 </s> remove                 face.x, face.y, face.w, face.h = box
 </s> add                 face.left, face.top, face.width, face.height = box
            diff_height_width = det_face.height - det_face.width
              box = (det_face.left,
                     det_face.top,
                     det_face.right,
                     det_face.bottom)
            diff_height_width = det_face.height - det_face.width
              offset_y = int(abs(diff_height_width / 2))
              box_moved = self.move_box(box, [0, offset_y])
              # Make box square.
              roi = self.get_square_box(box_moved)
  
keep keep keep keep replace keep keep keep keep keep
 lib.align updates:
  - alignments.py
    - Add typed dicts for imported alignments
    - Explicitly check for presence of thumb value in alignments dict
    - linting
  - detected_face.py
    - Typing
    - Linting
    - Legacy support for pre-aligned face
    - Update dependencies to new property names 
plugins/extract/align/cv2_dnn.py