I'm having the hardest time trying to find a solution for something I think would be very simple. The Capture Constructor (String) in Emgu.CV should "Create a capture from file or a video stream."
However, I cannot capture anything with my code in C# despite my IP camera (Axis) allowing a video stream as follows: Request a Motion JPEG video stream -> http://myserver/axis-cgi/mjpg/video.cgi (By the way, according to the manufacturer, "A successful request returns a continuous flow of JPEG images. The content type is multipart/x-mixed-replace and each image ends with a boundary string .")
FYI, the camera server does require a username and password login, which I haven't been able to figure out how to include with Capture yet, either... Am I supposed to make a HTTPWebRequest first and then do Capture, or am I supposed to do something much more complicated? Not sure if login may be an issue since I didn't get a specific error on this, but suspect a webrequest may be necessay, which I don't know how to include...
Stripped down code in my form.cs:
Capture _capture = null; //Camera
string sourceURL = "http://192.168.0.90/axis-cgi/mjpg/video.cgi";
_capture = new Capture(sourceURL);
Image<Bgr, Byte> imgOriginal = new Image<Bgr, byte>(_capture.RetrieveBgrFrame().ToBitmap());
Then I try to display imgOriginal in an ImageBox. However, at the last step above, it already generates an error that says "unable to create capture..." or something like this.
Shouldn't this be very simple with emguCV or am I mistaken? If someone can help me figure out how to capture the image, I can take it from there with processing my images. Thank you in advance!