diff --git a/README.md b/README.md index 0691960..88054d8 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,11 @@ Deepface is a **hybrid** face recognition package. It currently wraps many **sta ```python models = ["VGG-Face", "Facenet", "Facenet512", "OpenFace", "DeepFace", "DeepID", "ArcFace", "Dlib"] + +#face verification result = DeepFace.verify(img1_path = "img1.jpg", img2_path = "img2.jpg", model_name = models[1]) + +#face recognition df = DeepFace.find(img_path = "img1.jpg", db_path = "C:/workspace/my_db", model_name = models[1]) ``` @@ -71,7 +75,11 @@ Similarity could be calculated by different metrics such as [Cosine Similarity]( ```python metrics = ["cosine", "euclidean", "euclidean_l2"] + +#face verification result = DeepFace.verify(img1_path = "img1.jpg", img2_path = "img2.jpg", distance_metric = metrics[1]) + +#face recognition df = DeepFace.find(img_path = "img1.jpg", db_path = "C:/workspace/my_db", distance_metric = metrics[1]) ``` @@ -145,19 +153,6 @@ The performance of RetinaFace is very satisfactory even in the crowd as seen in