I have a opencv program in python that takes frames from a webcam and displays the feed. When 'p' is pushed, it grabbes just the face and display this one frame in another window.
I would like to force this new window on to my second monitor while the camera feed is on the other one - the "main" monitor. Now it just displays on top of the feed.
I have been looking and searching but can't find anything else than moveWindow. How can I use this or another function to do this?
Hope someone can help me one this!
I found that using named window followed by moveWindow allowed me to push the image to my second monitor. The -900 pushes the window upward.
def im_show(img, name, time):
cv2.namedWindow(name)
cv2.moveWindow(name, 900,-900)
cv2.imshow(name, img)
cv2.waitKey(time)
return
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With