How to fix opencv python cv2.VideoCapture rtsp onvif “nonmatching transport in server reply” error?

前端 未结 2 813
面向向阳花
面向向阳花 2021-02-10 00:23

I\'m on windows using python 3.6.4, installed opencv (3.4) through pip. Here\'s the code I\'m using:

import numpy as np
import cv2

cap = cv2.VideoCapture(\'rtsp         


        
2条回答
  •  再見小時候
    2021-02-10 00:33

    I installed OPENCV onto Windows 10 using Microsoft's VCPKG. After which, OPENCV worked fine - except it would not open videos files.

    Without success, I tried many suggestions. Finally, what worked for me was very SIMPLE. I included opencv's BIN folder as a PATH in Windows Environment System Variables. That's it. Now, video files are opened and played just fine.

提交回复
热议问题