OpenCV crash when attempting to capture default iSight camera

后端 未结 2 1322
猫巷女王i
猫巷女王i 2021-01-23 16:17

I am trying to get openCV running on my Macbook Pro (10.8.5, retina model), and I want to use the default iSight camera for input, as I don\'t want to carry around or buy a USB

相关标签:
2条回答
  • 2021-01-23 16:34

    the problem is just the version of OpenCV, i used the 2.4.5 instead of 2.4.6 and problem resolve...

    0 讨论(0)
  • 2021-01-23 16:44

    The problem was with the version of openCV used (2.4.6). For access to the iSight camera, you have to use 2.4.5, until whatever bug was introduced in 2.4.6 is fixed. To get 2.4.5 on OSX from Homebrew:

    $ brew versions opencv
    $ cd /usr/local/Library/Taps/homebrew-science
    

    checkout git version to older version:

    $ git checkout ae74fe9 opencv.rb
    

    remove the original version of opencv (probably 2.4.6)

    $ brew unlink opencv
    

    install 2.4.5 version:

    $ brew install opencv
    
    0 讨论(0)
提交回复
热议问题