vudung45 / FaceRec

A Tensorflow implementation of Facial Recognition in Python
227 stars 126 forks source link

How to increase distance between webcam and face? #33

Open rosebella18 opened 5 years ago

rosebella18 commented 5 years ago

i have to keep my webcam very near to me to detect or recognize. Can u help with any solution to this where webcam distance from face can be increased?

Firdauzfan commented 5 years ago

Try to change code rects, landmarks = face_detect.detect_face(frame,80) to rects, landmarks = face_detect.detect_face(frame,30) .

It will detect face not in very near distance.

rosebella18 commented 5 years ago

Thank you firdauzfan

Lachi123 commented 5 years ago

Can it detect from 5 meters distance with full HD camera? Can you please share settings for long distance detection

On Wed 21 Nov, 2018, 14:05 rosebella18 <notifications@github.com wrote:

Thank you firdauzfan

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vudung45/FaceRec/issues/33#issuecomment-440579926, or mute the thread https://github.com/notifications/unsubscribe-auth/ApcyxfwFRr2PJHQsV9Ye3xy75QSyNvvKks5uxRBFgaJpZM4YaRmW .

Firdauzfan commented 5 years ago

It's depend on your specification of your camera. If you use IP Camera with specification like 2 mp, 4mm lens , it can detect 3 until 5 meters distance.

Lachi123 commented 5 years ago

Thank you . It's NF-9010R : 12MP 360˚ Fisheye Camera

I would like to set for above camera. Expecting min 5 meters long and how many person it can detect in a frame

On Fri 23 Nov, 2018, 14:12 Firdauz Fanani <notifications@github.com wrote:

It's depend on your specification of your camera. If you use IP Camera with specification like 2 mp, 4mm lens , it can detect 3 until 5 meters distance.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vudung45/FaceRec/issues/33#issuecomment-441181219, or mute the thread https://github.com/notifications/unsubscribe-auth/ApcyxbVo7NzvibtWQsD58xMN8Idjkd6Oks5ux7T8gaJpZM4YaRmW .

vudung45 commented 5 years ago

@rosebella18 This will degrade performance, but you can adjust the scale_factor for face_detector object to increase the range of detection. The best practice is to get a better camera.

rosebella18 commented 5 years ago

Thank you @vudung45