Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

In my application, i am connecting to an ip cam. When i start to display the frames which i capture from the cam, memory usage is rising and rising. I googled it, even i searched an answer at the Emgu forum, i couldn't get an answer. Anybody can help me?

here my code:

C#
Capture cap = new Capture("rtsp://....");
Image<Bgr, byte> frame;

void StartEngine()
{
   while(cap.Grab())
   {
      frame = cap.QueryFrame();
   }
   
}

void cap_ImageGrabbed(object sender, EventArgs e)
{
    ımageBox1.Image = frame;
}
Posted
Updated 4-Oct-18 21:40pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900