opencv VideoCapture d-link DCS-930L

2019-05-20 23:02发布

问题:

I am trying to access my ip camera fom opencv without success.

VideoCapture capture("http://IP/MJPEG.CGI?.mjpeg&user=username&password=mypassword")

when trying using VLC it's works :

http://IP/MJPEG.CGI?.mjpeg

then VLC ask for username&password and it's fine.

Thanks for helping

回答1:

Done Successfully using the following:

http://username:password@ip/video.cgi?.mjpg