TensorFlow2.0-Examples icon indicating copy to clipboard operation
TensorFlow2.0-Examples copied to clipboard

yolov3-tensorflow2.0 release 版本cv2无法读取视频

Open shixinglingguihua opened this issue 6 years ago • 4 comments

env: tensorflow-gpu== 2.0.0 opencv-python== 4.1.1.26 numpy==1.16.4 Pillow==6.1.0 scipy==1.2.1 wget==3.2 seaborn==0.9.0 easydict==1.9

cv2 读取视频是没有问题的,已测试 但是在tensorflow2.0 videodemo中,读取视频提示 raise ValueError("No image!") 请核查一下问题所在

shixinglingguihua avatar Oct 11 '19 01:10 shixinglingguihua

你没摄像头吧

YunYang1994 avatar Oct 11 '19 04:10 YunYang1994

I think you did not read the video from drive or you read video from camera if you set cv2.VideoCapture(0)

rashidch avatar Nov 19 '19 13:11 rashidch

我也出现了。。。 用0可以运行usb摄像头,运行“video_path = "./docs/road.mp4" ”就是raise ValueError("No image!"),奇怪?

guangdian214 avatar Dec 25 '19 07:12 guangdian214

运行video_deom.py时有 Loaded runtime CuDNN library: 7.0.5 but source was compiled with: 7.6.0.CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version. If using a binary install,upgrade your CuDNN library. 但是我已经升级了CuDNN到9.0了,还是不行。之前看到一个观点是说,anaconda创建的环境没有使用CuDNN9,而是用了自带的CuDNN,但是我按照指示,没有找到对应的文件夹。 这是那篇文章的地址 https://blog.csdn.net/Tilamy/article/details/88616201

PonyPinkPie avatar Feb 03 '20 06:02 PonyPinkPie