exadel-inc / compreface-python-sdk

Python SDK for CompreFace - free and open-source face recognition system from Exadel
https://exadel.com/solutions/compreface/
Apache License 2.0
111 stars 39 forks source link

Question : How can I check if a Subject already exist in the database ? #16

Open Jean-Jerome-Casalonga-i2 opened 1 year ago

Jean-Jerome-Casalonga-i2 commented 1 year ago

Hi, How can I check that a Subject already exists in the databse, using its subject value ?

The idea is that I only want to add in the database new persons. So, before I do an Add, I'd like to test if the DB contains this Subject or not. I couldn't find a method for this (apart from loading the full DB with recognition.get_face_collection() , and then using this locally).

Thanks a lot for your help.

pospielov commented 1 year ago

CompreFace doesn't support it now. As a workaround, you can store the list of subjects externally. Another workaround - use the method List Subjects that will return all subjects and then do a search locally.