Commit Graph

3637 Commits

Author SHA1 Message Date
ZhaiSoul
9e9a5e75a1 Merge branch '0.16' into dev 2025-01-06 21:52:43 +08:00
Nicolas Mowen
3e587f93de
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-05 07:47:57 -07:00
Nicolas Mowen
fbcbb6b088
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-04 15:21:47 -06:00
Nicolas Mowen
160664836f
Refactor camera activity processing (#15803)
* Replace object label sensors with new manager

* Implement zone topics

* remove unused
2025-01-03 22:11:53 -06:00
Marc Altmann
05bded61a3
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-03 10:09:27 -07:00
Nicolas Mowen
6f53048b44
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-03 09:43:44 -06:00
Nicolas Mowen
54bbfae433
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-03 07:11:18 -07:00
Nicolas Mowen
05f9ae50b5
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-02 15:44:25 -07:00
ZhaiSoul
f6adaa4a5b Fix en translation value error 2025-01-02 23:50:24 +08:00
ZhaiSoul
15db9f7394 Fix errors caused by forgetting to save some files. 2025-01-02 23:48:08 +08:00
ZhaiSoul
08d0215673 Add more translation 2025-01-02 23:44:48 +08:00
ZhaiSoul
7476fa1300 add parseMissingKeyHandler 2025-01-02 16:14:42 +08:00
Nicolas Mowen
b3072087d4
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
2024-12-31 15:56:01 -06:00
ZhaiSoul
eaf27ec714 Fix wrong code 2024-12-27 12:05:19 +08:00
GuoQing Liu
7ed68820ca
Fix english some text wrong.
Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
2024-12-27 12:01:06 +08:00
GuoQing Liu
1c3e3304d2
Fix some text wrong
Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
2024-12-27 11:56:32 +08:00
ZhaiSoul
576a5c419e Fix systemLanguage is undefined 2024-12-27 01:36:02 +08:00
ZhaiSoul
ecb213bf9a run lint 2024-12-27 01:27:21 +08:00
ZhaiSoul
a5eb3d355d add i18next-http-backend 2024-12-27 01:26:17 +08:00
ZhaiSoul
57fad241da add more label translation 2024-12-27 00:50:03 +08:00
ZhaiSoul
2ace4b896a add more translation 2024-12-27 00:49:51 +08:00
ZhaiSoul
f45242d22c feat: add i18n 2024-12-27 00:45:48 +08:00
Nicolas Mowen
f84713487f Face recognition logic improvements (#15679)
* Always initialize face model on startup

* Add ability to save face images for debugging

* Implement better face recognition reasonability
2024-12-26 08:18:12 -07:00
Nicolas Mowen
fb8394bdff Change folder 2024-12-26 08:18:12 -07:00
Nicolas Mowen
3325c4f577 Set model size 2024-12-26 08:18:12 -07:00
Nicolas Mowen
c375d2776c Improve face recognition (#15670)
* Face recognition tuning

* Support face alignment

* Cleanup

* Correctly download model
2024-12-26 08:18:12 -07:00
Nicolas Mowen
3cb00ad244 Update TRT (#15646) 2024-12-26 08:18:12 -07:00
Nicolas Mowen
ec02ef50f0 Make face library scrollable 2024-12-26 08:18:12 -07:00
Nicolas Mowen
a04b146a03 Update openvino (#15634) 2024-12-26 08:18:12 -07:00
Nicolas Mowen
66842522c2 Update python deps (#15618)
* Update opencv

* Update cython

* Update scikit

* Update scipy
2024-12-26 08:18:12 -07:00
Nicolas Mowen
f718922c0c Enable temporary caching of camera images to improve responsiveness of UI (#15614) 2024-12-26 08:18:12 -07:00
Josh Hawkins
626ee19cc7 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
2024-12-26 08:18:12 -07:00
Nicolas Mowen
4fa83e781c 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
2024-12-26 08:18:12 -07:00
Nicolas Mowen
183e406da3 Face recognition fixes (#15222)
* Fix nginx max upload size

* Close upload dialog when done and add toasts

* Formatting

* fix ruff
2024-12-26 08:18:12 -07:00
Nicolas Mowen
5cf018ca72 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
2024-12-26 08:18:12 -07:00
Nicolas Mowen
9d54beab76 Remove standardization 2024-12-26 08:18:12 -07:00
Nicolas Mowen
a2b9ed0846 Fix check 2024-12-26 08:18:12 -07:00
Nicolas Mowen
bfa95c2062 Remove hardcoded face name 2024-12-26 08:18:12 -07:00
Nicolas Mowen
be856455f4 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
2024-12-26 08:18:12 -07:00
Josh Hawkins
1ab061effd Use regular expressions for plate matching (#14727) 2024-12-26 08:18:12 -07:00
Nicolas Mowen
90916879b7 Update facenet model (#14647) 2024-12-26 08:18:12 -07:00
Josh Hawkins
cf931c474c LPR improvements (#14641) 2024-12-26 08:18:12 -07:00
Josh Hawkins
44021cbc2e Prevent division by zero in lpr confidence checks (#14615) 2024-12-26 08:18:12 -07:00
Nicolas Mowen
f98f41668e Fix label check (#14610)
* Create config for parsing object

* Use in maintainer
2024-12-26 08:18:12 -07:00
Josh Hawkins
3ed4fb87ef 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>
2024-12-26 08:18:12 -07:00
Nicolas Mowen
8dc9c2c9ed Face detection (#14544)
* Add support for face detection

* Add support for detecting faces during registration

* Set body size to be larger

* Undo
2024-12-26 08:18:12 -07:00
Nicolas Mowen
66de9f6079 Fix access (#14540) 2024-12-26 08:18:12 -07:00
Nicolas Mowen
e35fb8f056 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
2024-12-26 08:18:11 -07:00
Nicolas Mowen
ca5711d1ab 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
2024-12-26 08:18:11 -07:00
Nicolas Mowen
f16f6d3789 Update version 2024-12-26 08:18:11 -07:00