OpenCV crash when attempting to capture default iSight camera

后端 未结 2 1348
猫巷女王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: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
    

提交回复
热议问题