Bring openCV window to front with focus on macOS

Viewed 241
1 Answers

You can install pyobjc, import AppKit and then use the following line before waitKey():

AppKit.NSApplication.sharedApplication().activateIgnoringOtherApps_(1)
Related