Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live detection #13

Open
sai0905 opened this issue Jun 18, 2020 · 3 comments
Open

live detection #13

sai0905 opened this issue Jun 18, 2020 · 3 comments

Comments

@sai0905
Copy link

sai0905 commented Jun 18, 2020

Hello,

It s recognizing the faces from the phone also. To do real time recognition what we have to. plz suggest that.

Thanks

@tamerthamoqa
Copy link
Owner

Hi sai0905,

You would first need to install an IP camera stream application on the phone then connect it to the same network the server would be using and start either an HTTP or RTSP stream from the mobile phone using the application.

Then replace the default '0' parameter of the cv2.VideoCapture() object instantiation code in 'server.py' in the function responsible for real-time face recognition with the url of your mobile phone camera stream url, the url format would depend on the streaming protocol you are using and the application should show you the url you have to use to access your stream.

@sai0905
Copy link
Author

sai0905 commented Jun 18, 2020

Thank you for ur response. Can we implement eye blink here.

@tamerthamoqa
Copy link
Owner

tamerthamoqa commented Jun 18, 2020

No, eye blink detection is not available in this repository as the MTCNN face detection model I am using does not detect eye landmarks.

This blog post will be helpful since it helped me play around with this concept, using eye blinks as a validation for liveliness detection (making sure the face is of a real human) proved to be tricky and highly dependent on the distance of the face from the camera. I suppose using a mobile phone stream may be a lot better than an IP camera for this task:
https://www.pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants