零、课程简介

参考资料:

花书太深奥了,最后一本比较适合初学者。
还可以看西瓜书。
计算机视觉的研究范围:
其中“语义感知”部分是深度学习的主要研究内容,“几何属性”部分不是深度学习的内容。

一、环境配置
安装opencv-python的方法:在Anaconda Prompt下输入:“pip install opencv-python”。
验证安装成功的小程序:
在Pycharm的新建的.py文件里输入:
#导入cv模块
import cv2 as cv
#读取图像,支持 bmp、jpg、png、tiff 等常用格式
img = cv.imread("c:\course\lena.jpg")
#创建窗口并显示图像
cv.namedWindow("Image")
cv.imshow("Image",img)
cv.waitKey(0)
#释放窗口
cv.destroyAllWindows()
此处如果报错:“(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \uXXXX escape ”,出现原因和解决办法是:
“img = cv.imread("c:\course\lena.jpg")”这行代码中的“\””在Python中表示转义,需要改成:
img = cv.imread(r"c:\course\lena.jpg")
运行结果:显示该图片。
二、计算机视觉的主要研究问题



.....
三、开源库介绍




Tip:
安装CUDA时出现兼容性问题:可能原因:Win10的版本问题,请换成至少1703以上。
网友评论