How to install openCV 2.4.13 for Python 2.7 on Ubuntu 16.04?

后端 未结 4 1678
心在旅途
心在旅途 2021-02-04 14:20

I have tried a lot of online posts to install opencv but they are not working for Ubuntu 16.04. May anyone please give me the steps to install openCV 2.4.13 on it?

4条回答
  •  Happy的楠姐
    2021-02-04 15:05

    According to this source, from Ubuntu 16.04, you can now just do this to install OpenCV for Python2.7:

    pip install opencv-python
    

    or for python3:

    pip3 install opencv-python
    

    For more information, see here.

    I tested this on my machine and it works, great stuff this :).

    This is much easier than all other methods I have come across thus far.

提交回复
热议问题