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
Post a Comment