blakeblackshear.frigate/frigate
Sergey Krashevich ce3a544ecd
Feature: automatic camera resolution configuration (#6810)
* Add auto configuration for height, width and fps in detect role

* Add auto-configuration for detect width, height, and fps for input roles with detect in the CameraConfig class in config.py

* Refactor code to retrieve video properties from input stream in CameraConfig class and add optional parameter to retrieve video duration in get_video_properties function

* format

* Set default detect dimensions to 1280x720 and update DetectConfig to use the defaults

* Revert "Set default detect dimensions to 1280x720 and update DetectConfig to use the defaults"

This reverts commit a1aed0414d.

* Add default detect dimensions if autoconfiguration failed and log a warning message

* fix warn message spelling on frigate/config.py

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>

* Ensure detect height and width are not None before using them in camera configuration

* docs: initial commit

* rename streamInfo to stream_info

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

* Apply suggestions from code review

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>

* Update docs

* handle case then get_video_properties returns 0x0 dimension

* Set detect resolution based on stream properties if available, else apply default values

* Update FrigateConfig to set default values for stream_info if resolution detection fails

* Update camera detection dimensions based on stream information if available

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
2023-07-14 06:56:03 -05:00
..
comms Expose dBFS when doing audio analysis (#6979) 2023-07-13 19:52:33 -05:00
detectors fix edgetpu device type "None" (auto) (#7097) 2023-07-08 16:04:51 -05:00
events Expose dBFS when doing audio analysis (#6979) 2023-07-13 19:52:33 -05:00
images Replace green screen with error message and force camera_fps to 0 (#4544) 2022-11-28 21:47:20 -06:00
motion use a different method for blur and contrast to reduce CPU (#6940) 2023-06-30 07:27:31 -05:00
ptz Autotracking: reset motion estimator (#7129) 2023-07-13 05:32:51 -05:00
record Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
test Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
track Autotracking: reset motion estimator (#7129) 2023-07-13 05:32:51 -05:00
util Fix queues (#7087) 2023-07-08 06:46:31 -05:00
__init__.py
__main__.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
app.py Refactor ff queue size (#7116) 2023-07-14 06:29:11 -05:00
config.py Feature: automatic camera resolution configuration (#6810) 2023-07-14 06:56:03 -05:00
const.py Refactor ff queue size (#7116) 2023-07-14 06:29:11 -05:00
ffmpeg_presets.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
http.py Fix: Add limit to event query (#7108) 2023-07-14 06:30:47 -05:00
log.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
models.py Attribute scores (#7100) 2023-07-09 11:40:39 -05:00
mypy.ini update deps (#6093) 2023-04-15 14:17:59 -05:00
object_detection.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
object_processing.py Attribute scores (#7100) 2023-07-09 11:40:39 -05:00
output.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
plus.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
stats.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
storage.py Refactor storage stats calculation to use powers of 2 for more accurate values (#6765) 2023-06-11 14:49:13 -05:00
timeline.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00
types.py Autotracking: reset motion estimator (#7129) 2023-07-13 05:32:51 -05:00
video.py Autotracking optimizations (#7109) 2023-07-11 06:23:20 -05:00
watchdog.py Cleanup and organize utils (#7033) 2023-07-06 09:28:50 -05:00