VideoCapture无法在Python中工作(Win 8.1 64位)

时间:2014-03-03 10:09:32

标签: python opencv ffmpeg windows-8.1

import cv2
capture = cv2.VideoCapture("slow.avi")
while not capture.isOpened():
  capture = cv2.VideoCapture("slow.avi")
  cv2.waitKey(1000)
  print "Wait for the header"

我尝试了很多不同的视频文件(flv,wmv),但我无法打开任何视频文件。我按照https://stackoverflow.com/a/11703998指示将OpenCV \ sources \ 3rdparty \ ffmpeg目录中的文件复制到C:\ Python27 \目录但不能正常工作

0 个答案:

没有答案
相关问题