Hi everyone!:)
i have started learning C++ and some open CV on my study.
However, i have some problems capturing anything from my webcam using open cv.
I am using a Zepto Nox A15 and its inbuilt camera to capture anything, but when i run the code below, it outputs "FRAME NO GO"!:P
I have even tried to use an external webcam, getting the same error. And when I use that webcam on my desktop computer, it works perfectly!
Anyone have any suggestions?:'(
#include<iostream>
#include<highgui.h>
#include<cv.h>
using namespace std;
void main ()
{
CvCapture *capture =cvCaptureFromCAM(CV_CAP_ANY);
if(!capture)
{
cout << "NO GO!";
}
cvNamedWindow("Vindue", 1);
while(1)
{
IplImage * frame = cvQueryFrame(capture);
if(!frame)
{
cout << "FRAME NO GO!";
break;
}
cvShowImage("Vindue", frame);
cvWaitKey(10);
}
cvReleaseCapture(&capture);
cvDestroyWindow("Vindue");
}