Skip to content
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

Ability to run classification models, for example to recognize state if gate is open/closed #16163

Open
michalsrb opened this issue Jan 27, 2025 · 0 comments
Labels
enhancement New feature or request pinned

Comments

@michalsrb
Copy link

michalsrb commented Jan 27, 2025

Describe what you are trying to accomplish and why in non technical terms
I understand this may be out of scope for Frigate, but it would be useful feature for me.

I would like to be able to detect whether my gate is open or closed. It is always present in the same place in the same camera, so I am not looking to detect whether a gate is there, but what is its current state. I expect different people's gates look wildly differently, so this would be best a custom model for each of such "rectangle".

Other use cases could be detecting things like if a flag is up or down, if bird feeder is full or empty, if a sandbox is covered or uncovered...

Describe the solution you'd like

  • Ability to define rectangle on a camera and a set of custom states (in my case "open", "closed").
  • Then to classify snapshots of that rectangle as one of the states or as "unknown" if it is for example obstructed.
  • Then to train some kind of image classification model on it.
  • Then when there is movement overlapping the rectangle, classify the image in the rectangle and expose the results over MQTT (ideally current state, last known state, time of last detection).

Describe alternatives you've considered
Alternative would be to pull the camera image to some other software and do the detection there.

@michalsrb michalsrb added the enhancement New feature or request label Jan 27, 2025
@NickM-27 NickM-27 changed the title Recognize state of always present static object (is gate open/close?) Ability to run classification models, for example to recognize state if gate is open/closed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

2 participants