You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(x.left()-30) + 112, (x.top()-40) + 112) for x in detected_faces] #x.right(), x.bottom()
'''
# code below parses the given folders' subfolders and taking each input crops individual person
forfolderiinos.listdir(dataset_dir):
folder=dataset_dir+'/'+folderi
print(dataset_dir+'/'+folderi)
target_folder=target_dir+'/'+folderi
print(target_folder)
try:
os.mkdir(target_folder)
except:
print('Directory ', folderi, ' exists')
forimageinos.listdir(folder):
print(image)
# Load image
img_path=folder+'/'+image# getting an image from current folder and cropping faces from it '/home/ti/Downloads/crop_and_find/faces/bekmurat_anarbayev/BrX4cAgDlX_.jpg'