              # Pad the image if face is outside of boundaries
              image = self.pad_image(roi, face.image)
              face = image[roi[1]: roi[3], roi[0]: roi[2]]
  
              if face.shape[0] < self.input_size:
                  interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
              else:
                  interpolation = cv2.INTER_AREA  # pylint:disable=no-member
  
              face = cv2.resize(face,  # pylint:disable=no-member
                                dsize=(int(self.input_size), int(self.input_size)),
                                interpolation=interpolation)
              faces.append(face)
              rois.append(roi)
          return faces, rois
  
      @staticmethod
 
</s> remove         if face.shape[0] < self.input_size:
            interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
        else:
            interpolation = cv2.INTER_AREA  # pylint:disable=no-member

        face = cv2.resize(face,  # pylint:disable=no-member
                          dsize=(self.input_size, self.input_size),
                          interpolation=interpolation)
 </s> add         sizes = (self.input_size, self.input_size)
        interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
        face = cv2.resize(face, dsize=sizes, interpolation=interpolation) </s> remove         if face.shape[0] < self.input_size:
            interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
        else:
            interpolation = cv2.INTER_AREA  # pylint:disable=no-member

        face = cv2.resize(face,  # pylint:disable=no-member
                          dsize=(self.input_size, self.input_size),
                          interpolation=interpolation)
 </s> add         sizes = (self.input_size, self.input_size)
        interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
        face = cv2.resize(face, dsize=sizes, interpolation=interpolation) </s> remove         blob = cv2.dnn.blobFromImage(face[..., :3],  # pylint: disable=no-member
 </s> add         blob = cv2.dnn.blobFromImage(face[..., :3], </s> remove         interpln = cv2.INTER_CUBIC if scale > 1.0 else cv2.INTER_AREA  # pylint:disable=no-member
 </s> add         interpln = cv2.INTER_CUBIC if scale > 1.0 else cv2.INTER_AREA
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
              # Pad the image if face is outside of boundaries
              image = self.pad_image(roi, face.image)
              face = image[roi[1]: roi[3], roi[0]: roi[2]]
  
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
            interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
              faces.append(face)
              rois.append(roi)
          return faces, rois
  
      @staticmethod
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 # pylint:disable=no-member cleanup (#927)

# pylint:disable=no-member cleanup 
plugins/extract/align/cv2_dnn.py