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.
 
 
 
 
 
 
Andrei Radulescu ef6719f24e
webcam: make driver camera optional (#35455)
2 weeks ago
..
README.md webcam: make driver camera optional (#35455) 2 weeks ago
camera.py webcam: remove other cv2 usage (#33236) 10 months ago
camerad.py webcam: make driver camera optional (#35455) 2 weeks ago

README.md

Run openpilot with webcam on PC

What's needed:

  • Ubuntu 24.04 (WSL2 is not supported) or macOS
  • GPU (recommended)
  • One USB webcam, at least 720p and 78 degrees FOV (e.g. Logitech C920/C615, NexiGo N60)
  • Car harness
  • panda
  • USB-A to USB-A cable to connect panda to your computer

Setup openpilot

  • Follow this readme to install and build the requirements
  • Install OpenCL Driver (Ubuntu)
sudo apt install pocl-opencl-icd

Connect the hardware

  • Connect the camera first
  • Connect your computer to panda

GO

USE_WEBCAM=1 system/manager/manager.py
  • Start the car, then the UI should show the road webcam's view
  • Adjust and secure the webcam
  • Finish calibration and engage!

Specify Cameras

Use the ROAD_CAM (default 0) and optional DRIVER_CAM, WIDE_CAM environment variables to specify which camera is which (ie. ROAD_CAM=1 uses /dev/video1, on Ubuntu, for the road camera):

USE_WEBCAM=1 ROAD_CAM=1 system/manager/manager.py