Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Hassan__Naufil
Beginner
713 Views

Access RTSP stream with OpenCV 4.1.0-openvino

Hi,

 

I'm using openvino toolkit for optimizing my net for Intel platform. 

I have to setup environment for OpenVino using 'setupvars.bat' file. After environment setup the opencv version is '4.1.0-openvino'.

When I try to access rtsp stream using command

[  cv2.VideoCapture('rtsp://username:password@1.1.1.10/cam/realmonitor?channel=1&subtype=0')  ]  , it gives me False flag and None frame is returned.

I can access this rtsp stream from opencv 3.4.5 with same RTSP URL.

 

Please help me solve it.

 

Thankyou

0 Kudos
3 Replies
chen__ives
Beginner
713 Views

Hi Nassan,

After OpenVINO installation, you also need to download the opencv_ffmpeg_64.dll to open streaming.

For example, go to "C:\Program Files (x86)\IntelSWTools\openvino\opencv", you can run the ffmpeg-download.ps1 in Windows PowerShell to download the opencv_ffmpeg_64.dll.

Hope this information is helpful:)

Hassan__Naufil
Beginner
713 Views

Thanks a lot. It worked

leow__chee_siang
Beginner
713 Views

Hi, i have the same problem with macOS, how to solve this in macOS?

Reply