How to run for now:
-
If dependencies haven't been installed run:
pip install -r requirements.txt
-
run
python VideoStreaming/main.py
get_frame()
'''
Uses camera to track the users eyes, in case user has eyes closed for more than 15 frames, send Alert
.
'''
def simulated_user_path(start_address, end_address):
points = get_points_along_path(API_KEY,start_address,end_address)
times,coords = [],[]
for time,geo in points.items():
times.append(times)
coords.append(geo)
return times,coords
Creates a simulated user path from start_address
to ```end_address``. This path also includes the latitude and longitude generated by the external algorithm.
find_places(journey_coords_1,journey_coords_2)
Gets the users current-coodinates and When Drowsey alert is recieved finds the closest gas_station
updateGraphData()
:Function in /VideoStreaming/static/scripts/script.js Updates the Drowsy instance vs time graph.
Thank you!