hello! i want to access an ip camera like an axis 206 mjpeg stream with the open CV facedetect demo. i am not able to get access to any ip camera under windows, the blobtracker in example works fine for me under linux with an axis camera but not under windows.
has anybody already written something to access mjpeg ip cams with open cv in windows ?
You'll need to grab the image from the camera using another library. Since I never owned an Ip camera, I cant point out one that will surely work... browsing the Axis official site, I found that they have an SDK (http://www.axis.com/techsup/cam_servers/dev/activex.htm)... hope its easy to use.
Once you are able to get the frames, you'll need to change the code of the facedetect example a bit:
Coment out the code where it opens a camera, or a video, since you won't be using highgui to grab frames:
#if 0 // We wont be using highgui to capture the frames
And voila, everything should work... of course you need to set the right WIDTH, HEIGHT and N_CHANNELS from what you get of your camera... and this is surelly not optimized, but should get you started...