AVFoundation: Use runtime check for camera authorization#14278
AVFoundation: Use runtime check for camera authorization#14278alalek merged 2 commits intoopencv:masterfrom
Conversation
|
@jeroen , looks like there is an error when building on OSX 10.13 with dynamic check: I believe we need both compile-time and runtime checks and an application should be built on OSX 10.14. Also AppKit release notes state that dynamic checks with |
|
OK thank you for trying. I suppose we need to build on Mojave to use the AVAuthorizationStatus api. I am curious how other applications (which are distributed via a portable installer) handle this problem. |
|
I am a college student learning OpenCV, I can't turn on my webcam as it shows zsh: abort /usr/local/bin/python3 . StackOverflow and other internet resources show due to changes in macOS Mojave, AVFoundation needs to be used. I am currently doing camera = cv2.VideoCapture(0)I would be grateful if you could let me know how to make it work. I know this is not the place to ask, but I would be grateful if you did since I couldn't find documentation on it |
related #14267
This pullrequest changes
Compile-time check has been replaced with runtime check.
cc @jeroen