akshaybahadur21 / Facial-Recognition-using-Facenet

A simple implementation of facial recognition using facenets for humans 🧔 🔍
MIT License
280 stars 143 forks source link

How to map 1000 images? #24

Closed parasjain-12 closed 3 years ago

parasjain-12 commented 5 years ago

In your code you are mapping the images manually but what if we have more than 1000 images how we will map then? Here is what you have done:

    if int(identity) <=4:
        return str('abc'), min_dist
    if int(identity) <=8:
        return str('xyz'), min_dist

If we have more than 1000 images of images it is not possible to map it according to that , Is there any other approach to do it. Please help

akshaybahadur21 commented 3 years ago

@parasjain-12 - Yes, using a map is naive and will not be able to scale. I would suggest using some sort of a search engine perhaps elastic search for faster retrieval. I haven't explored the possibilities though.