mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-21 23:58:22 +03:00
Improve motion boxes handling for features that don't require motion
This commit is contained in:
parent
bbab93eb96
commit
f66c4f53e0
@ -633,7 +633,7 @@ class EmbeddingMaintainer(threading.Thread):
|
|||||||
|
|
||||||
camera, frame_name, _, _, motion_boxes, _ = data
|
camera, frame_name, _, _, motion_boxes, _ = data
|
||||||
|
|
||||||
if not camera or len(motion_boxes) == 0 or camera not in self.config.cameras:
|
if not camera or camera not in self.config.cameras:
|
||||||
return
|
return
|
||||||
|
|
||||||
camera_config = self.config.cameras[camera]
|
camera_config = self.config.cameras[camera]
|
||||||
@ -660,8 +660,10 @@ class EmbeddingMaintainer(threading.Thread):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for processor in self.realtime_processors:
|
for processor in self.realtime_processors:
|
||||||
if dedicated_lpr_enabled and isinstance(
|
if (
|
||||||
processor, LicensePlateRealTimeProcessor
|
dedicated_lpr_enabled
|
||||||
|
and len(motion_boxes) > 0
|
||||||
|
and isinstance(processor, LicensePlateRealTimeProcessor)
|
||||||
):
|
):
|
||||||
processor.process_frame(camera, yuv_frame, True)
|
processor.process_frame(camera, yuv_frame, True)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user