-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: DeepStack Face Recognition Support #139
Comments
This would be a good piece of functionality to add. I could probably add something like this to avoid a breaking change to {
"Name": "Example2",
"Types": [ "Car", "Truck" ],
"Faces": [ "Bob", "Dave", "Karen"],
"Threshold": 75
}, Then when Types is specified, it uses the standard AI end point and when Faces is specified it uses the Faces end point. I'm writing this blindly though as I've not looked at the faces API much, but I'm sure it's doable. I'd probably aim to get #117 finished first though before making any further changes on the AI side. |
That's fair on 117! Good call on the Faces thing too. I may try to just write it up and submit a PR for you if I've got time! |
This would be a cool feature. If the intent is to also support multiple AIs (custom DeepStack, Coral, .etc) as in #117, the configuration might need to be refactored in a breaking way. It might be good to move assumptions on AI stack out of the camera config and instead create multiple AI configs that include connection info as well as parameters. These configs could then be referenced by name in the camera configs. |
Yep, exactly. I'm part of the way through this work. It's going to be a breaking change, so I also want to time it with how notifications are referenced (instead of saying which cameras notifications are for, I'm changing it so the cameras say which notifications they want). |
Here's me thinking this would already support this, I went into ENV variables and added "VISION-FACE=True", recognized and registered my face with Deepstack, no wonder why it wasn't working, should've checked here first. facepalm but yeah this would be a great feature to have. Also does SynoAI support the environment variable mode anything higher than low? |
It would be pretty cool (and I think fairly simple) to add support for DeepStack's face recognition into SynoAI.
How I would do it (roughly):
Add "Face" as an option somewhere. Maybe a detection type like Car or Person? Doesnt really matter, you just want to get the flag set that people want it.
Then create a Path variable for face detection in Config.cs like
public static string AIRecognizePath { get; private set; }
Then in the same file when you set the AIPath you can set the new AIRecognizePath like
AIRecognizePath = aiSection.GetValue<string>("Path","v1/vision/face/recognize");
Then just call the recognize API only if face is set, and return the results just like you do for normal object detection.
The text was updated successfully, but these errors were encountered: