Closed mimus-assa closed 3 years ago
need to unify image folders for minimal number of folders
we can merge data, image, models and vid folders
the folder images should be separated by ANPR and FaVe
the folder images should be separated by ANPR and FaVe
for FaVe the folders are enrolleds, snap
the folder images should be separated by ANPR and FaVe
for ANPR we should have two folder
data_gen: letters_from_videos, mask(should be renamed as letter_segmentation), plate loc train
training: orignal_plate_loc, mask_plate_loc, original_char_seg, mask_char_seg, letters
this is done on the branch reorderfolders we just need to make script to create all folders if it does not exist.
this is done on the branch reorderfolders we just need to make script to create all folders if it does not exist.
https://djangocentral.com/check-if-a-directory-exists-if-not-create-it/
import os
list dir = ["data/models/dl/","data/images/ANPR/data_gen/letters_from_videos/" ,"data/images/ANPR/data_gen/mask","data/images/ANPR/data_gen/record_plates" "data/images/ANPR/data_gen/plate_loc/ ,"data/images/ANPR/training", "data/images/ANPR/training/letters", "data/images/ANPR/training/mask_char_seg", "data/images/ANPR/training/mask_plate_loc", "data/images/ANPR/training/original_char_seg", "data/images/ANPR/training/orignal_plate_loc", "data/images/FaVe/enrolleds", "data/images/FaVe/snap/1", "data/notebooks", "data/vids"]
for dir in list_dir:
CHECK_FOLDER = os.path.isdir(MYDIR)
if not CHECK_FOLDER:
os.makedirs(MYDIR)
the folders should be created on the first run, like after downloading and runing