python 调用opencv读取视频

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sz76211822/article/details/72356690
import cv2
capture = cv2.VideoCapture("video.avi")
while True:
    ret, img = capture.read()

    result = processFrame(img)

    cv2.imshow('some', result)
    if 0xFF & cv2.waitKey(5) == 27:
        break
cv2.destroyAllWindows()

展开阅读全文

没有更多推荐了,返回首页