WindowStaysOnTopHint

asked Mar 13 '16

microelly2 gravatar image

I want to have the outputs always on top Is there a way to configure cv2.imshow() like a Qt Gui.QWidget

w.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)

Preview: (hide)

Comments

2

Which framework do you use? For Win32 it is something like that:

cv::namedWindow("OpenCV window");
HWND mainHandle = findWindow("Main HighGUI class", "OpenCV window");
SetWindowPos(mainHandle, HWND_TOPMOST, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE);

Note: Theres a cvGetWindowHandle() function which returns the "HighGUI class" HWND. This does not work correct. There is nothing comparable in OpenCV as far as I know.

matman gravatar imagematman (Mar 13 '16)edit