face recognition test

This commit is contained in:
Sefik Ilkin Serengil 2020-03-23 09:06:27 +03:00 committed by GitHub
parent d75e371035
commit 86e1575f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ result = DeepFace.verify("img1.jpg", "img2.jpg")
print("Is verified: ", result["verified"])
```
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/tests/dataset/test-case-4.jpg" width="95%" height="95%"></p>
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/tests/dataset/test-case-5.jpg" width="95%" height="95%"></p>
Each call of verification function builds a face recognition model from scratch and this is a costly operation. If you are going to verify multiple faces sequentially, then you should pass an array of faces to verification function to speed the operation up. In this way, complex face recognition models will be built once.