from cv2 import VideoCapture from face_recognition import * own_image=load_image_file(VideoCapture(0)) unknown_image=load_image_file("unknown.jpg") own_encoding=face_encodings(own_image)[0] unknown_encoding=face_encodings(unknown_image)[0] results=compare_faces([own_encoding], unknown_encoding) if results[0]: print("yes") else: print("no")