From badc4d4dc64b571df7c61991bed2950e1e516d8d Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sun, 11 Apr 2021 14:02:00 +0300 Subject: [PATCH] represent function --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5b179fe..b9ac700 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,12 @@ Euclidean L2 form [seems](https://youtu.be/i_MOwvhbLdI) to be more stable than c

+The question is that where to store facial representations. You can find vector embeddings of facial images with the represent function. + +```python +embedding = DeepFace.represent("img.jpg", model_name = 'Facenet') +``` + Recommended tech stack for face verification is mainly based on [relational databases and regular SQL](https://sefiks.com/2021/02/06/deep-face-recognition-with-sql/) or key-value stores such as [Redis](https://sefiks.com/2021/03/02/deep-face-recognition-with-redis/) or [Cassandra](https://sefiks.com/2021/01/24/deep-face-recognition-with-cassandra/). Herein, key-value stores overperform than regular relational databases. Face verification is a subset of face recognition. In other words, you can run any face verification tool for face recognition as well. However, face verification has O(1) and face recognition has O(n) time complexity. That's why, face recognition becomes problematic with regular face verification tools on millions/billions level data and limited hardware.