OpenCV GTK+2.x error

前端 未结 14 2171
轮回少年
轮回少年 2020-12-03 07:16

I had installed OpenCV following these steps (). After trying to compile one examples,i got this error :

OpenCV Error: Unspecified error (The function is no         


        
14条回答
  •  鱼传尺愫
    2020-12-03 07:46

    In order to improve @Nic Szer's answer I want to explain how to fix this error on Mac OS in three simple steps.

    1. Remove installed OpenCV version to avoid mess up later

      pip3 uninstall opencv-python 
      
    2. Lower your python version to 3.5 (current version 3.6 has problems with conda which we will use to install OpenCV)

      conda install python=3.5
      
    3. Finally, use conda to install working version of OpenCV

      conda install -c menpo opencv3 
      

    And then voila: OpenCV will start working on your Mac OS(Siera 10.12.4).

提交回复
热议问题