有好多简便的方法。。。
用过就忘了命令,终于记得记下来了
语句:sudo apt-get install python-opencv
验证:
lucask@kingdom:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'2.4.9.1'
>>>