From 50e568b84c518ac115c1f69465fe1cc8de3da038 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 13 Sep 2020 08:57:47 -0500 Subject: [PATCH] allow setting size and cropping of snapshots and best.jpg endpoint --- config/config.example.yml | 7 +++++++ detect_objects.py | 12 ++++++++---- frigate/object_processing.py | 12 ++++++++++-- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/config/config.example.yml b/config/config.example.yml index 86c0b3e06..40a88b962 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -162,6 +162,13 @@ cameras: ################ take_frame: 1 + ################ + # MQTT settings + ################ + # mqtt: + # crop_to_region: True + # snapshot_height: 300 + ################ # This will save a clip for each tracked object by frigate along with a json file that contains # data related to the tracked object. This works by telling ffmpeg to write video segments to /cache diff --git a/detect_objects.py b/detect_objects.py index 6d07cdd7e..b84e92de6 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -381,10 +381,14 @@ def main(): @app.route('//