jordanvaneetveldt / face_rec

An eye-blink detection-based face liveness detection algorithm to thwart photo attacks.
101 stars 70 forks source link

How do we add our own dataset? #6

Open HarshAggarwal opened 4 years ago

HarshAggarwal commented 4 years ago

I want to use this recognizer for attendance system. How do we add faces as dataset?

yusra-shaikh commented 4 years ago

I have the same doubt. Where to place the images. i receive this message:

[LOG] Collecting images ... 0it [00:00, ?it/s] [LOG] Encoding faces ... 0it [00:00, ?it/s]

and then after blinking, the program detects me as unknown. It's not training on the images.

yusra-shaikh commented 4 years ago

I was able to solve the issue. just place your images in a folder with your name, and then put that folder inside a "faces" folder. so the directory will look something like this:

face_rec-master ----dataset --------train --------val ----faces --------your-name --------someone-elses-name ----eye_status.py ----face_rec.py ----xml files

hipe this helps!