Open lazer-dinosaur opened 1 year ago
VSCode and others have had similar problems due to Apple's permission changes: https://github.com/microsoft/vscode/issues/95062
Should be fixed in build 4144.
Has this been solved? I found it was solved in previous versions, but when It desert seems like to work.
ST version: 4169 MacOS: 14.2.1
Use opencv-python: ` import cv2 as cv cap = cv.VideoCapture(0)
while True:
ret, frame = cap.read()
cv.imshow(window_name, frame)
`
and that gives: OpenCV: not authorized to capture video (status 0), requesting... OpenCV: camera failed to properly initialize!
With no window pops up ask for permissions.
I have tried re-install and tccutil reset Camera
Thanks
Does it work outside of Sublime Text @moooooo16 ?
Does it work outside of Sublime Text @moooooo16 ?
Yes. It worked on cml and vscode.
Can confirm this doesn't seem fixed.
This should be fixed in build 4170.
Unfortunately, this still does not work for me. Im on build 4173.
Description of the bug
I'm writing some software in python that requires access to both the webcam and the microphone. When running very simple test scripts that use the camera and/or microphone in VSC or from iterm2 it works fine - on the first occasion a prompt appears asking for permission, and then the code runs successfully. However Sublime Text does not trigger asking for permission, and it seems impossible to grant ST permission.
Steps to reproduce
install opencv and pyaudio
execute this code, normally a window should appear and show the webcam output (works fine in VSC or from terminal):
Try this code for the microphone, (the code runs but the saved .wav is empty, ie. microphone is not used):
Expected behavior
A window should pop up asking for permission for Sublime to use the Camera and/or microphone. After granting permission the code should then run, and a window showing the camera image should appear (or audio is recorded).
Actual behavior
Nothing happens, the video code exits silently with no error. The audio-code runs, but as it cannot access the microphone, nothing is recorded.
Sublime Text build number
4129
Operating system & version
MacOS 12.4
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
No response