WindowStaysOnTopHint

asked 2016-03-13 08:18:34 -0500

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)

edit retag flag offensive close merge delete

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 ( 2016-03-13 08:57:31 -0500 )edit