Reputation: 8815
I am doing a project that recognize human face from camera. Here is the workflow:
what I want:
what i can think of is a service bus-like architecture. for example. step2. can publish message that indicating a motion frame is detected, the subscriber can then proceed with its process with the captured motion frame.
so what do you think?
Upvotes: 0
Views: 210
Reputation: 28384
I would use a plugin architecture and a linked-list of callbacks for each frame to process.
This way, in C at-least, they are just pointers. You can create different callback linked-list chains for different purposes, for example:
Chain 1: sobel()->generic_features()->eigenfaces()->metric_analysis()->save()
So the chain is applies as callbacks accepting the frame, or result of a previous step as input.
Hope my poor explanation helps.
Upvotes: 0
Reputation: 5205
The application seems to be similar to a pipeline. I would go for the chain-of-responsibility pattern.
Upvotes: 2