reconnaitre la tête des gens
🏠 Homepage
👤 Jules
- Github: @ripoul
Lunch the webcam and take a picture when pressing 'q'.
Let's try (in ./sample1
):
make
./main
Lunch the webcam and auto-detect if a human is here.
Let's try (in ./sample2
):
make
./main
Lunch the webcam and take a photo when q is pressed (10 times).
Let's try (in ./training
):
make
./main
Needed before try the example :
- several set of picture of the same resolution (10 images by set). Each set have to be on the same person. Only the head has to appear.
- you need to create a csv file with this format :
path/To/Img;numberOfTheSet
path/To/Img2;numberOfTheSet
path/To/Img3;numberOfTheSet
path/To/Img4;numberOfTheSet
- have a look to the
makefile
and let's play !
The main take 3 args :
- the path to the file to id the face (example :
/usr/share/opencv/haarcascades/haarcascade_frontalface_alt2.xml
) - the path to the csv file
- the id of the camera
Let's try (in ./recognition
):
make
convert p6.png -resize 92x112! p6.png
or- Or if all pictures are in the same folder, cd to this folder and execute :
for i in $(ls); do convert $i -resize 92x112! $i; done
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!