<< " Resize the screen to be large enough for your camera to see, and it should find an read it.\n\n"
<< endl;
}
-
+
int process(VideoCapture& capture)
{
int n = 0;
char filename[200];
string window_name = "video | q or esc to quit";
cout << "press space to save a picture. q or esc to quit" << endl;
- namedWindow(window_name, CV_WINDOW_KEEPRATIO); //resizable window;
+ namedWindow(window_name, WINDOW_KEEPRATIO); //resizable window;
Mat frame;
for (;;)
{
if (frame.empty())
break;
cv::Mat gray;
- cv::cvtColor(frame,gray,CV_RGB2GRAY);
- vector<string> codes;
+ cv::cvtColor(frame,gray,COLOR_RGB2GRAY);
+ vector<String> codes;
Mat corners;
findDataMatrix(gray, codes, corners);
drawDataMatrixCodes(frame, codes, corners);
}
return 0;
}
-
+
}
int main(int ac, char** av)
{
-
+
if (ac != 2)
{
help(av);