diff --git a/README.md b/README.md index 7e50f15..78d80aa 100644 --- a/README.md +++ b/README.md @@ -321,13 +321,26 @@ calculated_similarity = cs.decrypt(encrypted_cosine_similarity)[0] # verification print("same person" if calculated_similarity >= 1 - threshold else "different persons") - -# proof of work -assert abs(calculated_similarity - sum(x * y for x, y in zip(alpha, beta))) < 1e-2 ``` In this scheme, we leverage the computational power of the cloud to compute encrypted cosine similarity. However, the cloud has no knowledge of the actual calculations it performs. That's the **magic** of homomorphic encryption! Only the secret key holder on the on-premises side can decrypt the encrypted cosine similarity and determine whether the pair represents the same person or different individuals. Check out [`LightPHE`](https://github.com/serengil/LightPHE) library to find out more about partially homomorphic encryption. +### Extended Applications + +DeepFace can also be used for fun and insightful applications such as + +**Find Your Celebrity Look-Alike** - [`Demo`](https://youtu.be/jaxkEn-Kieo), [`Real-Time Demo`](https://youtu.be/RMgIKU1H8DY), [`Tutorial`](https://sefiks.com/2019/05/05/celebrity-look-alike-face-recognition-with-deep-learning-in-keras/) + +DeepFace can analyze your facial features and match them with celebrities, letting you discover which famous personality you resemble the most. + +