title: How to show different Frame per second of video in two window in opencv
body: <p>I am using opencv to show frames from camera. I want to show that frames in to two separation windows. I want show real frame from camera into first window (show frames after every 30 mili-seconds) and show the frames in second window with some delay (that means it will show frames after every 1 seconds). Is it possible to do that task. I tried to do it with my code but it is does not work well. Please give me one solution to do that task using opencv and visual studio 2012. Thanks in advance</p>
  
  <p>This is my code</p>
  
  <pre><code>VideoCapture cap(0);
  if (!cap.isOpened())
  {
      cout &lt;&lt; "exit" &lt;&lt; endl;
      return -1;
  }
  namedWindow("Window 1", 1);
  namedWindow("Window 2", 2);
  long count = 0;
  Mat face_algin;
  while (true)
  {
      Mat frame;
      Mat original;
      cap &gt;&gt; frame;
      if (!frame.empty()){
          original = frame.clone();           
          cv::imshow("Window 1", original);
          }
      if (waitKey(30) &gt;= 0) break;// Delay 30ms for first window
  }
  </code></pre>