ntshvicky / FaceRecognitionAttendance

An Android as frontend and Python as backend face recognition app used on attendance management
40 stars 21 forks source link

How to make it work? #1

Open Maverick-2123 opened 1 year ago

Maverick-2123 commented 1 year ago

I am trying to use your application, I have trained the application with my face and have changed the IP address in android studio constantstring and in face_api fiile too. When I install the app and run the face_api, nothing is happening, it just creates a rectangle around my face and no attendance is being stored. Where will the attendance be stored?

ntshvicky commented 1 year ago

Check if data is coming on api..there is an api file name face_api.py …what response are you getting there..in face_api.py …you can save data in else…in line 68…else will execute when face will match with your trained dataset

ntshvicky commented 1 year ago

In detector activity in app code line 345… debug and check if there is any error or …check log.w

ntshvicky commented 1 year ago

For api, you can use another. Code for better response from https://github.com/ntshvicky/live-camera-streaming-attendance-management-system for this…attendee first need to register..with system webcam .. once.. after just register you can run training code internally then ..from mobile app..you need to post user face base64 image to api… in api.py line 57 function..create frame.. just you need to update base64 face image into numpy frame type and you can see there i have also written update attendance code.. just this file is working with flask wbcam not android.. you need to convert image face data as per this function

ntshvicky commented 1 year ago

If you will still face problem,,,write me ..i will update the code

Maverick-2123 commented 1 year ago

I am attaching the photo of what I see when running the API file

See what I am doing is:- 1) I used face_generate to generate my face 2) Then used face_train to train the knn model. 3) I checked my laptop ip using ipconfig and used the IPv4 address 4) Changed the same in Android web file 5) Installed app on my phone

I have connected the laptop and phone on same wifi. Do they need a wired connection? To run I am first opening the API file on laptop and keep it running, then opening the app on my phone which can detect my face. But nothing else is happening. Where will the attendance be marked? Please help me with this. Thanks a lot. I am attaching photos for your reference. If you need anything else. Do let me know.

On Wed, Mar 1, 2023, 22:07 Nitish Srivastava @.***> wrote:

For api, you can use another. Code for better response from

https://github.com/ntshvicky/live-camera-streaming-attendance-management-system for this…attendee first need to register..with system webcam .. once.. after just register you can run training code internally then ..from mobile app..you need to post user face base64 image to api… in api.py line 57 function..create frame.. just you need to update base64 face image into numpy frame type and you can see there i have also written update attendance code.. just this file is working with flask wbcam not android.. you need to convert image face data as per this function

— Reply to this email directly, view it on GitHub https://github.com/ntshvicky/FaceRecognitionAttendance/issues/1#issuecomment-1450454351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQQCOXZIL7GA53TW3RR2SM3WZ53LBANCNFSM6AAAAAAVLT7KF4 . You are receiving this because you authored the thread.Message ID: @.***>

ntshvicky commented 1 year ago

Check i have updated something in readme

Maverick-2123 commented 1 year ago

Thanks a lot Nitish, I'll check it out. Thanks a lot by the way. Regards Rishabh

On Wed, Mar 15, 2023, 02:03 Nitish Srivastava @.***> wrote:

Check i have updated something in readme

— Reply to this email directly, view it on GitHub https://github.com/ntshvicky/FaceRecognitionAttendance/issues/1#issuecomment-1468800582, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQQCOX2M6CU2G3JWB7QWBYTW4DIY7ANCNFSM6AAAAAAVLT7KF4 . You are receiving this because you authored the thread.Message ID: @.***>

SunilSDK commented 1 year ago

I want flutter solution for this api android is working well

ntshvicky commented 1 year ago

I want flutter solution for this api android is working well Try this - https://dev.to/yash_makan/face-recognition-app-in-flutter-using-tensorflowlite-google-ml-kit-nd3, Just send face frame data to api as we are doign here

tabteja commented 11 months ago

hiii I am getting error on web page

Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

what will be the issue

ntshvicky commented 11 months ago

Google Drive? By Mistake i deleted i think.. It just a video file..how to do