我一直在尝试制作一个可以打开设备摄像头的应用程序,但遇到以下错误:
[CRITICAL ] [Camera ] Unable to find any valuable Camera provider at all!
videocapture - ImportError: No module named VideoCapture
File "C:\Users\Gaston\Downloads\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\Gaston\Downloads\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\camera\camera_videocapture.py", line 15, in <module>
from VideoCapture import Device
opencv - ImportError: No module named cv
File "C:\Users\Gaston\Downloads\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\Gaston\Downloads\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\camera\camera_opencv.py", line 20, in <module>
import cv
尝试安装opencv,但仍然无法工作。我的代码只是kivy文档中的代码示例: http://kivy.org/docs/examples/gen__camera__main__py.html
很抱歉,我没有足够的声誉来评论,但我相信你应该检查你是否有任何图书馆可以支持相机。我相信你是在进口cv而不是cv2。检查如果问题仍然存在,请检查文件位置是否安装了必要的库。我从网上得到这个密码。在我的电脑上运行可能会对你有所帮助:
相关问题 更多 >
编程相关推荐