Open Bhumika79 opened 1 year ago
Hello @Bhumika79, Thank you for generating an issue to this project! Please wait while we get back to you.
Sounds interesting, would like to contribute to this together... So please assign it to me combined.. @akshitagupta15june @072arushi
@Bhumika79 can we discuss on this..
@Ayushlion8 yes we can discuss the same here.
@Bhumika79 So, what should be the roadmap for this project like what all libraries we'll be using and all that stuff... Let's divide the work and finish it fast :)
@Ayushlion8 I have done some research, and the roadmap will be like that, also I have mentioned some code snippets to provide a general outline of how the libraries can be used for different tasks.
image = cv2.imread("image.jpg")
rgb_image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
face_locations = face_recognition.face_locations(rgb_image)
face_landmarks = face_recognition.face_landmarks(rgb_image, face_locations) ort cv2 import dlib import face_recognition
image = cv2.imread("image.jpg")
rgb_image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
face_locations = face_recognition.face_locations(rgb_image)
face_landmarks = face_recognition.face_landmarks(rgb_image, facelocations)
_import face_recognition from sklearn.metrics.pairwise import euclidean_distances
face_encodings = face_recognition.face_encodings(rgb_image, face_locations)
distances = euclidean_distances(face_encodings, knownencodings)
_from sklearn.svm import SVC from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(face_encodings, labels, test_size=0.2)
svm = SVC() svm.fit(X_train, y_train)
accuracy = svm.score(X_test, ytest)
Testing and Evaluation: Evaluate the trained model using accuracy, precision, recall, and F1-score metrics.
Deployment and Integration: Integrate the facial recognition functionality into the Face-X project, such as creating an API endpoint.
When two faces are recognized they can be compared on the basis of facial features, this can also be used for comparing a face without a mask and a face with a mask in the case of security, attendance aspects etc.