Sunday, February 25, 2018

face recognition tool

1- install packagee
$ sudo pip3 install face_recognition libboost-all-dev libdlib-dev

2- download its package , it include some image for testing
https://github.com/ageitgey/face_recognition/archive/master.zip

3-  do the face recognition
- source vs unknown ,if the image in inside unknown has in source it will display the filename of  unknown image with the know file name


-example:
$ face_recognition  test_images/ unknown/
unknown/unknow.jpg,obama2
unknown/unknow.jpg,obama_partial_face
unknown/unknow.jpg,obama3
unknown/unknow.jpg,obama
unknown/unknow.jpg,obama_partial_face2
unknown/unknow.jpg,32bit



use 4 cpus
$ face_recognition --cpus 4 test_images/ unknown/

tolerant 54 percentage
$ face_recognition --tolerance 0.54  test_images/ unknown/

No comments:

Post a Comment