mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
stop writing json file to disk
This commit is contained in:
parent
8874a55b0f
commit
4d22e172ff
@ -141,18 +141,6 @@ class EventProcessor(threading.Thread):
|
|||||||
logger.error(p.stderr)
|
logger.error(p.stderr)
|
||||||
return
|
return
|
||||||
|
|
||||||
with open(f"{os.path.join(self.clips_dir, clip_name)}.json", 'w') as outfile:
|
|
||||||
json.dump({
|
|
||||||
'id': event_data['id'],
|
|
||||||
'label': event_data['label'],
|
|
||||||
'camera': camera,
|
|
||||||
'start_time': event_data['start_time'],
|
|
||||||
'end_time': event_data['end_time'],
|
|
||||||
'top_score': event_data['top_score'],
|
|
||||||
'false_positive': event_data['false_positive'],
|
|
||||||
'zones': list(event_data['entered_zones'])
|
|
||||||
}, outfile)
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
if self.stop_event.is_set():
|
if self.stop_event.is_set():
|
||||||
|
Loading…
Reference in New Issue
Block a user