Answer the question
In order to leave comments, you need to log in
How to get bitmap from ip camera?
Hello, how to work with ip camera?
I need to make a function that accepts the ip of the camera and returns a bitmap file.
I usually use the library AForge.Video
.
MJPEGStream stream;
public Form1()
{
InitializeComponent();
stream = new MJPEGStream("http://185.10.80.33:8082/cgi-bin/faststream.jpg");
stream.NewFrame += GetNew;
stream.Start();
}
void GetNew(object sender, NewFrameEventArgs eventArg)
{
Bitmap bmp = (Bitmap)eventArg.Frame.Clone();
pictureBox1.Image = bmp;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question