各位版友好~
我朋友传了一个程式给我玩玩~ (备注:ANACONDA所有模组都是最新)
Spyder 5.0.5
import cv2
o=cv2.imread("image\\lenaNoise.png")
r=cv2.boxFilter(o,-1,(5,5))
cv2.imshow("original",o)
cv2.imshow("result",r)
cv2.waitKey()
cv2.destroyAllWindows()
Run出来
https://imgur.com/a/4zXYrHk
https://imgur.com/undefined
然而用Jupyter or QT
出现下列错误 (找过网络,也把openCV,pip成ju可以读取)
error Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_7760/3546386162.py in <module>
1 import cv2
2 o=cv2.imread("image\\lenaNoise.png")