I use a Motic USB-camera for microscopy incl image software. Because the functionality I’d like to have isnt’t given in the software, I started to write some python code. I installed opencv and tried different indices in “cv.VideoCapture(0…20)”-function, but I can’t connect to camera. The camera is listed in my device manager (Win 10), so driver are installed:
Is it possible to adress the camera with ids shown in the device manager? I tried “cv.VideoCapture(USB\VID_232F&PID_0101&REV_0000)” for instance but it doesn’t work.
I searched for commands showing unique device id. I found “ls/dev/video*”, but I don’t know where to use this command (cmd or VS terminal doesn’t work). Or is it just for linux os?
@crackwitz: Thanks for your tip with VLC. Camera doesn’t work on it, so problem seems to be driven by the driver. But I don’t understand. First: I installed TWAIN driver and Second: the camera is known by the os. So, what’s the problem?
Is there anybody who can answer my question relating the camera id? Is it possible to use the openCV function with a specific id?
I know what you mean, but the point is: it appears as a video device. And the same “WdfCoInstallerXXX.dll” files can be found in the SDK (I asked the manufactor for that and they send me today). I will try to solve the problem with the SDK, but I still don’t know why it should not work with files (dlls and so on) I got yet.