exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.72k stars 776 forks source link

Any existing logic / recommendation to search a face in multiple images at a time? #1010

Open chhkg opened 1 year ago

chhkg commented 1 year ago

We would like to search a face in thousands of photos at a time. Is there any existing logic or recommendation to make this progress as fast as possible? Thanks.

pospielov commented 1 year ago

https://github.com/exadel-inc/compreface-javascript-sdk/tree/main/face_founder_demo we have a very similar demo The main idea - you upload images to faces collection. But use file names as subject, not a person name. Then search among those subjects.

chhkg commented 1 year ago

Thanks for your reply. I tried the demo but it seems that it cannot detect any face in any photos. Also, may I clarify that the output is supposed to be all photos containing the target face, or just the one photo with the highest similarity?

chhkg commented 1 year ago

The reason I am asking is because I would like the output to return all photos that contains the target face. Thanks.

pospielov commented 1 year ago

Not sure why you have a such error in this demo. I described the idea, and you can see the demo code just to understand the idea better. The output will be not photos, but photos names. You can use the prediction_count param to define the maximum number of returned names, or just set it to -1 to return all. You will still need to use similarity field in the result to make a decision if it's high enough to say that the person is on the photo