flowpilot icon indicating copy to clipboard operation
flowpilot copied to clipboard

how to support USB webcam or wifi cam?

Open WJayWJay opened this issue 2 years ago • 5 comments

have any idea ?

WJayWJay avatar Oct 01 '22 01:10 WJayWJay

@WJayWJay If you are able to setup flowpilot on PC running with recorded video. Then all you need to change is tmp to 0 for Webcam and <url of image feed> for WiFi Cam. https://github.com/flowdriveai/flowpilot/blob/162251cdaeb1f1b4207f2b95103c4463c36f5458/selfdrive/sensord/java/ai.flow.sensor/camera/CameraManager.java#L42

RaghavPrabhakar66 avatar Oct 01 '22 15:10 RaghavPrabhakar66

I mean running it on android device ,not using embedded cam. can realize it or have any tech questions? @RaghavPrabhakar66

WJayWJay avatar Oct 02 '22 00:10 WJayWJay

Using external cam on android is not really on our roadmap. But if you can get the external camera image buffer, in either of the c++/python/java side, it should be easy enough and can guide you.

MankaranSingh avatar Oct 02 '22 02:10 MankaranSingh

external cam can be added like this: https://discord.com/channels/976146733648191558/1022930526522331146/1083360322410254356

MankaranSingh avatar Mar 31 '23 17:03 MankaranSingh

Any news or updates? My head unit doesn't have built-in camera and external one connected via USB doesn't work with flowpilot (works with app provided by manufacturer).

@WJayWJay If you are able to setup flowpilot on PC running with recorded video. Then all you need to change is tmp to 0 for Webcam and <url of image feed> for WiFi Cam.

https://github.com/flowdriveai/flowpilot/blob/162251cdaeb1f1b4207f2b95103c4463c36f5458/selfdrive/sensord/java/ai.flow.sensor/camera/CameraManager.java#L42

Is there any way to update this file without installing Flowpilot from the scratch if I change this line capture = new VideoCapture("/storage/emulated/0/Android/data/ai.flow.android/files/tmp"); with url from USB camera?

vasyl91 avatar May 30 '24 08:05 vasyl91