          interpln = cv2.INTER_LINEAR if scale > 1.0 else cv2.INTER_AREA
          dims = (int(width * scale), int(height * scale))
  
          if scale < 1.0:
              logger.verbose("Resizing image from %sx%s to %s.",
                             width, height, "x".join(str(i) for i in dims))
  
          image = cv2.resize(image, dims, interpolation=interpln)
          return image
  
      # <<< IMAGE ROTATION METHODS >>> #
 
</s> remove # Add a flag to logging.LogRecord to not strip formatting from particular records
old_factory = logging.getLogRecordFactory()


 </s> add old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name </s> remove     log_console = logging.StreamHandler(sys.stdout)
 </s> add     log_console = TqdmHandler(sys.stdout)
            logger.trace("Resizing image from %sx%s to %s.",
                         width, height, "x".join(str(i) for i in dims))
          interpln = cv2.INTER_LINEAR if scale > 1.0 else cv2.INTER_AREA
          dims = (int(width * scale), int(height * scale))
  
          if scale < 1.0:
            logger.trace("Resizing image from %sx%s to %s.",
                         width, height, "x".join(str(i) for i in dims))
            logger.trace("Resizing image from %sx%s to %s.",
                         width, height, "x".join(str(i) for i in dims))
  
          image = cv2.resize(image, dims, interpolation=interpln)
          return image
  
      # <<< IMAGE ROTATION METHODS >>> #
keep keep keep keep replace replace keep keep keep keep keep
 Use tqdm.write for StreamLogger. Reduce extract resize loglevel. 
plugins/extract/detect/_base.py