          with the variance of the Laplacian.
          Normalize by pixel number to offset the effect
          of image size on pixel gradients & variance
          """
          image = cv2.imread(image_file)
          if image.ndim == 3:
              image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
          blur_map = cv2.Laplacian(image, cv2.CV_32F)
          score = np.var(blur_map) / np.sqrt(image.shape[0] * image.shape[1])
          return score
 
</s> remove         Estimate the amount of blur an image has
        with the variance of the Laplacian.
        Normalize by pixel number to offset the effect
        of image size on pixel gradients & variance
 </s> add         Estimate the amount of blur an image has with the variance of the Laplacian.
        Normalize by pixel number to offset the effect of image size on pixel gradients & variance </s> remove         image = cv2.imread(self.images["a"][0])  # pylint: disable=no-member
 </s> add         image = cv2_read_img(self.images["a"][0], raise_error=True) </s> remove         image = cv2.imread(filename)
 </s> add         image = cv2_read_img(filename, raise_error=True) </s> remove         preds = np.array([self.vgg_face.predict(cv2.imread(img))
 </s> add         preds = np.array([self.vgg_face.predict(cv2_read_img(img, raise_error=True)) </s> remove             temp_list = [[img, self.estimate_blur(cv2.imread(img))]
 </s> add             temp_list = [[img, self.estimate_blur(cv2_read_img(img, raise_error=True))]
        image = cv2_read_img(image_file, raise_error=True)
          with the variance of the Laplacian.
          Normalize by pixel number to offset the effect
          of image size on pixel gradients & variance
          """
        image = cv2_read_img(image_file, raise_error=True)
          if image.ndim == 3:
              image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
          blur_map = cv2.Laplacian(image, cv2.CV_32F)
          score = np.var(blur_map) / np.sqrt(image.shape[0] * image.shape[1])
          return score
keep keep keep keep replace keep keep keep keep keep
 Centralize cv2 image reading and handle bad filenames 
tools/sort.py