OpenCV GTK+2.x error

前端 未结 14 2141
轮回少年
轮回少年 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:51

    If you installed OpenCV using the opencv-python pip package, be aware of the following note, taken from https://pypi.python.org/pypi/opencv-python

    IMPORTANT NOTE MacOS and Linux wheels have currently some limitations:

    • video related functionality is not supported (not compiled with FFmpeg)
    • for example cv2.imshow() will not work (not compiled with GTK+ 2.x or Carbon support)

    Also note that to install from another source, first you must remove the opencv-python package

    To install OpenCV in Ubuntu I followed this guide, and it worked perfectly fine: http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/

提交回复
热议问题