Commit Graph

4245 Commits

Author SHA1 Message Date
Nicolas Mowen
86b5e0f9ae Cleanup for updating the cameras config 2025-06-11 09:06:42 -06:00
Nicolas Mowen
1d0e9829f6 Get camera correctly created 2025-06-11 08:37:49 -06:00
Nicolas Mowen
301c01dbf2 Use ZMQ for signaling object detectoin is completed 2025-06-11 08:31:01 -06:00
Nicolas Mowen
225010c570 Create out SHM 2025-06-11 08:10:34 -06:00
Nicolas Mowen
02144402e5 Cleanup 2025-06-11 07:42:37 -06:00
Nicolas Mowen
e871c5178a Correctly handle indexed entries 2025-06-11 07:35:27 -06:00
Nicolas Mowen
67cd746135 Improve typing 2025-06-11 07:18:22 -06:00
Nicolas Mowen
785e655ff5 Simplify config updates 2025-06-11 06:25:14 -06:00
Nicolas Mowen
7e45371eed Fix type check 2025-06-10 20:58:16 -06:00
Nicolas Mowen
06f5edf296 Add some TODOs 2025-06-10 17:04:34 -06:00
Nicolas Mowen
427fe05bac Dynamically set extra config pieces 2025-06-10 16:54:06 -06:00
Nicolas Mowen
3f6969fe3f Leave extra room in tracked object queue for two cameras 2025-06-10 16:40:17 -06:00
Nicolas Mowen
f38bffde43 Adjust 2025-06-10 16:33:18 -06:00
Nicolas Mowen
c7b4d7791b Start processes dynamically when needed 2025-06-10 16:15:27 -06:00
Nicolas Mowen
f5b3f9ae87 Stop camera processes when stop command is sent 2025-06-10 15:55:49 -06:00
Nicolas Mowen
985a447074 Cleanup 2025-06-10 15:44:26 -06:00
Nicolas Mowen
fa6f531e88 Move camera management fully to separate class 2025-06-10 15:42:36 -06:00
Nicolas Mowen
7085790dcd Move camera process management to separate thread 2025-06-10 15:27:57 -06:00
Nicolas Mowen
b72b1beaa0 Add or remove camera states 2025-06-10 09:05:03 -06:00
Nicolas Mowen
0acb4936fe Add base class for global config updates 2025-06-10 08:50:03 -06:00
Nicolas Mowen
28fba7122d
Refactor TensorRT (#18643)
* Combine base and arm trt detectors

* Remove unused deps for amd64 build

* Add missing packages and cleanup ldconfig

* Expand packages for tensorflow model training

* Cleanup

* Refactor training to not reserve memory
2025-06-09 08:25:33 -06:00
Josh Hawkins
9a5162752c
Make Birdseye clickable (#18628)
* keep track of layout changes and publish on change

* websocket hook

* clickable overlay div to navigate to full camera view
2025-06-08 12:06:17 -06:00
FL42
eb83f2ac47
fix: Initialize GenAI client if GenAI is enabled globally (#18623) 2025-06-08 06:55:29 -06:00
FL42
76201c0c7f
feat: enable using GenAI for cameras with GenAI disabled from the API (#18616) 2025-06-07 13:43:29 -05:00
Jimmy
ab7b12da54
Add Mesa Teflon as a TFLite detector (#18310)
* Refactor common functions for tflite detector implementations

* Add detector using mesa teflon delegate

Non-EdgeTPU TFLite can use the standard .tflite format

* Add mesa-teflon-delegate from bookworm-backports to arm64 images
2025-06-06 13:41:04 -06:00
Nicolas Mowen
8409100623
Classification Model Metrics (#18595)
* Add speed and rate metrics for custom classification models

* Use metrics for classification models

* Use keys

* Cast to list
2025-06-06 11:29:44 -05:00
Nicolas Mowen
be8ee068e2
Live classification model training (#18583)
* Implement model training via ZMQ and add model states to represent training

* Get model updates working

* Improve toasts and model state

* Clean up logging

* Add back in
2025-06-05 09:13:12 -06:00
Nicolas Mowen
85d721eb6b
Classification Model UI (#18571)
* Setup basic training structure

* Build out route

* Handle model configs

* Add image fetch APIs

* Implement model training screen with dataset selection

* Implement viewing of training images

* Adjust directories

* Implement viewing of images

* Add support for deleting images

* Implement full deletion

* Implement classification model training

* Improve naming

* More renaming

* Improve layout

* Reduce logging

* Cleanup
2025-06-04 18:09:55 -05:00
Josh Hawkins
eb1fe9fe20
Audio transcription tweaks (#18540)
* use model runner

* unload whisper model when live transcription is complete
2025-06-03 06:53:48 -05:00
Josh Hawkins
645868e099
Upgrade PaddleOCR models to v4 (rec) and v5 (det) (#18505)
The PP_OCRv5 text detection models have greatly improved over v3. The v5 recognition model makes improvements to challenging handwriting and uncommon characters, which are not necessary for LPR, so using v4 seemed like a better choice to continue to keep inference time as low as possible. Also included is the full dictionary for Chinese character support.
2025-06-01 14:21:12 -06:00
Nicolas Mowen
568e620963
Tiered recordings (#18492)
* Implement tiered recording

* Add migration for record config

* Update docs

* Update reference docs

* Fix preview query

* Fix incorrect accesses

* Fix

* Fix

* Fix

* Fix
2025-05-30 17:01:39 -06:00
Nicolas Mowen
caf3e9fc8c
Intel updates (#18493)
* Update openvino and onnxruntime

* Install icd and level-zero-gpu deps from intel directly

* Install

* Add dep

* Fix package install
2025-05-30 15:30:21 -06:00
Nicolas Mowen
20e0addae1
Implement API to train classification models (#18475) 2025-05-29 17:51:32 -06:00
Josh Hawkins
2bd6fa53fe
Audio transcription support (#18398)
* install new packages for transcription support

* add config options

* audio maintainer modifications to support transcription

* pass main config to audio process

* embeddings support

* api and transcription post processor

* embeddings maintainer support for post processor

* live audio transcription with sherpa and faster-whisper

* update dispatcher with live transcription topic

* frontend websocket

* frontend live transcription

* frontend changes for speech events

* i18n changes

* docs

* mqtt docs

* fix linter

* use float16 and small model on gpu for real-time

* fix return value and use requestor to embed description instead of passing embeddings

* run real-time transcription in its own thread

* tweaks

* publish live transcriptions on their own topic instead of tracked_object_update

* config validator and docs

* clarify docs
2025-05-27 10:26:00 -05:00
Nicolas Mowen
512b7e16e1
Fix incorrectly running lpr (#18390) 2025-05-25 11:02:48 -06:00
Nicolas Mowen
5f40e6e2b9
Add basic config editor when Frigate can't startup (#18383)
* Start Frigate in safe mode when config does not validate

* Add safe mode page that is just the config editor

* Adjust Frigate config editor when in safe mode

* Cleanup

* Improve log message
2025-05-24 11:47:15 -05:00
Nicolas Mowen
87d0102624
Add ability to configure when custom classification models run (#18380)
* Add config to control when classification models are run

* Cleanup
2025-05-24 11:18:46 -05:00
Nicolas Mowen
3892f8c732
Update ROCm to 6.4.1 (#18364)
* Update rocm to 6.4.1

* Quick fix
2025-05-23 12:05:04 -05:00
Josh Hawkins
9392ffc300
Implement support for no recordings indicator on timeline (#18363)
* Indicate no recordings on the history timeline with gray hash marks

This commit includes a new backend API endpoint and the frontend changes needed to support this functionality

* don't show slashes for now
2025-05-23 08:55:48 -06:00
Nicolas Mowen
8a1da3a89f
Initial custom classification model config support (#18362)
* Add basic config for defining a teachable machine model

* Add model type

* Add basic config for teachable machine models

* Adjust config for state and object

* Use config to process

* Correctly check for objects

* Remove debug

* Rename to not be teachable machine specific

* Cleanup
2025-05-23 09:46:53 -05:00
Nicolas Mowen
5dd30b273a
Dynamically update masks and zones for cameras (#18359)
* Include config publisher in api

* Call update topic for passed topics

* Update zones dynamically

* Update zones internally

* Support zone and mask reset

* Handle updating objects config

* Don't put status for needing to restart Frigate

* Cleanup http tests

* Fix tests
2025-05-22 20:51:23 -06:00
Nicolas Mowen
559af44682 Dynamic Config Updates (#18353)
* Create classes to handle publishing and subscribing config updates

* Cleanup

* Use config updater

* Update handling for enabled config

* Cleanup

* Recording config updates

* Birdseye config updates

* Handle notifications

* handle review

* Update motion
2025-05-22 12:24:34 -06:00
Nicolas Mowen
7d994d7f9d Update ROCm to 6.4.0 (#18264)
* Update to rocm 6.4.0

* Update URL

* Remove old env var
2025-05-22 12:24:34 -06:00
Josh Hawkins
c16e536b46
Fixes (#18338)
* improve spacing of face selection in mobile drawer

* fix spacing

* sort face names alphabetically

* Improve face selection dialog

* Use a state to track when face image loads

The naturalWidth and naturalHeight will always be 0 until the image loads. So we use onLoad and a state to track loading and then calculate the area after it has loaded

* Verify that a camera only tracks objects that are possible to track

* Fix test

* genai docs tweak

* Disable openvino model cache

* Clenaup

* Sanitize floats for estimated speed and angle

Users can configure speed zones in such a way that velocity estimates from Norfair cause a value of inf to be stored as an estimated speed. FastAPI doesn't serialize inf as a float, so trying to return this value would result in an API error. Sanitizing the value before storing should correct this.

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2025-05-22 09:38:14 -06:00
Josh Hawkins
49c6073de6
Add ability to specify separator used in proxy headers (#18336) 2025-05-21 06:02:13 -06:00
Luca Paolini
2a8b62acb1
Disable autoCorrect, autoCapitalize and spellCheck on username input. (#18333) 2025-05-21 06:10:13 -05:00
Josh Hawkins
37d40558b7
Fixes (#18319)
* Add Thai (still need to merge weblate)

* Apply attribute logic to all label types

* Fix area check

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2025-05-20 16:47:05 -06:00
Josh Hawkins
afe513336c
fix missing i18n keys (#18309) 2025-05-19 16:45:02 -05:00
Josh Hawkins
8a143b4284
Fixes (#18304)
* fix recordings check

* Only calculate inpoint offset for beginning of hour segment

* Cleanup

* Fix seeking

* add Czech

* explore i18n fix

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2025-05-19 14:43:22 -06:00
Nicolas Mowen
717517aeb5
Misc fixes (#18289)
* Fix key not moved

* Account for HLS start offset when seeking and calculating update time
2025-05-18 18:23:01 -05:00