          image_center = (width/2, height/2)
          rotation_matrix = cv2.getRotationMatrix2D(image_center, -1.*angle, 1.)
          rotation_matrix[0, 2] += self.input_size / 2 - image_center[0]
          rotation_matrix[1, 2] += self.input_size / 2 - image_center[1]
          logger.trace("Rotated image: (rotation_matrix: %s", rotation_matrix)  # type:ignore
          image = cv2.warpAffine(image, rotation_matrix, (self.input_size, self.input_size))
          if channels_first:
              image = np.moveaxis(image, 2, 0)
  
          return image, rotation_matrix
 
</s> remove         logger.trace("Detector scale: %s", scale)  # type:ignore
 </s> add         logger.trace("Detector scale: %s", scale)  # type:ignore[attr-defined] </s> remove         logger.trace("Rotating image: (image: %s, angle: %s)",  # type:ignore
 </s> add         logger.trace("Rotating image: (image: %s, angle: %s)",  # type:ignore[attr-defined] </s> remove         logger.trace("compiled: (images shape: %s, scale: %s, pad: %s)",  # type:ignore
 </s> add         logger.trace("compiled: (images shape: %s, "  # type:ignore[attr-defined]
                     "scale: %s, pad: %s)", </s> remove         logger.trace("Resized image shape: %s", image.shape)  # type:ignore
 </s> add         logger.trace("Resized image shape: %s", image.shape)  # type:ignore[attr-defined] </s> remove             logger.trace("Resizing detection image from %s to %s. Scale=%s",  # type:ignore
 </s> add             logger.trace("Resizing detection image from %s to %s. "  # type:ignore[attr-defined]
                         "Scale=%s",
        logger.trace("Rotated image: (rotation_matrix: %s",  # type:ignore[attr-defined]
                     rotation_matrix)
          image_center = (width/2, height/2)
          rotation_matrix = cv2.getRotationMatrix2D(image_center, -1.*angle, 1.)
          rotation_matrix[0, 2] += self.input_size / 2 - image_center[0]
          rotation_matrix[1, 2] += self.input_size / 2 - image_center[1]
        logger.trace("Rotated image: (rotation_matrix: %s",  # type:ignore[attr-defined]
                     rotation_matrix)
          image = cv2.warpAffine(image, rotation_matrix, (self.input_size, self.input_size))
          if channels_first:
              image = np.moveaxis(image, 2, 0)
  
          return image, rotation_matrix
keep keep keep keep replace keep keep keep keep keep
 bugfix: Extract - rotation in detection 
plugins/extract/detect/_base.py