Ask Your Question

sep_vanmarcke's profile - activity

2017-03-22 11:37:18 -0500 commented question namedWindow + imshow not showing on the screen

If i do dpkg -s libgtk-3-0 | grep '^Version' i get Version: 3.18.9-1ubuntu3.2, so it seems like i have both gtk2 and gtk3? Is that good, bad? Should i install qt?

2017-03-22 05:29:01 -0500 commented question namedWindow + imshow not showing on the screen

I think it's gtk2. I did dpkg -s libgtk2.0-0 | grep '^Version' and i got Version: 2.24.30-1ubuntu1

2017-03-22 05:19:38 -0500 commented question namedWindow + imshow not showing on the screen

I have OpenCV 3.2.0 from github and i'am running ubuntu 16.04. Sorry for the noob question but how do i know with gui kit i use?

2017-03-22 05:06:38 -0500 asked a question namedWindow + imshow not showing on the screen

I can't get the window with the video to show on the screen. The light of the web camera flashes so it opens it and the program is in infinite loop when i run yet nothing shows on the screen.

#include <iostream>
#include <string>
#include <sstream>

#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>

using namespace cv;

int main(int argc, char **argv) {

    VideoCapture cap(0);
    namedWindow("video", WINDOW_NORMAL);
    while (1) {
        Mat frame;
        cap >> frame;
        imshow("video", frame);
        if (waitKey(30) >= 0) break;
    }
    cap.release();
    return 0;
}