I am working on a gesture based mouse and keyboard using OpenCV and Mediapipe
and python and I want to make the window on top only while in keyboard mode and when entering mouse mode the window goes back to normal.
I tried cv2.setWindowProperty("Image",cv2.WND_PROP_TOPMOST , 1)
and it worked but the window stays always on top and I don't know how to reverse it.