This commit is contained in:
Blake Blackshear 2020-09-07 19:37:21 -05:00
parent 2f758af097
commit 0b7f65e227
2 changed files with 2 additions and 1 deletions

View File

@ -58,5 +58,6 @@ WORKDIR /opt/frigate/
ADD frigate frigate/ ADD frigate frigate/
COPY detect_objects.py . COPY detect_objects.py .
COPY benchmark.py . COPY benchmark.py .
COPY process_clip.py .
CMD ["python3.7", "-u", "detect_objects.py"] CMD ["python3.7", "-u", "detect_objects.py"]

View File

@ -130,7 +130,7 @@ class EventProcessor(threading.Thread):
return return
with open(f"{os.path.join(self.clip_dir, clip_name)}.json", 'w') as outfile: 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): def run(self):
while True: while True: