完美解决报错module ‘cv2‘ has no attribute ‘quality‘
import cv2 as cv#BRISQUEresult_static = cv.quality.QualityBRISQUE_compute(fimg,img_1)AttributeError: module 'cv2' has no attribute 'quality'开始报错:AttributeError: module 'cv2' has no attribute 'quality'
·
import cv2 as cv
#BRISQUE
result_static = cv.quality.QualityBRISQUE_compute(fimg,img_1)
AttributeError: module 'cv2' has no attribute 'quality'
开始报错:AttributeError: module 'cv2' has no attribute 'quality'
原因,我之前安装的是opencv,安装教程在博客主页有,opencv包里不包含quality,需要卸载后重新安装。
pip uninstall opencv-python
然后安装 opencv-contrib
opencv-contrib-python
安装包的时候一定要关掉vpn,不然会安装失败
报错:ValueError: check_hostname requires server_hostname
更多推荐
已为社区贡献3条内容
所有评论(0)