  from lib.faces_detect import DetectedFace
  from lib.logger import get_loglevel
  from lib.vgg_face import VGGFace
  from plugins.extract.pipeline import Extractor
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
 
</s> remove import cv2

 </s> add  </s> remove from lib.utils import _image_extensions, _video_extensions, hash_image_file, hash_encode_image
 </s> add from lib.utils import (_image_extensions, _video_extensions, cv2_read_img, hash_image_file,
                       hash_encode_image) </s> remove from lib.utils import (get_folder, get_image_paths, set_system_verbosity)
 </s> add from lib.utils import cv2_read_img, get_folder, get_image_paths, set_system_verbosity </s> remove from lib.utils import (camel_case_split, get_folder, get_image_paths,
 </s> add from lib.utils import (camel_case_split, cv2_read_img, get_folder, get_image_paths,
from lib.utils import cv2_read_img

  from lib.faces_detect import DetectedFace
  from lib.logger import get_loglevel
  from lib.vgg_face import VGGFace
from lib.utils import cv2_read_img
  from plugins.extract.pipeline import Extractor
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
keep keep add keep keep keep keep
 Centralize cv2 image reading and handle bad filenames 
lib/face_filter.py