[Python] OpenCV: not authorized to capture video - mac

Discussão em 'Python' iniciado por Stack, Agosto 1, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying use OpenCV through a 3rd party app called 3D Slicer, but I get the following error:

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


    I tried running Slicer as root with sudo but this didn't change anything

    I added those two key-string pairs to Info.plist, but this also didn't change anything:

    <key>com.apple.security.device.camera</key>
    <string>used_to_track_your_hand</string>
    <key>NSCameraUsageDescription</key>
    <string>also_used_to_track_your_hand</string>


    Is there a way to always gran OpenCV access to the camera? Or what would be the best way to approach this?

    I'm on a MacBook M1 Pro with Monterey 12.3.1

    Continue reading...

Compartilhe esta Página