alievk / avatarify-python

Avatars for Zoom, Skype and other video-conferencing apps.
Other
16.23k stars 3.99k forks source link

OpenCV error on Mac OS #5

Closed giorgiop closed 4 years ago

giorgiop commented 4 years ago

bash run_mac.sh hangs at:

[ERROR:0] global /Users/travis/build/skvark/opencv-python/opencv/modules/videoio/src/cap.cpp (193) open VIDEOIO(AVFOUNDATION): raised unknown C++ exception!

Cannot open camera
no-karma-no-cry commented 4 years ago

bash run_mac.sh hangs at:

[ERROR:0] global /Users/travis/build/skvark/opencv-python/opencv/modules/videoio/src/cap.cpp (193) open VIDEOIO(AVFOUNDATION): raised unknown C++ exception!

Cannot open camera

Try to change CAMID in run_mac.sh from 0 to 1 or 2

giorgiop commented 4 years ago

That solved it, thanks.

YubinXie commented 4 years ago

Changing to 2 works for me.

patni11 commented 4 years ago

bash run_mac.sh hangs at:

[ERROR:0] global /Users/travis/build/skvark/opencv-python/opencv/modules/videoio/src/cap.cpp (193) open VIDEOIO(AVFOUNDATION): raised unknown C++ exception!

Cannot open camera

Try to change CAMID in run_mac.sh from 0 to 1 or 2

Can you please tell how todo that?

karfly commented 4 years ago

@patni11, first check that you use the latest version of Avatarify. If you have the latest on, open ./scripts/settings.sh with any text editor and change MAC_CAMID=2 to MAC_CAMID=0, MAC_CAMID=1 or other values.