Spaces:
Sleeping
Sleeping
Commit ·
41af0b6
1
Parent(s): 2fd8c7c
exp rec code
Browse files
app/Hackathon_setup/face_recognition.py
CHANGED
|
@@ -99,7 +99,6 @@ def get_face_class(img1):
|
|
| 99 |
det_img1 = detected_face(img1)
|
| 100 |
if(det_img1 == 0):
|
| 101 |
det_img1 = Image.fromarray(cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY))
|
| 102 |
-
return "please upload a valid face"
|
| 103 |
##YOUR CODE HERE, return face class here
|
| 104 |
##Hint: you need a classifier finetuned for your classes, it takes o/p of siamese as i/p to it
|
| 105 |
##Better Hint: Siamese experiment is covered in one of the labs
|
|
|
|
| 99 |
det_img1 = detected_face(img1)
|
| 100 |
if(det_img1 == 0):
|
| 101 |
det_img1 = Image.fromarray(cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY))
|
|
|
|
| 102 |
##YOUR CODE HERE, return face class here
|
| 103 |
##Hint: you need a classifier finetuned for your classes, it takes o/p of siamese as i/p to it
|
| 104 |
##Better Hint: Siamese experiment is covered in one of the labs
|