Merge remote-tracking branch 'origin/2.4' into merge-2.4
[profile/ivi/opencv.git] / samples / cpp / video_dmtx.cpp
index a3981c9..e410f7c 100644 (file)
@@ -37,14 +37,14 @@ namespace
         << "  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 (;;)
         {
@@ -52,8 +52,8 @@ namespace
             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);
@@ -76,12 +76,12 @@ namespace
         }
         return 0;
     }
-    
+
 }
 
 int main(int ac, char** av)
 {
-    
+
     if (ac != 2)
     {
         help(av);