Commit Graph

1857 Commits

Author SHA1 Message Date
Josh Hawkins
4279342cd3 Error message when onvif init fails 2023-07-03 11:44:48 -05:00
Josh Hawkins
0feaef0031 fix type 2023-07-03 11:41:20 -05:00
Josh Hawkins
714a3e28eb default return preset 2023-07-03 11:34:31 -05:00
Josh Hawkins
df59636ff9 pass actual instances directly 2023-07-03 11:27:02 -05:00
Josh Hawkins
54300bf50d Merge branch 'autotracking' of https://github.com/hawkeye217/frigate into autotracking 2023-07-03 10:42:17 -05:00
Josh Hawkins
6ee03f1e54 clarify wording 2023-07-03 10:42:13 -05:00
Josh Hawkins
fbc6e7deca
Update docs/docs/configuration/autotracking.md
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2023-07-03 10:34:36 -05:00
Josh Hawkins
f84f6d12e2 docs: update link to object_detectors page 2023-07-03 10:26:47 -05:00
Josh Hawkins
2c29b4f16c merge conflict fix 2023-07-03 10:23:16 -05:00
Josh Hawkins
c9a9734c73 remove unused code 2023-07-03 10:15:14 -05:00
Josh Hawkins
ce2070ff7f Merge branch 'autotracking' of https://github.com/hawkeye217/frigate into autotracking 2023-07-03 10:14:15 -05:00
Josh Hawkins
c840c9c655 Clean up 2023-07-03 10:14:04 -05:00
Josh Hawkins
bef54c537f clean up 2023-07-03 10:10:43 -05:00
Josh Hawkins
c690bb8500 fix event type for mypy 2023-07-03 10:08:27 -05:00
Josh Hawkins
39fbe47fc3 fix merge conflict 2023-07-03 09:51:11 -05:00
Josh Hawkins
9362775eae Merge dev 2023-07-03 09:46:16 -05:00
Josh Hawkins
5195204604 update autotrack at half fps 2023-07-03 09:22:59 -05:00
Josh Hawkins
b267cfb520 use mp event instead of value for ptz status 2023-07-03 09:22:21 -05:00
Josh Hawkins
8e0d492ad8 remove size ratio 2023-07-02 19:06:44 -05:00
Josh Hawkins
1d588dcdc0 clarify fov support 2023-07-02 18:07:25 -05:00
Josh Hawkins
1f56b93824 docs 2023-07-02 18:02:43 -05:00
Josh Hawkins
59e539375e Always use motion estimator 2023-07-02 16:52:12 -05:00
Josh Hawkins
1be67e2606 Thread names 2023-07-02 16:08:08 -05:00
Josh Hawkins
6f170358ed Fix init 2023-07-02 14:02:52 -05:00
Josh Hawkins
98d534918a Init if enabled when initially disabled in config 2023-07-02 13:40:16 -05:00
Josh Hawkins
e883e00c74 only draw thicker box if autotracking is enabled 2023-07-02 13:10:17 -05:00
Josh Hawkins
f05ca2b9c6 tracked object should be initially motionless 2023-07-02 13:00:12 -05:00
Josh Hawkins
3059fd83c9 mqtt callback 2023-07-02 12:58:07 -05:00
Josh Hawkins
8f590bf5cc iou value for tracked object 2023-07-02 10:53:20 -05:00
Josh Hawkins
98c161bdde Move autotracker start to app.py 2023-07-02 10:52:38 -05:00
Nicolas Mowen
83edf9574e
Scale birdseye layout up to max size after it has been calculated (#6825)
* Scale layout up to max size after it has been calculated

* Limit portrait cameras to taking up 2 rows

* Fix bug

* Fix birdsye not removing cameras once objects are no longer visible

* Fix lint
2023-07-02 07:45:45 -05:00
Josh Hawkins
a5f407dba8 Move queues per camera 2023-07-01 22:35:06 -05:00
Josh Hawkins
56d074ec4e Add threaded queue for movement for slower ptzs 2023-07-01 20:26:55 -05:00
Nicolas Mowen
c25367221e
Fix audio events not being ended (#6981)
* Fix audio events not being ended

* Fix audio events not being ended correctly

* Clean up debug code
2023-07-01 16:33:47 -05:00
Nicolas Mowen
7ee17c7af8
Fix small audio events details (#6978)
* Fix missed audio details

* Add mqtt docs

* Delete instead of setting to None
2023-07-01 11:19:14 -05:00
Nicolas Mowen
c3b313a70d
Audio events (#6848)
* Initial audio classification model implementation

* fix mypy

* Keep audio labelmap local

* Cleanup

* Start adding config for audio

* Add the detector

* Add audio detection process keypoints

* Build out base config

* Load labelmap correctly

* Fix config bugs

* Start audio process

* Fix startup issues

* Try to cleanup restarting

* Add ffmpeg input args

* Get audio detection working

* Save event to db

* End events if not heard for 30 seconds

* Use not heard config

* Stop ffmpeg when shutting down

* Fixes

* End events correctly

* Use api instead of event queue to save audio events

* Get events working

* Close threads when stop event is sent

* remove unused

* Only start audio process if at least one camera is enabled

* Add const for float

* Cleanup labelmap

* Add audio icon in frontend

* Add ability to toggle audio with mqtt

* Set initial audio value

* Fix audio enabling

* Close logpipe

* Isort

* Formatting

* Fix web tests

* Fix web tests

* Handle cases where args are a string

* Remove log

* Cleanup process close

* Use correct field

* Simplify if statement

* Use var for localhost

* Add audio detectors docs

* Add restream docs to mention audio detection

* Add full config docs

* Fix links to other docs

---------

Co-authored-by: Jason Hunter <hunterjm@gmail.com>
2023-07-01 08:18:33 -05:00
Bernt Christian Egeland
f1dc3a639c
fixed TimeAgo abbreviation (#6977)
* fixed TimeAgo abbreviation

* Update web/src/components/TimeAgo.tsx

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>

---------

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
2023-07-01 08:16:19 -05:00
Blake Blackshear
2f401bd8da
update deps (#6973)
* update web deps

* update python deps
2023-07-01 07:47:16 -05:00
Josh Hawkins
27eb2a6088 fix mypy error 2023-06-30 12:51:50 -05:00
Josh Hawkins
1a78230eae fix motion logic 2023-06-30 12:38:44 -05:00
Josh Hawkins
db9a408edf Don't detect motion when ptz is moving 2023-06-30 12:36:46 -05:00
Nicolas Mowen
f3f9b36e07
Fix bad check on np.array (#6968) 2023-06-30 07:06:38 -06:00
Nicolas Mowen
0a8249d6fb
Fix Bad Resize For Camera Snapshot (#6797)
* Catch cases where incorrect size is requested

* Set a default if calculated height is incorrect
2023-06-30 07:34:10 -05:00
Sergey Krashevich
b6fce8f0bb
Integrate ccache into libusb and nginx build scripts for improved build speed (#6886)
* Add ccache to libusb and nginx build scripts

* Add ccache support to Dockerfile for faster builds

* Add ccache to PATH and use it for compiling nginx with Makefile in build_nginx.sh script
2023-06-30 07:28:48 -05:00
Blake Blackshear
d51197eaa2
use a different method for blur and contrast to reduce CPU (#6940)
* use a different method for blur and contrast to reduce CPU

* blur with radius instead

* use faster interpolation for motion

* improve contrast based on averages

* increase default threshold to 30

* ensure mask is applied after contrast improvement

* update opencv

* update benchmark script
2023-06-30 07:27:31 -05:00
Nicolas Mowen
d2a2643cd6
Apply zone filter before inertia (#6854)
* Apply zone filter before intertia

* Formatting
2023-06-30 07:15:55 -05:00
Nicolas Mowen
bd17e7d824
Show object attributes when hovering or tapping timeline bounding box (#6879)
* Show overlay when hovering on timeline box

* Make it work with mobile too

* Fix lint

* Fix ratio

* Update web/src/components/TimelineEventOverlay.jsx

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>

* Show overlay when hovering on timeline box

* Make it work with mobile too

* Fix lint

* Fix ratio

* Remove label and make overlay respect selected theme

---------

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
2023-06-30 07:15:19 -05:00
spacebares
ed0d2be321
configurable ffmpeg timeout (#6897)
* configurable ffmpeg timeout

* configurable ffmpeg healthcheck interval

rename timeout to healthcheck_interval
only grab config value once

* configurable ffmpeg retry interval

rename healthcheck_interval to retry_interval

* add retry_interval to docs

- update retry_interval text in config.py
2023-06-30 07:14:39 -05:00
Nicolas Mowen
9137f1594b
Remove legacy recordings file cleanup (#6947)
* Remove legacy recordings file cleanup

* Remove unused
2023-06-30 07:13:00 -05:00
Josh Hawkins
f26093dc4a Revert "Threaded motion estimator"
This reverts commit 3171801607.
2023-06-29 13:20:25 -05:00