From 974f7bd0dfb7913f4a9fcafbb5861e3a079e4efa Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 13 Sep 2020 10:02:13 -0500 Subject: [PATCH] fix mqtt snapshot --- frigate/object_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 488b26c8a..57e79d3b3 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -254,7 +254,7 @@ class TrackedObjectProcessor(threading.Thread): def snapshot(camera, obj): best_frame = cv2.cvtColor(obj['frame'], cv2.COLOR_RGB2BGR) - mqtt_config = self.camera_config.get('mqtt', {'crop_to_region': False}) + mqtt_config = self.camera_config[camera].get('mqtt', {'crop_to_region': False}) if mqtt_config.get('crop_to_region'): region = obj['region'] best_frame = best_frame[region[1]:region[3], region[0]:region[2]]