1 | initial version |
there is (limited) stream support in opencv via ffmpeg, if you got an mjpg url, you could try:
VideoCapture cap("http://ceac9.ua-camp-farms.arizona.edu/mjpg/video.mjpg");
unfortunately, that seems to work much nicer in linux, than on win
2 | No.2 Revision |
there is (limited) stream support in opencv via ffmpeg, if you got an mjpg url, you could try:
VideoCapture cap("http://ceac9.ua-camp-farms.arizona.edu/mjpg/video.mjpg");
unfortunately, that seems to work much nicer in linux, than on win
if it does not, you could still open a socket, and use imdecode() on the data you got. e.g, mjpeg is just single jpegs interleaved with multi-part form http headers.