1、源代碼下載地址
《OpenCV3 計算機視覺--Python語言實現 第二版》由我們翻譯,其英文書名《Learning OpenCV3 Computer Vision with Python second edition》,源代碼的下地址為:
https://github.com/techfort/pycv
或
http://examples.oreilly.com/9781785283840/
中文版第15頁第一段提到的接口例子程序在下面下載:
https://github.com/abidrahmank/OpenCV2-Python/tree/master/Official_Tutorial_Python_Codes
2、糾錯
(1)第11頁最下面的第二行代碼中的“libavcodecdev”應修改為“libavcodec-dev”
(2)第75頁將cv2.rectangle(img,(ex,ey),(ex+ew,ey+eh),(0,255,0),2)
修改為:
cv2.rectangle(img,(ex+x,ey+y),(ex+x+ew,ey+y+eh),(0,255,0),2)
感謝 河海大學 物聯網工程學院 沈曉海的指正
(3) 將第7頁中的xcode-select -install 修改為xcode-select --install
重慶工商大學 計信學院 劉波