• DepthAI-v2
  • Connect camera to Windows docker container through PoE/USB

Hi everyone, I am doing some feasibility test. I would like to run windows container on my Win11. After build all the relative dependencies, the c++ code can able to get the pipeline and stop at dai:๐Ÿ˜ƒevice device(pipeline) no matter I connect the Oak camera through PoE or USB. I have followed https://docs.luxonis.com/software/depthai/manual-install#docker but it is for linux container, so as the official depthai image is not for windows/amd64. Also, it seems that using Windows Container over Hyper-V does not support USB-passthrough with my quick walkthrough Google, but I maybe I miss something.

I do appreciate any and all comments that could give me some idea, there's very few information about windows container. Thanks a lot!

Quick update,

I can access PoE camera via dai:๐Ÿ˜ƒevice device(pipeline, dai:๐Ÿ˜ƒeviceInfo(<PoE Camera static ip>));

But still cannot get the USB

@harris66 not sure about usb (might be tricky, like it is for WSL), but for poe I'd assume you can just do --network=host and it'd work on windows as well. If it doesn't, I can try it out. Does the usb/poe device work on the host (not in the docker)?

    erik Hi erik, Thanks for the reply!

    I can grab the image from poe camera inside docker container without adding --network=host argument when docker run the container. Outside the container, when I run the same code, it works for both usb and poe camera. (Just with simple line: dai:: Device device(pipeline)). Yeah I really need to find a way to get usb camera inside the container ideally windows type of container. or maybe I need to give up the way using docker ๐Ÿ™