c++ - QT console application that show video in a QT GUI -


i coding qt console application similar next code

int main() {     videocapture cap(0);      if(!cap.isopened())     return;      namedwindow("webcam");      mat frame;      for(;;)     {         cap >> frame;          imshow("webcam", frame);          if(waitkey(1) >= 0) break;     }      return; } 

i have problem because camera runs 200 fps , function waitkey(1) make application slow , runs 60 fps, if eliminate function waitkey application runs 200 fps image not show.

i wonder if possible show images in qt gui, still runs in loop in console application.

thanks advance.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -