mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Change interpolation method from cv2.INTER_LINEAR to cv2.INTER_NEAREST in motion detection classes
This commit is contained in:
parent
9d06577b8e
commit
4172bccfc7
@ -30,7 +30,7 @@ class FrigateMotionDetector(MotionDetector):
|
||||
resized_mask = cv2.resize(
|
||||
config.mask,
|
||||
dsize=(self.motion_frame_size[1], self.motion_frame_size[0]),
|
||||
interpolation=cv2.INTER_LINEAR,
|
||||
interpolation=cv2.INTER_NEAREST,
|
||||
)
|
||||
self.mask = np.where(resized_mask == [0])
|
||||
self.save_images = False
|
||||
|
||||
@ -34,7 +34,7 @@ class ImprovedMotionDetector(MotionDetector):
|
||||
resized_mask = cv2.resize(
|
||||
config.mask,
|
||||
dsize=(self.motion_frame_size[1], self.motion_frame_size[0]),
|
||||
interpolation=cv2.INTER_LINEAR,
|
||||
interpolation=cv2.INTER_NEAREST,
|
||||
)
|
||||
self.mask = np.where(resized_mask == [0])
|
||||
self.save_images = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user