Ask Your Question

davifumi89's profile - activity

2015-03-26 15:08:31 -0500 received badge  Editor (source)
2015-03-26 13:20:05 -0500 asked a question [c++] VideoCapture always returns a null image

Dear folks, I always used VideoCapture to take frames from web cams but since I've used an industrial camera (the david laser scanner one), VideoCapture objects always returns a null image. I've already known I have to change the ID numbers in the VideoCapture constructor but the problem still remains.

VideoCapture cap(0);

cap>>image; // this function return a null image

If I use grap and retrieve

bool t = cap.grab(); //returns true

t = cap.retrieve(image); //returns false

Does anyone know the reason why this problem happens?

I tried this new camera using skype and it works perfectly so it should not be neither an HW problem nor an OS driver one.

Thank you