Hello!
I need load a video files with opencv.
I used this programming in the main.cpp.
VideoCapture capture("video2_alcorcon.avi");
for(; {
capture >> src;
imshow("imagen", src);
waitKey(10);
}
In file.pro I include:
INCLUDEPATH += C:\\Users\\Amaia\\Desktop\\opencvmin\\install\\inc lude
LIBS += -LC:\\Users\\Amaia\\Desktop\\opencvmin\\install\\li b \
-lopencv_core240 \
-lopencv_highgui240 \
-lopencv_imgproc240 \
-lopencv_features2d240 \
-lopencv_calib3d240
And in header too:
#include <opencv/cv.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv; //opencv
But, I have got an error (file upload). I'm looking for a solution but I haven´t got.
Please help me. I need use opencv in my proyect.
Bookmarks