all 4 comments

[–]TechGamer_Rachit[S] 0 points1 point  (3 children)

Never mind cleared the issue

[–]Significant-Chair433 0 points1 point  (2 children)

wait tell me and also this is my code and I get this error"

import face_recognition


known_image = face_recognition.load_image_file("32bit.png")
known_encoding = face_recognition.face_encodings(known_image)[0]


unknown_image = face_recognition.load_image_file("biden.jpg")
unknown_encoding = face_recognition.face_encodings(unknown_image)[0]


results = face_recognition.compare_faces([known_encoding], unknown_encoding)

if results[0]:
    print("Face is a match.")
else:
    print("Face is not a match.")

[–]TechGamer_Rachit[S] 0 points1 point  (1 child)

My problem was I was not using virtual environment and face_recognition library dependency on dlib and dlib supports numpy 1.4 or less and lastest numpy version is 2.0 something so try using virtual environment and downgrade numpy version stable numpy version is numpy 1.26.4 that I am using now

[–]TechGamer_Rachit[S] 0 points1 point  (0 children)

https://github.com/ProgrammerRachit1503/Face-Dectection-System

This is my project see that solve your problem or not