Can't Init Constant Class WebcamVideo

So I’m testing out some AR scripts I found on the forum so I can see how they work in case I want to make one of my own, but I get this error:

TypeError: Error Can Not Init Constant Class (WebcamVideo)

I’m using WebcamVideo instead of OpenCVTexture because I’m on windows. (I’m using panda3d-1.8.1 in case you need to know)

You can’t create an instance of WebcamVideo. Use the getOption(n) interface instead, eg. WebcamVideo.getOption(n). Search around the forums for example code.