exadel-inc / CompreFace

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

Automatic user creation and generation of API keys #1035

Open zroger49 opened 1 year ago

zroger49 commented 1 year ago

Hello CompreFace authors. Let me begin by telling you how much of an amazing work you have done. I have performed a small benchmark comparing this to another face recognition software and the results really surprised me a lot!

I am now in the process of making a custom component for homeassistant using CompreFace (Maybe this is something you are interested as well?). I would like to distribute the custom component + the docker-compose in a format in which the user does not have to setup the application in your frontend. Is there any automatic to do the setup in an automatic fashion (create account, applications and generate API keys?)

pospielov commented 1 year ago

Hello I thought there was already an HA plugin for CompreFace. Not sure, I didn't use HA and didn't create it by myself. But I'm always happy when somebody integrates CompreFace somewhere, so I'm ready to help. By default, CompreFace has three "demo" services: Face recognition service: 00000000-0000-0000-0000-000000000002 Face detection service: 00000000-0000-0000-0000-000000000003 Face verification service: 00000000-0000-0000-0000-000000000004 The only problem is that the Face recognition service has 10 predefined images in it. Do you have the ability to clean them when you start your custom component using REST API?

zroger49 commented 1 year ago

Hello I thought there was already an HA plugin for CompreFace. Not sure, I didn't use HA and didn't create it by myself. But I'm always happy when somebody integrates CompreFace somewhere, so I'm ready to help. By default, CompreFace has three "demo" services: Face recognition service: 00000000-0000-0000-0000-000000000002 Face detection service: 00000000-0000-0000-0000-000000000003 Face verification service: 00000000-0000-0000-0000-000000000004 The only problem is that the Face recognition service has 10 predefined images in it. Do you have the ability to clean them when you start your custom component using REST API?

Hi. Yes, there is already a HA add-on for compreface, but it due to my type of installation I am unable to use it. I am currently creating a new custom_component (Its already operational, though it needs some work)

Yes, I can easily delete the 10 faces when I start my installation through a script. Are the face and the API keys stored somewhere? I noticed since there is a compreface-postgres-db docker container running

pospielov commented 1 year ago

Yes, you correctly noticed we store it in this container.