dimanche 14 juin 2020

C# WPF based image processing application design pattern

Let me describe the hardwares that I am using: 1) A Data acquisition card(DAQ) to read a digital signal 2) An industrial camera which captures images at 40 fps

I want to develop a C# desktop application using WPF which will do the following tasks: 1) Show a live video using the camera 2) Each time the digital signal is high, capture a image and process it. 3) Update a WPF control with the results of the processing.

The image processing method will take longer time to process(in the order of 100 millisecs) whereas the digital signal can change every 25 millisecs. Ideally, the program must be able to check for the change in digital signal while simultaneously processing a previously captured images. There must be a buffer which stores the newly captured images while the image processing method is busy executing a previous image. Once the current image is processed, it must pick up an element from this buffer and process it. Once the processing is done, it must update the WPF control. The live video has been active all this while.

Is there a standard design pattern which would be suitable for this application?

Aucun commentaire:

Enregistrer un commentaire