              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)
          image = cv2.warpAffine(image,  # pylint: disable=no-member
                                 rotation_matrix,
                                 (self.input_size, self.input_size))
          if channels_first:
              image = np.moveaxis(image, 2, 0)
  
          return image, rotation_matrix
 
</s> remove         rotation_matrix = cv2.getRotationMatrix2D(  # pylint: disable=no-member
            image_center, -1.*angle, 1.)
 </s> add         rotation_matrix = cv2.getRotationMatrix2D(image_center, -1.*angle, 1.) </s> remove             image = cv2.copyMakeBorder(image,  # pylint:disable=no-member
 </s> add             image = cv2.copyMakeBorder(image, </s> remove             bottom += abs(top)
            top += abs(top)
 </s> add             shift_down = abs(top)
            bottom += shift_down
            top += shift_down </s> remove         font = cv2.FONT_HERSHEY_SIMPLEX  # pylint: disable=no-member
 </s> add         font = cv2.FONT_HERSHEY_SIMPLEX </s> remove             points = np.array(prediction).flatten()
            points = np.reshape(points, (-1, 2))
 </s> add             points = np.reshape(prediction, (-1, 2))
        image = cv2.warpAffine(image, rotation_matrix, (self.input_size, self.input_size))
              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)
        image = cv2.warpAffine(image, rotation_matrix, (self.input_size, self.input_size))
        image = cv2.warpAffine(image, rotation_matrix, (self.input_size, self.input_size))
        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 replace replace keep keep keep keep
 # pylint:disable=no-member cleanup (#927)

# pylint:disable=no-member cleanup 
plugins/extract/detect/_base.py