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 7495153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:59:26+00:00 2026-05-29T17:59:26+00:00

I am working on a system that will analyze video frames from multiple cameras.

  • 0

I am working on a system that will analyze video frames from multiple cameras. Each camera will initialize a WCF session and be assigned a GUID for identification before sending video frames. The processing load is more than the server can accomplish in real time as the number of cameras grow. As such, I am writing a class to manage the data as it arrives in bursts from the motion activated cameras.

Each frame from the cameras must be analyzed in parallel with frames from the other cameras. Each of the cameras will be filling a queue with frames to manage the FIFO nature of the data.

Management of the Queues has left me searching for ideas. Initially I had intended to create a dictionary and insert each GUID-Queue pair. After working on the code for a while I am starting to think that this is not the best approach. Does anyone have any suggestions?

Some simplified sample code:

namespace DataCollection
{
    [ServiceBehavior(Name = "ClientDataView", InstanceContextMode = InstanceContextMode.Single)]
    public class DataCollectionService : IDataCollectionService
    {
        //Dictionary of Guid-Queue pairs
        CameraCollection CameraArray = new CameraCollection(); 

        public Guid RegisterCamera()
        {
            Guid ID = new Guid();
            WorkQueue FrameQueue = new WorkQueue();
            CameraArray.AddCamera(ID, FrameQueue)
            return ID;
        }

        public bool SendData(Guid ID, FrameReady newFrame)
        {
            Frame dataFrame = newFrame.OpenFrame;                
            WorkQueue que = CameraArray.GetQueueReference(ID);
            que.QueueFrame(dataFrame);
            return true;
        }
    }
}

Currently if I hard-code everything for a set number of cameras the system works. Getting it to work with a variant number of cameras is more challenging. Any suggestions or advise would be appreciated.

  • 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-29T17:59:27+00:00Added an answer on May 29, 2026 at 5:59 pm

    .Net framewok 4 has a class called Parallel. This class has an extension method Foreach. With your collection, you can do something like Parallel.Foreach(collection,action),

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

Sidebar

Related Questions

I'm working on a social networking system that will have comments coming from several
I'm working on a little web crawler that will run in the system tray
My Case: I'm working on a system that will need to create various X12
I am working on a system that splits users by organization. Each user belongs
I am working on a system that will have several hundred thousand XML files,
Long story: I'm working on a system that will have Tasks and Handlers .
I am working on an enterprise system that will utilise a RESTful web service
I am working on a system that uses IntPtr's returned from two separate C++
I'm working on a Drupal based system that will not be directly handling login
I'm actually working on a PHP project that will feature a user system (Login,Register,Send

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.