Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Multithreading 2 winforms in 1 ( 3 webcam in total)

$
0
0

Hello:

I have the next problem. I have 2 winform, the first winform control a motor with a camera where both are syncronized to take several images with a concrete number of frames per seconds. This project is very special and delicate because I need a sequence of images with the same time between frames

The second winform is a dual camera tracking. This is more simple than first.

When I execute both winforms separately there is no problem with the first, it means, that the time between frames, more or less, is const.

But when I try to make an only winform, based in usercontrols, join both winforms, when I active the dual camera tracking, I can see that the time between frames may vary 10milliseconds more o less that it should be.

What can I do?

For dual camera tracking I used 2 different AutoResetEvent to take the frames, and other thread to combine both cameras.

For syncronize motor and main camera I only use a thread with high priority.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>