face_rec icon indicating copy to clipboard operation
face_rec copied to clipboard

How do we add our own dataset?

Open HarshAggarwal opened this issue 4 years ago • 2 comments

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

HarshAggarwal avatar Apr 19 '20 21:04 HarshAggarwal

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 avatar May 08 '20 07:05 yusra-shaikh

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!

yusra-shaikh avatar May 08 '20 08:05 yusra-shaikh