ch7 the first demo knn with a bug:
you should flowing the bug then found the file name paths.py,then add the code
#这边加一个判断如果文件名多出一个.就把.去掉
filename=filename.lstrip(".")
in line 24.
this bug is involved by os.walk which would add "." in some picture since unknow reason.
ch8 https://blog.csdn.net/liu506039293/article/details/85268412
ch9 缺少dateutil
pip install python-dateutil
ch11
convolutons.py 由于opencv for python 的一个Bug这里一次只有一个能显示,所以采用保存图片的方法来跳过这个地方
# show the output images
#cv2.imshow("Original", gray)
#cv2.imshow("{} - convole".format(kernelName), convolveOutput)
#cv2.imshow("{} - opencv".format(kernelName), opencvOutput)#由于opencv for python 的一个Bug这里一次只有一个能显示,所以采用保存图片的方法来跳过这个地方
cv2.imwrite("./{}convole.jpg".format(kernelName),convolveOutput)
cv2.imwrite("./{}opencv.jpg".format(kernelName),opencvOutput)