openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
292 B

#!/usr/bin/env python3
from openpilot.tools.lib.framereader import FrameReader
from openpilot.tools.lib.route import Route
TEST_ROUTE = "a2a0ccea32023010|2023-07-27--13-01-19"
route = Route(TEST_ROUTE)
segnum = 2
road_img = FrameReader(route.camera_paths()[segnum]).get(0, pix_fmt="nv12")