get_all_file_names_from_dir didnt need module pref
Handling case when cv2 is cannot be imported.