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 (;;)
{
break;
cv::Mat gray;
cv::cvtColor(frame,gray,COLOR_RGB2GRAY);
- vector<string> codes;
+ vector<String> codes;
Mat corners;
findDataMatrix(gray, codes, corners);
drawDataMatrixCodes(frame, codes, corners);