import cv2
import face_recognition

img = cv2.imread("<NAME>.jpeg")
rgb_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img_encoding = face_recognition.face_encodings(rgb_img)[0]

img2 = cv2.imread("images/<NAME>.jpeg")
rgb_img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2RGB)
img_encoding2 = face_recognition.face_encodings(rgb_img2)[0]

result = face_recognition.compare_faces([img_encoding], img_encoding2)
print(f'Result: {result}')

cv2.imshow("Img", img)
cv2.imshow("Img 2", img2)
cv2.waitKey(0)
cv2.destroyAllWindows()
cv2.waitKey(1)

import cv2
import face_recognition

img = cv2.imread("<NAME>.jpeg")
rgb_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img_encoding = face_recognition.face_encodings(rgb_img)[0]

img2 = cv2.imread("images/<NAME>.jpeg")
rgb_img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2RGB)
img_encoding2 = face_recognition.face_encodings(rgb_img2)[0]

result = face_recognition.compare_faces([img_encoding], img_encoding2)
print(f'Result: {result}')

cv2.imshow("Img", img)
cv2.imshow("Img 2", img2)
cv2.waitKey(0)
cv2.destroyAllWindows()
cv2.waitKey(1)
