mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
pass by reference mistake
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@ class MotionDetector:
|
|||||||
)
|
)
|
||||||
self.mask = np.where(resized_mask == [0])
|
self.mask = np.where(resized_mask == [0])
|
||||||
self.save_images = False
|
self.save_images = False
|
||||||
self.improve_contrast = improve_contrast_enabled.value
|
self.improve_contrast = improve_contrast_enabled
|
||||||
|
|
||||||
def detect(self, frame):
|
def detect(self, frame):
|
||||||
motion_boxes = []
|
motion_boxes = []
|
||||||
@@ -39,7 +39,7 @@ class MotionDetector:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Improve contrast
|
# Improve contrast
|
||||||
if self.improve_contrast:
|
if self.improve_contrast.value:
|
||||||
minval = np.percentile(resized_frame, 4)
|
minval = np.percentile(resized_frame, 4)
|
||||||
maxval = np.percentile(resized_frame, 96)
|
maxval = np.percentile(resized_frame, 96)
|
||||||
# don't adjust if the image is a single color
|
# don't adjust if the image is a single color
|
||||||
|
|||||||
Reference in New Issue
Block a user