Frigate Event Statistics and Analytics #3676
Replies: 7 comments 1 reply
-
Adding a note for anyone else with similar interest A general event summary is available using Frigate's existing API, documented here, implemented through route: /api/events/summary The summary provides a daily count of event labels, by camera, label class, and zone |
Beta Was this translation helpful? Give feedback.
-
Something I'm interested in seeing with Frigate is a timeline view of an individual day, and multiple days, to better understand where events occurred, if there are activity patterns, spot activity when it is most frequent, and when it occurs but is an anomaly (e.g. late-night hours). |
Beta Was this translation helpful? Give feedback.
-
Another useful view would be for labels, to analyze event detection frequency, and some their attributes (e.g. confidence vs detection area) |
Beta Was this translation helpful? Give feedback.
-
Wow those examples look really cool. |
Beta Was this translation helpful? Give feedback.
-
this is good, i integrate frigate on Homeassistant, i would see the event statics in a card (only number for day) but the integration not see any sensor for "events statics" |
Beta Was this translation helpful? Give feedback.
-
Bumping this thread in light of the Frigate 0.14.x UI design changes. I've been working on my own UI for reviewing Frigate events as one of my use cases diverges from the primary case of recording very-recent Detections and reviewing Notifications/Alerts. The 0.14.x UI approach understandably prioritizes simplification of reviewing general "alerts" as the Frigate approach in 0.13.x and earlier presented detection information separately for each object/label class even when multiple types of objects were part of the same actual "event." Some Frigate users may have cameras covering relatively high-activity areas (e.g. people, vehicles, etc) and in those cases they may be:
Both of these have tradeoffs and require thoughtful consideration of how Frigate itself would be integrated into a larger workflow. The example chart above shows an overview of 30-days and how detection events were distributed within each day (by hour). I believe it's important to be able to have alternate views of Frigate event/detection records beyond the immediate and granular timelines of the last few hours, or the last day, and to have a broader-scale view of time allowing easy observation and discovery of events that may be temporally anomalous (e.g. detections occurring during late-night hours, difference in traffic patterns on particular days of the week). Some example questions that could be answered with these views are:
|
Beta Was this translation helpful? Give feedback.
-
I like the data analytics, but I think this really diverges from what most people want to get out of an NVR. Especially considering that most people I've run into with a proprietary NVR hardly even know how to play back video, I doubt the average user cares about visualizing data. I can agree that the average frigate user is probably a little more into tech, but I think the point still stands. It's also worth noting that a lot of data is available through the api. I use api calls to graph data I care about in home assistant. This type of data analysis might be better included as its own project in the form a home assistant integration that can be used those interested in it. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering if there has been any past discussion or interest in having an event analytics layer for Frigate.
An analytics layer could be used to generate event statistics to help Frigate users understand the frequency of events, by camera, zone, object-type, time of day, etc. An analytics layer can also be used to help focus and expedite work needed for Frigate detector model development by identifying events and captured image/video data associated with false-positives and misclassifications.
My initial thoughts and approach to this take advantage of the existing Frigate database structure implemented using SQLite, where the database can be mounted in read-only mode and exposed via Datasette. Datasette includes functionality to incorporate canned SQL queries/reports, as well as exposing Frigate data via REST API.
With Frigate event data organized in an easily queryable manner, this would also provide a path for implementing event dashboards summarizing events over time.
This could also be used as part of a development and test harness to expose and compare performance between Frigate configuration settings and detector models.
Beta Was this translation helpful? Give feedback.
All reactions