- visualsurveillancesystem-exe.zip
- AForge.dll
- AForge.Imaging.dll
- AForge.Math.dll
- AForge.Video.dll
- AForge.Video.VFW.dll
- config.xml
- Core.dll
- dshow.dll
- plugins
- Output
- SimpleFileOutputSystemExample.dll
- Tracking
- SimpleTrackingSystemExample.dll
- Utils.dll
- VideoSource.dll
- VisualSurveillanceSystem.exe
- dshow.zip
- dshow
- visualsurveillancesystem-source.zip
- _ReSharper.VisualSurveillanceSystem
- 3d975191-54b0-44b0-8a34-53ec9f815498.ReflectionCache
- 79724821-43a1-4f69-b7d3-398094814dfb.ReflectionCache
- 85b999f1-4145-4d1d-b826-4de7c35c7570.ReflectionCache
- ac70d28a-5e5f-4e6e-914c-a4abf26657d3.ReflectionCache
- b6a6f38b-208d-4487-8786-5ff0c4c8dbbd.ReflectionCache
- CachesImage.bin
- d0e76f30-667c-4633-ba44-b7e14a06dad2.ReflectionCache
- dbb91a09-003b-478d-a903-81f91cc7f5f4.ReflectionCache
- f90f367f-834d-4153-910f-5f7fc9fa493e.ReflectionCache
- ReflectionCache.xml
- WordIndex.New
- .format
- 0
- 5a1ee1b9.dat
- 5
- 52d4fccd.dat
- 8
- 165cdb1e.dat
- Core
- bin
- Debug
- Release
- ClassDiagram1.cd
- ClassifyObjects
- Core.csproj
- Exceptions
- ImageProcess
- Misc
- MotionSegmentation
- obj
- OutputSystem
- Properties
- TrackingSystem
- TrackObjects
- FileOutputSystem
- SimpleTrackingSystemExample
- Utils
- VideoSource
- VisualSurveillanceSystem.resharper
- VisualSurveillanceSystem.resharper.user
- VisualSurveillanceSystem.sln
- VisualSurveillanceSystem
- images.zip
- background.jpg
- configureMenu.jpg
- configureWindow.jpg
- delegate.jpg
- framework.jpg
- IImage.jpg
- IOutputSystem.jpg
- Isurveillance.jpg
- main.jpg
- plugins.jpg
- structure.jpg
- tracking.jpg
- tracking.png
|
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Zoombut.VisualSurveillanceLaboratory.SurveillanceSystem
{
public partial class ExampleConfigurationForm : ConfigurationForm
{
public ExampleConfigurationForm()
{
InitializeComponent();
// Default value must be set.
args.Add("Threshold", (byte)40);
}
/// <summary>
/// This are the arguments.
/// </summary>
private IDictionary<String, Object> args = new Dictionary<String, Object>();
/// <summary>
/// Gets configuration as supplied by the user using this form.
/// This configuration will be later used by a tracking system.
/// </summary>
/// <returns>A dictionary of configuration options.</returns>
public override IDictionary<string, object> GetConfiguration()
{
return args;
}
/// <summary>
/// Handles the Click event of the btnOk control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
private void btnOk_Click(object sender, EventArgs e)
{
// Check that values are correct.
byte threshold;
if (Byte.TryParse(txtThreshold.Text, out threshold))
{
args.Clear();
args.Add("Threshold", threshold);
this.DialogResult = DialogResult.OK;
// Result is OK
Hide();
} else
{
// Indicate an error.
MessageBox.Show(this, "Values nust be between 0 and 255.", "Invalid Input",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void btnCancel_Click(object sender, EventArgs e)
{
txtThreshold.Text = args["Threshold"].ToString();
}
private void ExampleConfigurationForm_Load(object sender, EventArgs e)
{
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
A computer science master student at Bar Ilan University under the supervision of Dr. Gal Kaminka.
Dealing mainly with trajectory mining.