After upgrade to mac OS Catalina I have no permission to use my iMac camera!
This is my test program:
import cv2
print(cv2.version)
cam=cv2.VideoCapture(0)
while True:
ret, frame = cam.read()
cv2.imshow(‘nanoCam’,frame)
if cv2.waitKey(1)==ord(‘q’):
break
cam.release()
cv2.destroyAllWindows()
cv2.waitKey(1)
+++++++++++++++++++
Output event report:
3.4.2
[Finished in 1.3s with exit code -6]
[cmd: [’/Users/joseperes/anaconda/anaconda3/bin/python3’, ‘-u’, ‘/Users/joseperes/Desktop/cam_Opencv.py’]]
[dir: /Users/joseperes/Desktop]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
On my iMac in setting security and Privacy does not appear ‘Sublime Text’ app to give permission!
Could anyone give an idea to fix this . . .
I can run all programs openCV but without using the camera!
Thanks in advance.
José