This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
from scipy.spatial.distance import pdist,squareform | |
from matplotlib import pyplot as plt | |
from skimage.transform import resize | |
if __name__=='__main__': | |
picture_with_face_path=r'IlanAtCampNou.jpg' | |
video_path=r'Hightechzone_video.mp4' | |
face_cascade1 = cv2.CascadeClassifier(r'lbpcascade_frontalface_improved.xml') | |
face_cascade2=cv2.CascadeClassifier(r'haarcascade_frontalface_default.xml') |