Commit Graph

3642 Commits

Author SHA1 Message Date
Nicolas Mowen
be2443382a Fix 2025-01-10 12:33:52 -07:00
Nicolas Mowen
6f10ed703f Cleanup 2025-01-10 11:27:49 -07:00
Nicolas Mowen
e01a546933 Build out generic API for post processing 2025-01-10 11:07:42 -07:00
Nicolas Mowen
a1cc2449a0 Refactor post processor to be real time processor 2025-01-10 10:56:19 -07:00
Nicolas Mowen
b51ac37496
Generalize postprocessing (#15931)
* Actually send result to face registration

* Define postprocessing api and move face processing to fit

* Standardize request handling

* Standardize handling of processors

* Rename processing metrics

* Cleanup

* Standardize object end

* Update to newer formatting

* One more

* One more
2025-01-10 09:39:24 -06:00
Nicolas Mowen
f1f3d46d9c
Fix onvif packages (#15906)
* Don't replace packages

* Formatting
2025-01-09 08:17:30 -06:00
Josh Hawkins
fccc101b1c
Only print line and key/value when a line number can be found (#15897) 2025-01-08 09:25:09 -07:00
Nicolas Mowen
66220b762a
Upgrade onvif-zeep dependency to use onvif-zeep-async (#15894)
* Upgrade to new dependency

* Start onvif work

* Update for async calls
2025-01-08 07:40:37 -07:00
Nicolas Mowen
9a82e9f25e Improvements to face recognition (#15854)
* Do not add margin to face images

* remove margin

* Correctly clear
2025-01-08 06:34:51 -07:00
Nicolas Mowen
44605d0c9c Add metrics page for embeddings and face / license plate processing times (#15818)
* Get stats for embeddings inferences

* cleanup embeddings inferences

* Enable UI for feature metrics

* Change threshold

* Fix check

* Update python for actions

* Set python version

* Ignore type for now
2025-01-08 06:34:51 -07:00
Nicolas Mowen
46cd969a21 Fix facedet download (#15811)
* Support downloading face models

* Handle download and loading correctly

* Add face dir creation

* Fix error

* Fix

* Formatting

* Move upload to button

* Show number of faces in library for each name

* Add text color for score

* Cleanup
2025-01-08 06:34:51 -07:00
Nicolas Mowen
14aa5fbed5 Refactor camera activity processing (#15803)
* Replace object label sensors with new manager

* Implement zone topics

* remove unused
2025-01-08 06:34:51 -07:00
Marc Altmann
30f41922be rockchip: update dependencies and add script for model conversion (#15699)
* rockchip: update dependencies and add script for model conversion

* rockchip: update docs

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2025-01-08 06:34:51 -07:00
Nicolas Mowen
fb41524fcd Add support for SR-IOV GPU stats (#15796)
* Add option to treat GPU as SRIOV in order for stats to work correctly

* Add to intel docs

* fix tests
2025-01-08 06:34:51 -07:00
Nicolas Mowen
61691cc058 Add ffmpeg config to increase HEVC compatibility with Apple devices (#15795)
* Add config option for handling HEVC playback on Apple devices

* Update docs

* Remove unused
2025-01-08 06:34:51 -07:00
Nicolas Mowen
478421151d Implement face recognition training in UI (#15786)
* Rename debug to train

* Add api to train image as person

* Cleanup model running

* Formatting

* Fix

* Set face recognition page title
2025-01-08 06:34:51 -07:00
Nicolas Mowen
999c97cc06 Add UI for managing face recognitions (#15757)
* Add ability to view attempts

* Improve UI

* Cleanup

* Correctly refresh ui when item is deleted

* Select correct library by default

* Add min score

* Cleanup
2025-01-08 06:34:51 -07:00
Nicolas Mowen
df9012551f Face recognition logic improvements (#15679)
* Always initialize face model on startup

* Add ability to save face images for debugging

* Implement better face recognition reasonability
2025-01-08 06:34:51 -07:00
Nicolas Mowen
303167a1a0 Change folder 2025-01-08 06:34:51 -07:00
Nicolas Mowen
44b5246f66 Set model size 2025-01-08 06:34:51 -07:00
Nicolas Mowen
007371ef51 Improve face recognition (#15670)
* Face recognition tuning

* Support face alignment

* Cleanup

* Correctly download model
2025-01-08 06:34:51 -07:00
Nicolas Mowen
2e265f1239 Update TRT (#15646) 2025-01-08 06:34:51 -07:00
Nicolas Mowen
e254a97150 Make face library scrollable 2025-01-08 06:34:51 -07:00
Nicolas Mowen
30d06d0afc Update openvino (#15634) 2025-01-08 06:34:51 -07:00
Nicolas Mowen
247e2148d1 Update python deps (#15618)
* Update opencv

* Update cython

* Update scikit

* Update scipy
2025-01-08 06:34:51 -07:00
Nicolas Mowen
444245747a Enable temporary caching of camera images to improve responsiveness of UI (#15614) 2025-01-08 06:34:51 -07:00
Josh Hawkins
5936b54892 Preserve line numbers in config validation (#15584)
* use ruamel to parse and preserve line numbers for config validation

* maintain exception for non validation errors

* fix types

* include input in log messages
2025-01-08 06:34:51 -07:00
Nicolas Mowen
7f69eff19e Update base image (#15103)
* Change base image

* Update python

* Update coral library

* Fix source file

* Install correct apt packages

* Cleanup

* Fix installation of coral deps

* fix python installations

* Fix devcontainer build

* Get tensorrt build working

* Update other deps

* Filter out tflite log

* Get ROCm build working

* Get rockchip build working

* Get hailo build working

* Add note to comment
2025-01-08 06:34:51 -07:00
Nicolas Mowen
6a277ee9e0 Face recognition fixes (#15222)
* Fix nginx max upload size

* Close upload dialog when done and add toasts

* Formatting

* fix ruff
2025-01-08 06:34:51 -07:00
Nicolas Mowen
4de319acb2 Improve face recognition (#15205)
* Validate faces using cosine distance and SVC

* Formatting

* Use opencv instead of face embedding

* Update docs for training data

* Adjust to score system

* Set bounds

* remove face embeddings

* Update writing images

* Add face library page

* Add ability to select file

* Install opencv deps

* Cleanup

* Use different deps

* Move deps

* Cleanup

* Only show face library for desktop

* Implement deleting

* Add ability to upload image

* Add support for uploading images
2025-01-08 06:34:51 -07:00
Nicolas Mowen
655cc6a2f2 Remove standardization 2025-01-08 06:34:51 -07:00
Nicolas Mowen
bfe1b70e11 Fix check 2025-01-08 06:34:51 -07:00
Nicolas Mowen
e53094189c Remove hardcoded face name 2025-01-08 06:34:51 -07:00
Nicolas Mowen
42f78d03b5 Use SVC to normalize and classify faces for recognition (#14835)
* Add margin to detected faces for embeddings

* Standardize pixel values for face input

* Use SVC to classify faces

* Clear classifier when new face is added

* Formatting

* Add dependency
2025-01-08 06:34:51 -07:00
Josh Hawkins
79f423c913 Use regular expressions for plate matching (#14727) 2025-01-08 06:34:51 -07:00
Nicolas Mowen
212110682c Update facenet model (#14647) 2025-01-08 06:34:51 -07:00
Josh Hawkins
5116d7f1f6 LPR improvements (#14641) 2025-01-08 06:34:51 -07:00
Josh Hawkins
7afde7d4f7 Prevent division by zero in lpr confidence checks (#14615) 2025-01-08 06:34:51 -07:00
Nicolas Mowen
34cdaa0350 Fix label check (#14610)
* Create config for parsing object

* Use in maintainer
2025-01-08 06:34:51 -07:00
Josh Hawkins
cb10c51339 License plate recognition (ALPR) backend (#14564)
* Update version

* Face recognition backend (#14495)

* Add basic config and face recognition table

* Reconfigure updates processing to handle face

* Crop frame to face box

* Implement face embedding calculation

* Get matching face embeddings

* Add support face recognition based on existing faces

* Use arcface face embeddings instead of generic embeddings model

* Add apis for managing faces

* Implement face uploading API

* Build out more APIs

* Add min area config

* Handle larger images

* Add more debug logs

* fix calculation

* Reduce timeout

* Small tweaks

* Use webp images

* Use facenet model

* Improve face recognition (#14537)

* Increase requirements for face to be set

* Manage faces properly

* Add basic docs

* Simplify

* Separate out face recognition frome semantic search

* Update docs

* Formatting

* Fix access (#14540)

* Face detection (#14544)

* Add support for face detection

* Add support for detecting faces during registration

* Set body size to be larger

* Undo

* Update version

* Face recognition backend (#14495)

* Add basic config and face recognition table

* Reconfigure updates processing to handle face

* Crop frame to face box

* Implement face embedding calculation

* Get matching face embeddings

* Add support face recognition based on existing faces

* Use arcface face embeddings instead of generic embeddings model

* Add apis for managing faces

* Implement face uploading API

* Build out more APIs

* Add min area config

* Handle larger images

* Add more debug logs

* fix calculation

* Reduce timeout

* Small tweaks

* Use webp images

* Use facenet model

* Improve face recognition (#14537)

* Increase requirements for face to be set

* Manage faces properly

* Add basic docs

* Simplify

* Separate out face recognition frome semantic search

* Update docs

* Formatting

* Fix access (#14540)

* Face detection (#14544)

* Add support for face detection

* Add support for detecting faces during registration

* Set body size to be larger

* Undo

* initial foundation for alpr with paddleocr

* initial foundation for alpr with paddleocr

* initial foundation for alpr with paddleocr

* config

* config

* lpr maintainer

* clean up

* clean up

* fix processing

* don't process for stationary cars

* fix order

* fixes

* check for known plates

* improved length and character by character confidence

* model fixes and small tweaks

* docs

* placeholder for non frigate+ model lp detection

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2025-01-08 06:34:51 -07:00
Nicolas Mowen
758557541a Face detection (#14544)
* Add support for face detection

* Add support for detecting faces during registration

* Set body size to be larger

* Undo
2025-01-08 06:34:51 -07:00
Nicolas Mowen
02dc7bc72a Fix access (#14540) 2025-01-08 06:34:51 -07:00
Nicolas Mowen
3745a8d3ac Improve face recognition (#14537)
* Increase requirements for face to be set

* Manage faces properly

* Add basic docs

* Simplify

* Separate out face recognition frome semantic search

* Update docs

* Formatting
2025-01-08 06:34:51 -07:00
Nicolas Mowen
73500de780 Face recognition backend (#14495)
* Add basic config and face recognition table

* Reconfigure updates processing to handle face

* Crop frame to face box

* Implement face embedding calculation

* Get matching face embeddings

* Add support face recognition based on existing faces

* Use arcface face embeddings instead of generic embeddings model

* Add apis for managing faces

* Implement face uploading API

* Build out more APIs

* Add min area config

* Handle larger images

* Add more debug logs

* fix calculation

* Reduce timeout

* Small tweaks

* Use webp images

* Use facenet model
2025-01-08 06:34:51 -07:00
Nicolas Mowen
ff53151887 Update version 2025-01-08 06:34:51 -07:00
Nicolas Mowen
d57a61b50f
Simplify model config (#15881)
* Add migration to migrate to model_path

* Simplify model config

* Cleanup docs

* Set config version

* Formatting

* Fix tests
2025-01-07 20:59:37 -07:00
Nicolas Mowen
4fc9106c17
Update for correct audio requirements (#15882) 2025-01-07 17:02:32 -06:00
Nicolas Mowen
38e098ca31
Remove extra data except from keypackets when using qsv (#15865) 2025-01-06 17:38:46 -06:00
Nicolas Mowen
e7ad38d827
Update model docs (#15779) 2025-01-02 10:04:16 -06:00
Josh Hawkins
a1ce9aacf2
Tracked object details pane bugfix (#15736)
* restore save button in tracked object details pane

* conditionally show save button
2024-12-30 08:23:25 -06:00