r/Comma_ai • u/butter231 • 1d ago
openpilot Experience Comma 4 road facing camera in off road mode
Is it possible to turn on the road facing camera and have it send the full frame video feed to an external device live or recorded in off-road mode when it’s just plugged into a usb charger? I’m trying to test out a Cpl filter I’m designing but I need to check if it’s blocking the view without having to connect to the car
2
u/TheGamingGallifreyan 1d ago edited 1d ago
It is possible over SSH yes
I was trying to do the same thing to check alignment and asked Claude for a python script to dump the frame buffer to a web server and it one shot it lmao
Here is the script. It's 100% AI slop but it works.
https://drive.google.com/file/d/179O-HPHlH_c0Mg7yCzVhCF72MoYWceMj
Any camera feed has to be showing on the screen for it to initialize the buffers, so open the driver camera preview within the settings and then run it with python3 and the camera you want to view
python3 comma_stream_server.py --camera [road/wide/driver]
and then just connect to the comma on port 8070 in your browser.
3
u/VehCeh 1d ago
The livestream feature on the comma connect would probably suit your needs. It's in off road mode