@@ -58,5 +58,6 @@ WORKDIR /opt/frigate/
ADD frigate frigate/
COPY detect_objects.py .
COPY benchmark.py .
+COPY process_clip.py .
CMD ["python3.7", "-u", "detect_objects.py"]
@@ -130,7 +130,7 @@ class EventProcessor(threading.Thread):
return
with open(f"{os.path.join(self.clip_dir, clip_name)}.json", 'w') as outfile:
- json.dump(event_data, outfile)
+ json.dump({x: event_data[x] for x in event_data if x not in ['frame']}), outfile)
def run(self):
while True: