各位版友好~
我朋友傳了一個程式給我玩玩~ (備註: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")