Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:24:31+00:00 2026-05-26T18:24:31+00:00

I am using EmguCV to query frames sequentially from a capture that I defined

  • 0

I am using EmguCV to query frames sequentially from a capture that I defined as following:

Capture cap;
private void Form1_Load(object sender, EventArgs e)
{
    cap = new Capture();
    cap.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, 1280);
    cap.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, 720);
    timer1.Interval = 20;
    timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
    Image<Bgr, byte> img = cap.QueryFrame();
    pictureBox1.Image = img.Bitmap;
}

and then I make some operations like tracking objects, but it’s have very bad performance i mean every about 200 ms I get new frame when removing the lines 5,6 that set the width, height i get very good performance…

my question how can i get good performance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:24:32+00:00Added an answer on May 26, 2026 at 6:24 pm

    Using a timer to acquire images from a web camera is not suggested as it does result in a slow performance. It is much better to acquire a frame when you’re program is doing very little i.e. not processing the frame. Look at the code example CameraCaptue for reference but your code should look something like this.

    Capture cap;
    private void Form1_Load(object sender, EventArgs e)
    {
        cap = new Capture();
        cap.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, 1280);
        cap.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, 720);
        Application.Idle += ProcessFrame;
    }
    private void ProcessFrame(object sender, EventArgs arg)
    {
        Image<Bgr, Byte> frame = _capture.QueryFrame();
        pictureBox1.Image = img.Bitmap;
    }
    

    With this method you are not limited to how fast the timer goes but what your program is doing and how fast your camera can acquire frames at it’s resolution. Since it is quite a high res type (720p) I would expect 15 FPS unless you paid out for a higher frame rate type.

    Hope this helps,

    Cheers,

    Chris

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am developing a campera capture application. I am currently using EmguCV 2.0.
We are working on a video processing application using EmguCV and recently had to
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C#, I need a class called User that has a username, password, active
I am trying to do some facial recognition using EmguCV. I was wondering if
I am making an object tracking application. I have used Emgucv 2.1.0.0 to load
Using the following as an example (with $db being a previously created database connection
Using jQuery, how do I get the value from a textbox and then load
I am interested in using Emgucv for face detection. I have installed emgucv and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.