错误信息:
Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 819 MB memory) -> physical GPU (device: 0, name: GeForce GTX 960M, pci bus id: 0000:01:00.0, compute capability: 5.0)
[ERROR:0] global D:\programing\opencv\sources\modules\videoio\src\cap.cpp (392) open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.1.1) D:\programing\opencv\sources\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): output.avi in function 'icvExtractPattern'
2019-12-23 23:06:10.867240: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
我在使用 tensorflow 运行 python 文件,利用 cv2 写入视频出现的报错,具体造成错误的原因可能是我使用 cmake MinGW 时关联了 python(我的所有python环境使用的Anaconda安装),也可能是我电脑环境变量的问题,使得在D:\programing\opencv 与 python 的 opencv 文件产生冲突,于是我卸载重装并解决了问题
pip uninstall opencv-python
pip install opencv-python