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
This commit is contained in:
Blake Blackshear
2023-06-30 07:27:31 -05:00
committed by GitHub
parent d2a2643cd6
commit d51197eaa2
5 changed files with 60 additions and 23 deletions

View File

@@ -187,7 +187,7 @@ class RecordConfig(FrigateBaseModel):
class MotionConfig(FrigateBaseModel):
threshold: int = Field(
default=20,
default=30,
title="Motion detection threshold (1-255).",
ge=1,
le=255,