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

  • SEARCH
  • Home
  • 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 7020207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:17:18+00:00 2026-05-27T23:17:18+00:00

I have an application that does some image processing on each new frame, recently

  • 0

I have an application that does some image processing on each new frame, recently I bought a new web cam that has really nice resoultion of 1280×960 compared to my old cam(360×240), my application does some image processing on each new frame from web cam but with such a high resolution the processing just goes to slow and my app hangs. I was thinking that I could start say 10 threads at application start and crop each frame to 10 equal pieces from main thread and pass it to worker threads so every worker thread only has to deal with small part of frame.

My application analyzes pixel colors and report when correct color is found,so I would like to re-create this with threading.

I worked before with Threading and Thread pool but I’m not really sure how to keep thread alive and pass objects from main thread while it’s running, so any piece of code would be helpuful, or maybe there is a better approach to this problem?

Thanks

  • 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-27T23:17:19+00:00Added an answer on May 27, 2026 at 11:17 pm

    That is a classic case for “Producer-Consumer”… you webcam being the “producer” and the threads being the “consumers”…

    In .NET (4) there is a really nice implementation called BlockingCollection to build this easily – see http://msdn.microsoft.com/en-us/library/dd997371.aspx and http://msdn.microsoft.com/en-us/library/dd267312.aspx

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

Sidebar

Related Questions

We have built a web application that accepts SOAP messages, does some processing, calls
I have an application that does some image processing using rmagick and imagemagick. This
We have a Mono application under Linux that does image processing on a bunch
I am making an application that does some custom image processing. The program will
I have a C# Application that does some maintenance tasks. It needs to run
I have a Windows Forms application that I wrote that does some monitoring of
I have inherited an application that pulls messages out of an MSMQ does some
I have C++ application which has UI developed using MFC, does some networking using
I have an android application that parses some HTML, downloads an image, and displays
I have a bowling web application that allows pretty detailed frame-by-frame information entry. One

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.