diff --git a/backend/video-capture.py b/backend/video-capture.py index 610adad1555dfcbfcc87fd77e6d611bc194e247e..c9086a827f4f4e27081ebbc47c73caccab4e972f 100644 --- a/backend/video-capture.py +++ b/backend/video-capture.py @@ -18,8 +18,8 @@ cameras = [{ "user": "viarezocam", "password": "superponey", "stream": "stream1", - "framegap": 900, # 60 * camera frequency - "count": 0, # mandatory + "framegap": 900, # 60 * camera frequency + "count": 0, # mandatory "cap": None }] @@ -38,9 +38,9 @@ while True: count_prediction = np.sum(pred_map) waiting_time = timedelta(seconds=120 + count_prediction * 30) record = {"place": camera.place, - "date": current_time, - "density": count_prediction, - "waiting_time": waiting_time} + "date": current_time, + "density": count_prediction, + "waiting_time": waiting_time} db_record = models.Records(**record) db.add(db_record) db.commit()