Getting a TeleDyne Line Scan Camera to open with VideoCapture
I am trying to create a program that opens up different brands of cameras with opencv, I have had success with one brand of camera, but have had trouble opening up a TeleDyne Dalsa camera, but when I run the program I cannot open the video capture class. My relevant code is below
int runCamera()
{
int fps = 10;
int deviceID = 0;
int apiID = CAP_ANY;
cout<<"Press 'R' to pause or resume a recording\nPress the Spacebar to begin a recording\nPress 'S' to stop or continue the feed"; bool camrun = true;
Mat img2;
Mat img;
VideoCapture cap(deviceID + apiID);
VideoWriter writer;
int fcc = CV_FOURCC('I','Y','U','V'); //Codec Number
camrun = true;
if (!cap.isOpened())
{ cerr<< "\nERROR CANNOT OPEN CAMERA";
return -1;
}
namedWindow("HELLO CAMERAAAA", WINDOW_KEEPRATIO);