#include "stdafx.h"
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
int main(int argc, char** argv) {
//Load image into img
IplImage* img = cvLoadImage("E:\la vie\12ly\P1130556.jpeg");
//Create a window with name "Vidu coban" type autosize
cvNamedWindow("Vidu coban", CV_WINDOW_AUTOSIZE);
//Show the image into that window
cvShowImage("Vidu coban", img);
//Wait for a key pressed
cvWaitKey(0);
//Then release image and destroy window
cvReleaseImage(&img);
cvDestroyWindow("Vidu coban");
return 0;
}
sau đó Build thì nó báo lỗi
Cannot open include file: 'opencv2/core/core_c.h':No such file or directory
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
int main(int argc, char** argv) {
//Load image into img
IplImage* img = cvLoadImage("E:\la vie\12ly\P1130556.jpeg");
//Create a window with name "Vidu coban" type autosize
cvNamedWindow("Vidu coban", CV_WINDOW_AUTOSIZE);
//Show the image into that window
cvShowImage("Vidu coban", img);
//Wait for a key pressed
cvWaitKey(0);
//Then release image and destroy window
cvReleaseImage(&img);
cvDestroyWindow("Vidu coban");
return 0;
}
sau đó Build thì nó báo lỗi
Cannot open include file: 'opencv2/core/core_c.h':No such file or directory
Comment