From ae01cc67f75fe9cc28c9caab643ef5075aa343fd Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Thu, 7 Nov 2024 20:52:02 -0800 Subject: [PATCH] Change to 1080p pixel coords --- 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 3e2177c..2d37e72 100644 --- a/bus_analyzer/bus_analyzer/extract.py +++ b/bus_analyzer/bus_analyzer/extract.py @@ -315,8 +315,8 @@ def recognize_time_of_day(frame): } threshold = 20 # use stronger constraint once we have dusk, night and dawn footage # these are for 720p; will need to multiple by 3/2 for 1080p - sky_pixel = frame.getpixel((1076, 128)) - dash_pixel = frame.getpixel((630, 576)) + sky_pixel = frame.getpixel((1614, 192)) + dash_pixel = frame.getpixel((945, 864)) MAX_DIST = 6**0.5 * 255 sky_distances = []