openpilot/tools/webcam
Vehicle Researcher c5d5c5d1f3 openpilot v0.10.1 release
date: 2025-10-24T00:30:59
master commit: 405631baf9685e171a0dd19547cb763f1b163d18
2025-10-24 00:31:03 -07:00
..
camera.py openpilot v0.10.1 release 2025-10-24 00:31:03 -07:00
camerad.py openpilot v0.10.1 release 2025-10-24 00:31:03 -07:00
README.md openpilot v0.10.1 release 2025-10-24 00:31:03 -07:00

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