ShahkarHassan / SMART-CROWD-ANALYZER

This is my Final year project in UET LAHORE.
MIT License
3 stars 0 forks source link

Implementation of Facial recognition . #5

Closed ShahkarHassan closed 4 years ago

ShahkarHassan commented 4 years ago

Implement the code of Facial recognition on your own pictures / Real time.

ShahkarHassan commented 4 years ago

Implemented the Code which gave Good output. This real time application is working on One shot . Got some idea of real time application. Now the models generated in last Closed issue "INITIAL CODING OF FACIAL RECOGNITION" would be used and the real time analysis would be done in coming week. image

The additional features such as Attendance , Staff exclusion would be considered as side outputs in coming week while the output giving age , gender ,emotion by our own models will be the main feature.

As Mehrunisa is working on Deepface , And i am working on another code. The Better of Both would be used in our project and then we will adjust that according to our need .With appropriate camera distancing and all.

ShahkarHassan commented 4 years ago

Outputs accuracy of that code is listed below: Gender age: g_a Emotion loss: L_e Accuracy: Screenshot from 2020-07-26 00-26-33

and Model used: Screenshot from 2020-07-26 01-34-02

MeharunisaAshraf commented 4 years ago

Deepface uses one of these 4 face recognition models , Or the "Ensemble" which is average of all 4 models. I implemented all 4 models on deepface but the results were not satisfactory . The dataset is of 1.5 gb and is working as desired but when it comes to female , It doesnt work on our faces . As dataset consists of data of foreigner's faces. Either we will add our own dataset in coming week or will work on the model made by Shahkar .

image

The output example :

image

As it is image of female but giving male as output. while emotion and gender are right.

We have two options either to add dataset in this or to use another model which is editable and long . But this deepface is built in and not easy to change. All 4 models were tested and each having same problem.

MeharunisaAshraf commented 4 years ago

We have one more possibility of adding our own gender model in it along with the emotion and age model of Deepface . Thats the task of coming week.