compreface-python-sdk icon indicating copy to clipboard operation
compreface-python-sdk copied to clipboard

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

Open Jean-Jerome-Casalonga-i2 opened this issue 2 years ago • 1 comments

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.

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.

pospielov avatar Oct 25 '22 15:10 pospielov