capturing rtsp camera using OpenCV python

前端 未结 1 1026
粉色の甜心
粉色の甜心 2021-02-04 17:51

I have a remote camera streaming through rtsp protocol and am trying to access it in OpenCV 2.13.1 using python with following code.

camera = cv2.VideoCapture(\"         


        
相关标签:
1条回答
  • 2021-02-04 18:28

    Credit from RTSP stream and OpenCV (Python):

    vcap = cv.VideoCapture("rtsp://192.168.1.2:8080/out.h264")
    while(1):
        ret, frame = vcap.read()
        cv.imshow('VIDEO', frame)
        cv.waitKey(1)
    
    0 讨论(0)
提交回复
热议问题