Read image from URL for openCV input
I want to read from IP camera with openCV, IP camera provides a RTSP output rtsp://ip:port开发者_运维技巧/video.3gp but cvCaptureFromFile("rtsp://ip:port/video.3gp");
shows a blank screen, the alternative solution is using using JPEG output, its url is http://ip/jpg/image.jpg and will every 50ms, but also cvCaptureFromFile("http://ip/jpg/image.jpg");
returns blank screen; I dont't know do I use it in right way or not.
I've managed to find a way to load images into OpenCV right away from the image URL. Find out how to do it here: http://techify.giridharsweb.com/2012/08/05/read-image-from-url-into-opencv/
精彩评论