You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying a simple opencv demo of reading the camera on macOS Sequoia 15.1. Strangely, it doesn't pop up any authorization windows. I confirmed that I can pop up the authorization window in other terminals (built-in terminal/warp/iterm2). Even though I reset the camera service with tccutil it didn't help (tccutil reset Camera).
I'm using rioterm 0.2.1 (also 0.2.2) from homebrew, macOS version is Sequoia 15.1, .
importnumpyasnpimportcv2ascvcap=cv.VideoCapture(0)
ifnotcap.isOpened():
print("Cannot open camera")
exit()
whileTrue:
# Capture frame-by-frameret, frame=cap.read()
# if frame is read correctly ret is Trueifnotret:
print("Can't receive frame (stream end?). Exiting ...")
break# Our operations on the frame come heregray=cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
# Display the resulting framecv.imshow('frame', gray)
ifcv.waitKey(1) ==ord('q'):
break# When everything done, release the capturecap.release()
cv.destroyAllWindows()
To run this example you need to pip install opencv-python and numpy libraries.
The text was updated successfully, but these errors were encountered:
As a supplement, I tested accessing special folders such as Desktop/Documents/Downloads on macOS (these folders require authorization), and rio was able to issue authorization normally.
Ah, yes, at first I thought Rio won't request the camera permission, but now it seems that this may require further debugging. I want to know if you can reproduce it?
I'm trying a simple opencv demo of reading the camera on macOS Sequoia 15.1. Strangely, it doesn't pop up any authorization windows. I confirmed that I can pop up the authorization window in other terminals (built-in terminal/warp/iterm2). Even though I reset the camera service with tccutil it didn't help (
tccutil reset Camera
).I'm using rioterm 0.2.1 (also 0.2.2) from homebrew, macOS version is Sequoia 15.1, .
To run this example you need to pip install opencv-python and numpy libraries.
The text was updated successfully, but these errors were encountered: