Mac camera fail to initialise
Hi all,
When I try to run:
cv::VideoCapture cap;
cap.open(0);
I get the error:
Error:
OpenCV: not authorized to capture video (status 0), requesting...
OpenCV: camera failed to properly initialize!
It's my first time using OpenCV4 (4.1.0) with C++11 and Xcode.
Any help is appreciated.
Thanks, Tiger
Go to System Preferences->Privacy->Camera and check your privacy permissions.
Hi eshirima, I have done that and all that requested camera access are granted camera permission. I think the issue is that my xcode commandline tool project is not requesting camera access properly.