简体   繁体   中英

Parallel processing using the AForge.Net library and C#.

My program works as follows:

  1. Get new frame from camera.
  2. Filter skin color in the frame (ie extract skin in the image).
  3. Apply motion detection on the result, based on the previous step.

That is, I am trying to detect motion of objects that have skin color. But I want to speed up my program, so I thought about using parallel programming, where I use two threads, one for skin filtering, and one for motion detection, and then do a logical AND of the results.

I am using C# and the Aforge.Net library. Can I do what I described using C#? Could you please give me some hints on how to accomplish what I have described? All I have been able to find is Parallel.For .

There are several ways to do threaded and parallel processing in .NET:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM