From 8a0ca215cff83b0c8af9286e7b3b0d1002594740 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Wed, 13 Nov 2024 11:18:51 -0800 Subject: [PATCH] Updated colour of the dawn sky and dashboard to observed value --- bus_analyzer/bus_analyzer/extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus_analyzer/bus_analyzer/extract.py b/bus_analyzer/bus_analyzer/extract.py index 7512a86..ce68637 100644 --- a/bus_analyzer/bus_analyzer/extract.py +++ b/bus_analyzer/bus_analyzer/extract.py @@ -314,14 +314,14 @@ def recognize_time_of_day(frame): 'day': (82, 218, 217), 'dusk': (217, 150, 181), 'night': (0, 0, 0), - 'dawn': (56, 53, 125), # estimated from previous years + 'dawn': (36, 38, 117), } dash_colours = { 'score': (181, 181, 150), 'day': (146, 0, 1), 'dusk': (115, 0, 0), 'night': (41, 0, 0), - 'dawn': (118, 0, 0), # estimated from previous years + 'dawn': (78, 0, 0), } threshold = 20 # use stronger constraint once we have dusk, night and dawn footage sky_pixel = frame.getpixel((1614, 192))