Followed these directions to integrate the new OpenCV:
http://www.barbato.us/2011/12/20/ope...eator-windows/
However, i'm getting errors
error.jpg
#include <iostream>
#include <opencv2/opencv.hpp>
//#include <opencv2/highgui/highgui.hpp>
//#include <opencv2/core/core.hpp>
#include <opencv/cv.h>
#include <opencv/highgui.h>
using namespace cv;
int main(int, char**)
{
VideoCapture cap(0); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;
}
#include <iostream>
#include <opencv2/opencv.hpp>
//#include <opencv2/highgui/highgui.hpp>
//#include <opencv2/core/core.hpp>
#include <opencv/cv.h>
#include <opencv/highgui.h>
using namespace cv;
int main(int, char**)
{
VideoCapture cap(0); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks