简体   繁体   中英

OpenCV: not authorized to capture video OpenCV: camera failed to properly initialize

OpenCV: not authorized to capture video (status 0), requesting...
OpenCV: camera failed to properly initialize!

I am using macOS Mojave

in system preferences->security-> camera there is no terminal option appeared in this area. how may I invoke terminal to access the camera, is there any command that I can use?

any help would be highly appreciated.

Run the same code from the command line. It will ask for camera permission and let you use your app on second run

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM