|
HowToBuildAPlugin
IntroductionThe following text will describe the process of building a plugin for the Visual Surveillance System (VSL). It is all in the interfaceIn order to build a plugin for VSL there is a need to implement one interface called ISurveillanceSystem. This interface gives all the information needed in order to configure and use the plugin. When the application loads a plugin from a dll it looks for this interface. ConfigurationA configuration for a plugin is defined in 4 levels: before runtime configuration, runtime configuration, runtime information and graphical display. Before runtime configurationBefore runtime configuration controls how the plugin will be initialized and is defined by two properties:
Runtime configurationUnlike the previous properties the following 3 properties define how to configure the plugin during its runtime. If enabled the user can click "Configure Surveillance System" on the main form and a configuration form will be displayed.
Runtime informationSometimes you want to give the user the ability to view the inner mechanism of the surveillance system, the following two properties give this ability:
Graphical displaySometimes you do not want to display anything on the screen you want your plugin just to work behind the scenes on the other hand you can change the way the plugin displays its results on screen. You can configure this behavior by using the following two properties:
The algorithmA surveillance system is not complete without an algorithm that does the real surveillance. GetImageProcess returns an IImageProcess interface that defines the algorithm. In order to fully understand how such an algorithm might work you can read an article on the subject published in CodeProject. |