Codeblocks is to be used for writing, the teacher asked, "using the codeblocks and OpenCV libraries in the treatment for 20 seconds of the original video, do not allow custom defined library,"
But the MAC version update only to 13 years is really bad to use,
Please write the teacher see in xcode? Because want to hand in c + + program how to change. Xcodeproj suffix?
Problem two: [command can't open the camera]
# include & lt; Iostream>
#include
#include
#include
using namespace std;
using namespace cv;
Int main ()
{
VideoCapture cap (0);
if(! Cap. IsOpened ())
return -1;
For (;; )
{
Mat frame;
Cap & gt;> Frame;
Imshow (" Webcam Frame ", Frame);
If (waitKey (30) & gt;=0)
break;
}
return 0;
}