My Basler camera suddenly stopped working for no reasons
Greetings,
my problem is a vague one. Let me explain. I have a Basler camera (I think this might be the most important information about my problem). Me and my team worked with it for a long moment (2 months and a half) with the OpenCV library, everything worked well, more specifically the stream capture, until it didn't for no reason at all. We tried everything : we came back to an old version of the code, we changed the library version (3.4.6 or 3.4.7 or 4.1.1), we uninstalled-reinstalled the driver, we changed the OS to a linux one instead of Windows and we even tried an other camera (VRmC-16+/BW) but both don't work. Every time we execute the simplest test lines :
cv::VieoCapture* videoCapture = new cv::VideoCapture(0);
if (!videoCapture->isOpened()) std::cout << "Cannot open the video camera" << std::endl;
We get the message on the shell. Have you any idea what kind of tests I could make to know where the problem comes from ? I feel like it has to do with the OS not recognizing it but literally nothing changed from one night to the next morning : no windows update, no library update, no code changing. Beside, I can use the camera with the software Pylong Viewer so that confuses me even more (I'm using Windows 7).
The model of the camera is : Basler ace USB3 Vision Camera. It's a pretty expensive one with high performances so we would like to know solutions apart from "get an other one".
The only thing that worked is a webcam.
Sorry if the problem is vague but we are as confused as you are.