Webcam + OpenCV

Hello people, For an project i’m selecting an camera that I want to use for motion detection. In another topic I’ve read that it’s possible to use an IP-camera. My question is, Can I use an webcam on the X4 port of the PLCnext control? Thanks. Christian