最近看了纹理特征方面的paper,看了一些资料之后,想要实际动手实现一下其中LBP算法,果然OpenCV中已经实现。
问题 No module named "cv2"
当我在我们项目顶部import cv2时,提示没有cv2模块,换言之就是没有安装openCV,好吧!

安装出错
运行
pip install cv2
报错

解决
pip install opencv-python

最近看了纹理特征方面的paper,看了一些资料之后,想要实际动手实现一下其中LBP算法,果然OpenCV中已经实现。
当我在我们项目顶部import cv2时,提示没有cv2模块,换言之就是没有安装openCV,好吧!
运行
pip install cv2
报错
pip install opencv-python
本文标题:Mac下安装OpenCV问题
本文链接:https://www.haomeiwen.com/subject/ogxthqtx.html
网友评论