Ask Your Question

Revision history [back]

opencv video capture of USB device without drivers

Alright. So I've got a camera without working windows drivers. I'd like to use VideoCapture to access the camera and see if I can access it with opencv. However, the camera is not identified as camera from Windows. It is listed as "usb composite device".

The hardware id is something like USB\VID_XXXX&PID_YYYY.

The "default" way to access a camera stream in opencv is not working.

int main(int argc, char** argv)
{
    VideoCapture cap(0);

    if (!cap.isOpened()) {
        cerr << "ERROR! Unable to open camera\n";
        return -1;
    }
}

Is there any way to try to get opencv access the cam? I can also install winusb drivers for the camera if that helps.