All Files

This commit is contained in:
Muhammad Anas Rashid 2016-03-18 23:51:00 +05:00
parent b0a6664715
commit dc74d52a7d
135 changed files with 83829 additions and 0 deletions

44
HCI Assignment 1.sln Normal file
View File

@ -0,0 +1,44 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Part 1 - Record a Video", "Part 1 - Record Video\Part 1 - Record a Video.csproj", "{BCE01DD9-E151-436C-9FF8-D324A13D38C1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Part 2 - Take a Snapshot", "Part 2 - Take a Snapshot\Part 2 - Take a Snapshot.csproj", "{8B5A42D2-662F-429B-8CDA-3D01BC55B213}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Part 3 - Movement Detection", "Part 3 - Movement Detection\Part 3 - Movement Detection.csproj", "{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Debug|x86.ActiveCfg = Debug|x86
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Debug|x86.Build.0 = Debug|x86
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Release|Any CPU.Build.0 = Release|Any CPU
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Release|x86.ActiveCfg = Release|x86
{BCE01DD9-E151-436C-9FF8-D324A13D38C1}.Release|x86.Build.0 = Release|x86
{8B5A42D2-662F-429B-8CDA-3D01BC55B213}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8B5A42D2-662F-429B-8CDA-3D01BC55B213}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8B5A42D2-662F-429B-8CDA-3D01BC55B213}.Debug|x86.ActiveCfg = Debug|Any CPU
{8B5A42D2-662F-429B-8CDA-3D01BC55B213}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8B5A42D2-662F-429B-8CDA-3D01BC55B213}.Release|Any CPU.Build.0 = Release|Any CPU
{8B5A42D2-662F-429B-8CDA-3D01BC55B213}.Release|x86.ActiveCfg = Release|Any CPU
{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}.Debug|x86.ActiveCfg = Debug|Any CPU
{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}.Release|Any CPU.Build.0 = Release|Any CPU
{F2B1E967-D7EB-4410-AE1A-7CC3110255B6}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>

View File

@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{BCE01DD9-E151-436C-9FF8-D324A13D38C1}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>HCI_Assignment_1</RootNamespace>
<AssemblyName>HCI Assignment 1</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="AForge.Video">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.DirectShow">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.DirectShow.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.FFMPEG">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.FFMPEG.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.Kinect">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.Kinect.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.VFW">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.VFW.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.Ximea">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.Ximea.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="RecordVideo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="RecordVideo.Designer.cs">
<DependentUpon>RecordVideo.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="RecordVideo.resx">
<DependentUpon>RecordVideo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HCI_Assignment_1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new RecordVideo());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HCI Assignment 1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HCI Assignment 1")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("689b26ee-6339-422d-b616-6f53fb076417")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HCI_Assignment_1.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HCI_Assignment_1.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HCI_Assignment_1.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,84 @@
namespace HCI_Assignment_1
{
partial class RecordVideo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.toggleButton = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// toggleButton
//
this.toggleButton.AutoSize = true;
this.toggleButton.Location = new System.Drawing.Point(5, 498);
this.toggleButton.Name = "toggleButton";
this.toggleButton.Size = new System.Drawing.Size(640, 23);
this.toggleButton.TabIndex = 0;
this.toggleButton.Text = "Start Rec.";
this.toggleButton.UseVisualStyleBackColor = true;
this.toggleButton.Click += new System.EventHandler(this.button1_Click);
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(5, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(640, 480);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
this.pictureBox1.WaitOnLoad = true;
//
// RecordVideo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(650, 526);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.toggleButton);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(666, 565);
this.MinimumSize = new System.Drawing.Size(666, 565);
this.Name = "RecordVideo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Record Video";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RecordVideo_FormClosing);
this.Load += new System.EventHandler(this.RecordVideo_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button toggleButton;
private System.Windows.Forms.PictureBox pictureBox1;
}
}

View File

@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AForge.Video;
using AForge.Video.DirectShow;
using AForge.Video.FFMPEG;
using AForge.Video.Kinect;
using AForge.Video.VFW;
namespace HCI_Assignment_1
{
public partial class RecordVideo : Form
{
public RecordVideo()
{
InitializeComponent();
}
VideoCaptureDevice webCam = null;
AVIWriter saveVideo = null;
private void button1_Click(object sender, EventArgs e)
{
if (this.toggleButton.Text == "Start Rec.")
{
this.toggleButton.Text = "STOP Rec.";
this.toggleButton.BackColor = Color.Black;
toggleButton.ForeColor = Color.White;
saveVideo = new AVIWriter("wmv3");
saveVideo.FrameRate = 15;
saveVideo.Open("video.avi", 640, 480);
}
else
{
this.toggleButton.Text = "Start Rec.";
toggleButton.ForeColor = Color.Black;
toggleButton.BackColor = Color.White;
saveVideo.Close();
}
}
private void webCam_NewFrame(object sender, AForge.Video.NewFrameEventArgs eventArgs)
{
pictureBox1.BackgroundImage = (Bitmap)eventArgs.Frame.Clone();
if(saveVideo!=null)
saveVideo.AddFrame((Bitmap)eventArgs.Frame.Clone());
}
private void RecordVideo_Load(object sender, EventArgs e)
{
FilterInfoCollection allCameras = new FilterInfoCollection(FilterCategory.VideoInputDevice);
webCam = new VideoCaptureDevice(allCameras[0].MonikerString);
webCam.NewFrame += new AForge.Video.NewFrameEventHandler(webCam_NewFrame);
webCam.Start();
}
private void RecordVideo_FormClosing(object sender, System.ComponentModel.CancelEventArgs e)
{
if(saveVideo!=null)
saveVideo.Close();
webCam.SignalToStop();
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,604 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>AForge.Video.Kinect</name>
</assembly>
<members>
<member name="T:AForge.Video.Kinect.LedColorOption">
<summary>
Kinect's LED color options.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Off">
<summary>
The LED is off.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Green">
<summary>
The LED is on and has green color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Red">
<summary>
The LED is on and has red color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Yellow">
<summary>
The LED is on and has yellow color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.BlinkGreen">
<summary>
The LED is blinking with green color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.BlinkRedYellow">
<summary>
The LED is blinking from red to yellow color.
</summary>
</member>
<member name="T:AForge.Video.Kinect.CameraResolution">
<summary>
Kinect's resolutions of video and depth cameras.
</summary>
</member>
<member name="F:AForge.Video.Kinect.CameraResolution.Low">
<summary>
Low resolution.
</summary>
</member>
<member name="F:AForge.Video.Kinect.CameraResolution.Medium">
<summary>
Medium resolution.
</summary>
</member>
<member name="F:AForge.Video.Kinect.CameraResolution.High">
<summary>
Hight resolution.
</summary>
</member>
<member name="T:AForge.Video.Kinect.KinectDepthCamera">
<summary>
Video source for Microsoft Kinect's depth sensor.
</summary>
<remarks><para>The video source captures depth data from Microsoft <a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>
depth sensor, which is aimed originally as a gaming device for XBox 360 platform.</para>
<para><note>Prior to using the class, make sure you've installed Kinect's drivers
as described on <a href="http://openkinect.org/wiki/Getting_Started#Windows">Open Kinect</a>
project's page.</note></para>
<para><note>In order to run correctly the class requires <i>freenect.dll</i> library
to be put into solution's output folder. This can be found within the AForge.NET framework's
distribution in Externals folder.</note></para>
<para>Sample usage:</para>
<code>
// create video source
KinectDepthCamera videoSource = new KinectDepthCamera( 0 );
// set NewFrame event handler
videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
videoSource.Start( );
// ...
private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
// get new frame
Bitmap bitmap = eventArgs.Frame;
// process the frame
}
</code>
</remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of depth sensor to set.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution,System.Boolean)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of depth sensor to set.</param>
<param name="provideOriginalDepthImage">Provide original depth image or colored depth map
(see <see cref="P:AForge.Video.Kinect.KinectDepthCamera.ProvideOriginalDepthImage"/> property).</param>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.Start">
<summary>
Start video source.
</summary>
<remarks>Starts video source and returns execution to caller. Video camera will be started
and will provide new video frames through the <see cref="E:AForge.Video.Kinect.KinectDepthCamera.NewFrame"/> event.</remarks>
<exception cref="T:System.ArgumentException">The specified resolution is not supported for the selected
mode of the Kinect depth sensor.</exception>
<exception cref="T:AForge.ConnectionFailedException">Could not connect to Kinect's depth sensor.</exception>
<exception cref="T:AForge.DeviceBusyException">Another connection to the specified depth sensor is already running.</exception>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.SignalToStop">
<summary>
Signal video source to stop its work.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectDepthCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.WaitForStop">
<summary>
Wait for video source has stopped.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectDepthCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.Stop">
<summary>
Stop video source.
</summary>
<remarks><para>The method stop the video source, so it no longer provides new video frames
and does not consume any resources.</para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectDepthCamera.NewFrame">
<summary>
New frame event.
</summary>
<remarks><para>Notifies clients about new available frames from the video source.</para>
<para><note>Since video source may have multiple clients, each client is responsible for
making a copy (cloning) of the passed video frame, because the video source disposes its
own original copy after notifying of clients.</note></para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectDepthCamera.VideoSourceError">
<summary>
Video source error event.
</summary>
<remarks>This event is used to notify clients about any type of errors occurred in
video source object, for example internal exceptions.</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectDepthCamera.PlayingFinished">
<summary>
Video playing finished event.
</summary>
<remarks><para>This event is used to notify clients that the video playing has finished.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.ProvideOriginalDepthImage">
<summary>
Provide original depth image or colored depth map.
</summary>
<remarks><para>The property specifies if the video source should provide original data
provided by Kinect's depth sensor or provide colored depth map. If the property is set to
<see langword="true"/>, then the video source will provide 16 bpp grayscale images, where
11 least significant bits represent data provided by the sensor. If the property is
set to <see langword="false"/>, then the video source will provide 24 bpp color images,
which represents depth map. In this case depth is encoded by color gradient:
white->red->yellow->green->cyan->blue->black. So colors which are closer to white represent
objects which are closer to the Kinect sensor, but colors which are closer to black represent
objects which are further away from Kinect.</para>
<para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value is set to <see langword="false"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.Resolution">
<summary>
Resolution of depth sensor to set.
</summary>
<remarks><para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value of the property is set to <see cref="F:AForge.Video.Kinect.CameraResolution.Medium"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.Source">
<summary>
A string identifying the video source.
</summary>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.IsRunning">
<summary>
State of the video source.
</summary>
<remarks>Current state of video source object - running or not.</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.BytesReceived">
<summary>
Received bytes count.
</summary>
<remarks>Number of bytes the video source provided from the moment of the last
access to the property.
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.FramesReceived">
<summary>
Received frames count.
</summary>
<remarks>Number of frames the video source provided from the moment of the last
access to the property.
</remarks>
</member>
<member name="T:AForge.Video.Kinect.Kinect">
<summary>
The class provides access to Microsoft's Xbox <a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>
controller.
</summary>
<remarks><para>The class allows to manipulate Kinec device by changing its LED color, setting motor's
tilt value and accessing its camera. See <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> and <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/>
classes, which provide access to actual video.</para>
<para><img src="img/video/kinect.jpg" width="320" height="140"/></para>
<para><note>In order to run correctly the class requires <i>freenect.dll</i> library
to be put into solution's output folder. This can be found within the AForge.NET framework's
distribution in Externals folder.</note></para>
<para>Sample usage:</para>
<code>
// get Kinect device
Kinect kinectDevice = Kinect.GetDevice( 0 );
// change LED color
kinectDevice.LedColor = LedColorOption.Yellow;
// set motor tilt angle to -10 degrees
kinectDevice.SetMotorTilt( -10 );
// get video camera
KinectVideoCamera videoCamera = kinectDevice.GetVideoCamera( );
// see example for video camera also
</code>
</remarks>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetDevice(System.Int32)">
<summary>
Get initialized instance of the Kinect device.
</summary>
<param name="deviceID">ID of the Kinect device to get instance of, [0, <see cref="P:AForge.Video.Kinect.Kinect.DeviceCount"/>),</param>
<returns>Returns initialized Kinect device. Use <see cref="M:AForge.Video.Kinect.Kinect.Dispose"/> method
when the device is no longer required.</returns>
<exception cref="T:System.ArgumentException">There is no Kinect device with specified ID connected to the system.</exception>
<exception cref="T:AForge.ConnectionFailedException">Failed connecting to the Kinect device specified ID.</exception>
</member>
<member name="M:AForge.Video.Kinect.Kinect.Finalize">
<summary>
Object finalizer/destructor makes sure unmanaged resource are freed if user did not call <see cref="M:AForge.Video.Kinect.Kinect.Dispose"/>.
</summary>
</member>
<member name="M:AForge.Video.Kinect.Kinect.Dispose">
<summary>
Dispose device freeing all associated unmanaged resources.
</summary>
</member>
<member name="M:AForge.Video.Kinect.Kinect.SetLedColor(AForge.Video.Kinect.LedColorOption)">
<summary>
Set color of Kinect's LED.
</summary>
<param name="ledColor">LED color to set.</param>
<exception cref="T:AForge.DeviceErrorException">Some error occurred with the device. Check error message.</exception>
</member>
<member name="M:AForge.Video.Kinect.Kinect.SetMotorTilt(System.Int32)">
<summary>
Set motor's tilt value.
</summary>
<param name="angle">Tilt value to set, [-31, 30] degrees.</param>
<exception cref="T:System.ArgumentOutOfRangeException">Motor tilt has to be in the [-31, 31] range.</exception>
<exception cref="T:AForge.DeviceErrorException">Some error occurred with the device. Check error message.</exception>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetAccelerometerValues(System.Double@,System.Double@,System.Double@)">
<summary>
Get accelerometer values for 3 axes.
</summary>
<param name="x">X axis value on the accelerometer.</param>
<param name="y">Y axis value on the accelerometer.</param>
<param name="z">Z axis value on the accelerometer.</param>
<remarks><para>Units of all 3 values are m/s<sup>2</sup>. The <b>g</b> value used
for calculations is taken as 9.80665 m/s<sup>2</sup>.</para></remarks>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetVideoCamera">
<summary>
Get Kinect's video camera.
</summary>
<returns>Returns Kinect's video camera.</returns>
<remarks><para>The method simply creates instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class
by calling its appropriate constructor. Use <see cref="M:AForge.Video.Kinect.KinectVideoCamera.Start"/> method
to start the video then.</para></remarks>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetDepthCamera">
<summary>
Get Kinect's depth camera.
</summary>
<returns>Returns Kinect's depth camera.</returns>
<remarks><para>The method simply creates instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class
by calling its appropriate constructor. Use <see cref="M:AForge.Video.Kinect.KinectDepthCamera.Start"/> method
to start the video then.</para></remarks>
</member>
<member name="P:AForge.Video.Kinect.Kinect.DeviceID">
<summary>
ID of the opened Kinect device.
</summary>
</member>
<member name="P:AForge.Video.Kinect.Kinect.DeviceCount">
<summary>
Number of Kinect devices available in the system.
</summary>
</member>
<member name="T:AForge.Video.Kinect.VideoCameraMode">
<summary>
Enumeration of video camera modes for the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/>.
</summary>
</member>
<member name="F:AForge.Video.Kinect.VideoCameraMode.Color">
<summary>
24 bit per pixel RGB mode.
</summary>
</member>
<member name="F:AForge.Video.Kinect.VideoCameraMode.Bayer">
<summary>
8 bit per pixel Bayer mode.
</summary>
</member>
<member name="F:AForge.Video.Kinect.VideoCameraMode.InfraRed">
<summary>
8 bit per pixel Infra Red mode.
</summary>
</member>
<member name="T:AForge.Video.Kinect.KinectVideoCamera">
<summary>
Video source for Microsoft Kinect's video camera.
</summary>
<remarks><para>The video source captures video data from Microsoft <a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>
video camera, which is aimed originally as a gaming device for XBox 360 platform.</para>
<para><note>Prior to using the class, make sure you've installed Kinect's drivers
as described on <a href="http://openkinect.org/wiki/Getting_Started#Windows">Open Kinect</a>
project's page.</note></para>
<para><note>In order to run correctly the class requires <i>freenect.dll</i> library
to be put into solution's output folder. This can be found within the AForge.NET framework's
distribution in Externals folder.</note></para>
<para>Sample usage:</para>
<code>
// create video source
KinectVideoCamera videoSource = new KinectVideoCamera( 0 );
// set NewFrame event handler
videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
videoSource.Start( );
// ...
private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
// get new frame
Bitmap bitmap = eventArgs.Frame;
// process the frame
}
</code>
</remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of video camera to set.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution,AForge.Video.Kinect.VideoCameraMode)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of video camera to set.</param>
<param name="cameraMode">Sets video camera mode.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.Start">
<summary>
Start video source.
</summary>
<remarks>Starts video source and returns execution to caller. Video camera will be started
and will provide new video frames through the <see cref="E:AForge.Video.Kinect.KinectVideoCamera.NewFrame"/> event.</remarks>
<exception cref="T:System.ArgumentException">The specified resolution is not supported for the selected
mode of the Kinect video camera.</exception>
<exception cref="T:AForge.ConnectionFailedException">Could not connect to Kinect's video camera.</exception>
<exception cref="T:AForge.DeviceBusyException">Another connection to the specified video camera is already running.</exception>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.SignalToStop">
<summary>
Signal video source to stop its work.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectVideoCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.WaitForStop">
<summary>
Wait for video source has stopped.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectVideoCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.Stop">
<summary>
Stop video source.
</summary>
<remarks><para>The method stops the video source, so it no longer provides new video frames
and does not consume any resources.</para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectVideoCamera.NewFrame">
<summary>
New frame event.
</summary>
<remarks><para>Notifies clients about new available frames from the video source.</para>
<para><note>Since video source may have multiple clients, each client is responsible for
making a copy (cloning) of the passed video frame, because the video source disposes its
own original copy after notifying of clients.</note></para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectVideoCamera.VideoSourceError">
<summary>
Video source error event.
</summary>
<remarks>This event is used to notify clients about any type of errors occurred in
video source object, for example internal exceptions.</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectVideoCamera.PlayingFinished">
<summary>
Video playing finished event.
</summary>
<remarks><para>This event is used to notify clients that the video playing has finished.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.CameraMode">
<summary>
Specifies video mode for the camera.
</summary>
<remarks>
<para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value of the property is set to <see cref="F:AForge.Video.Kinect.VideoCameraMode.Color"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.Resolution">
<summary>
Resolution of video camera to set.
</summary>
<remarks><para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value of the property is set to <see cref="F:AForge.Video.Kinect.CameraResolution.Medium"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.Source">
<summary>
A string identifying the video source.
</summary>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.IsRunning">
<summary>
State of the video source.
</summary>
<remarks>Current state of video source object - running or not.</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.BytesReceived">
<summary>
Received bytes count.
</summary>
<remarks>Number of bytes the video source provided from the moment of the last
access to the property.
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.FramesReceived">
<summary>
Received frames count.
</summary>
<remarks>Number of frames the video source provided from the moment of the last
access to the property.
</remarks>
</member>
</members>
</doc>

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="c:\program files (x86)\microsoft visual studio 12.0\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.xsl"?>
<FxCopReport Version="12.0">
<Targets>
<Target Name="C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe">
<Modules>
<Module Name="hci assignment 1.exe">
<Namespaces>
<Namespace Name="HCI_Assignment_1">
<Types>
<Type Name="RecordVideo" Kind="Class" Accessibility="Public" ExternallyVisible="True">
<Members>
<Member Name="#Dispose(System.Boolean)" Kind="Method" Static="False" Accessibility="Family" ExternallyVisible="True">
<Messages>
<Message Id="saveVideo" TypeName="DisposableFieldsShouldBeDisposed" Category="Microsoft.Usage" CheckId="CA2213" Status="Active" Created="2016-01-15 10:12:12Z" FixCategory="NonBreaking">
<Issue Certainty="75" Level="Warning" Path="c:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1" File="RecordVideo.Designer.cs" Line="15">'RecordVideo' contains field 'RecordVideo.saveVideo' that is of IDisposable type: 'AVIWriter'. Change the Dispose method on 'RecordVideo' to call Dispose or Close on this field.</Issue>
</Message>
</Messages>
</Member>
</Members>
</Type>
</Types>
</Namespace>
</Namespaces>
</Module>
</Modules>
</Target>
</Targets>
<Rules>
<Rule TypeName="DisposableFieldsShouldBeDisposed" Category="Microsoft.Usage" CheckId="CA2213">
<Name>Disposable fields should be disposed</Name>
<Description>If a type that implements IDisposable owns fields that also implement IDisposable, the encapsulating type's Dispose() implementation should call Dispose() on each disposable field.</Description>
<Resolution Name="Default">{0} contains field {1} that is of IDisposable type: {2}. Change the Dispose method on {0} to call Dispose or Close on this field.</Resolution>
<Owner />
<Url>http://msdn.microsoft.com/library/ms182328.aspx</Url>
<Email>[none]</Email>
<MessageLevel Certainty="75">Warning</MessageLevel>
<File Name="usagerules.dll" Version="12.0.0.0" />
</Rule>
</Rules>
<Localized>
<String Key="Category">Category</String>
<String Key="Certainty">Certainty</String>
<String Key="CollapseAll">Collapse All</String>
<String Key="CheckId">Check Id</String>
<String Key="Error">Error</String>
<String Key="Errors">error(s)</String>
<String Key="ExpandAll">Expand All</String>
<String Key="Help">Help</String>
<String Key="Line">Line</String>
<String Key="Messages">message(s)</String>
<String Key="LocationNotStoredInPdb">[Location not stored in Pdb]</String>
<String Key="Project">Project</String>
<String Key="Resolution">Resolution</String>
<String Key="Rule">Rule</String>
<String Key="RuleFile">Rule File</String>
<String Key="RuleDescription">Rule Description</String>
<String Key="Source">Source</String>
<String Key="Status">Status</String>
<String Key="Target">Target</String>
<String Key="Warning">Warning</String>
<String Key="Warnings">warning(s)</String>
<String Key="ReportTitle">Code Analysis Report</String>
</Localized>
</FxCopReport>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@ -0,0 +1,28 @@
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe.config
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.pdb
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe.CodeAnalysisLog.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe.lastcodeanalysissucceeded
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.DirectShow.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.FFMPEG.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Kinect.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.VFW.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Ximea.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Imaging.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Math.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.DirectShow.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.FFMPEG.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Kinect.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.VFW.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Ximea.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Imaging.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Math.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI_Assignment_1.RecordVideo.resources
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI_Assignment_1.Properties.Resources.resources
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI Assignment 1.csproj.GenerateResource.Cache
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI Assignment 1.exe
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI Assignment 1.pdb

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,55 @@
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe.config
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.exe
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\HCI Assignment 1.pdb
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.DirectShow.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.FFMPEG.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Kinect.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.VFW.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Ximea.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Imaging.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Math.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.DirectShow.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.FFMPEG.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Kinect.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.VFW.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Video.Ximea.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Imaging.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\bin\Debug\AForge.Math.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI_Assignment_1.RecordVideo.resources
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI_Assignment_1.Properties.Resources.resources
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\Part 1 - Record a Video.csproj.GenerateResource.Cache
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI Assignment 1.exe
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 1\obj\Debug\HCI Assignment 1.pdb
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\HCI Assignment 1.exe.config
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\HCI Assignment 1.exe
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\HCI Assignment 1.pdb
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.DirectShow.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.FFMPEG.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.Kinect.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.VFW.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.Ximea.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Imaging.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Math.dll
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.DirectShow.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.FFMPEG.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.Kinect.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.VFW.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Video.Ximea.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Imaging.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\AForge.Math.xml
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\HCI_Assignment_1.RecordVideo.resources
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\HCI_Assignment_1.Properties.Resources.resources
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\Part 1 - Record a Video.csproj.GenerateResource.Cache
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\HCI Assignment 1.exe
C:\Users\AnnJanu\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\HCI Assignment 1.pdb
C:\Users\muham\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\bin\Debug\HCI Assignment 1.exe.config
C:\Users\muham\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\HCI Assignment 1.exe
C:\Users\muham\Documents\Visual Studio 2013\Projects\HCI Assignment 1\Part 1 - Record Video\obj\Debug\HCI Assignment 1.pdb

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>

View File

@ -0,0 +1,128 @@
namespace HCI_Assignment_2
{
partial class GetFrame
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.getImage = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.label3 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(185, 47);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 13);
this.label1.TabIndex = 1;
this.label1.Text = "seconds";
//
// getImage
//
this.getImage.Location = new System.Drawing.Point(238, 42);
this.getImage.Name = "getImage";
this.getImage.Size = new System.Drawing.Size(75, 23);
this.getImage.TabIndex = 2;
this.getImage.Text = "Get Image";
this.getImage.UseVisualStyleBackColor = true;
this.getImage.Click += new System.EventHandler(this.getImage_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 44);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(167, 20);
this.textBox1.TabIndex = 3;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 71);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(0, 13);
this.label2.TabIndex = 4;
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(102, 23);
this.button1.TabIndex = 5;
this.button1.Text = "Select Video File";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(120, 17);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(0, 13);
this.label3.TabIndex = 6;
//
// GetFrame
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(326, 92);
this.Controls.Add(this.label3);
this.Controls.Add(this.button1);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.getImage);
this.Controls.Add(this.label1);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(342, 131);
this.MinimumSize = new System.Drawing.Size(342, 131);
this.Name = "GetFrame";
this.Text = "Snapshot Video";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button getImage;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Label label3;
}
}

View File

@ -0,0 +1,90 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AForge.Video;
using AForge.Video.DirectShow;
using AForge.Video.FFMPEG;
using AForge.Video.Kinect;
using AForge.Video.VFW;
using HCI_Assignment_2;
namespace HCI_Assignment_2
{
public partial class GetFrame : Form
{
private string videoFilePath = null;
AVIReader savedVideo;
public GetFrame()
{
InitializeComponent();
}
private void getImage_Click(object sender, EventArgs e)
{
string inputText = this.textBox1.Text;
if (inputText == "")
inputText = "0";
savedVideo = new AVIReader();
if (videoFilePath != null)
{
savedVideo.Open(videoFilePath);
if (Int32.Parse(inputText) * savedVideo.FrameRate <= (savedVideo.Length) )
{
savedVideo.Position = Int32.Parse(inputText) * (int)savedVideo.FrameRate;
Bitmap frame = savedVideo.GetNextFrame();
//Form picture = new Snapshot(frame);
//picture.Show(this);
frame.Save("snapshot.jpg");
label2.Text = "Image Captured!";
}
else
label2.Text = "Video is not long enough!!!";
}
else
label3.Text = "Select an .avi File first!";
}
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.Title = "Select an .avi Video File!";
openFileDialog1.FileName = "";
openFileDialog1.Filter = "*.avi|*.avi";
openFileDialog1.Multiselect = false;
openFileDialog1.ShowDialog();
if (openFileDialog1.FileName != "")
{
videoFilePath = openFileDialog1.FileName;
label3.Text = "File is Selected!";
}
}
}
}
//float frameRate = savedVideo.FrameRate;
//int len = savedVideo.Length;
//for (float i = savedVideo.Start; i != savedVideo.Length; i = i + 1)
//{
// Bitmap frame = savedVideo.GetNextFrame();
// if (i == Int32.Parse(inputText) * frameRate)
// {
// string position = savedVideo.Position.ToString();
// frame.Save("snapshot.jpg");
// label2.Text = "Image Saved!";
// return;
// }
//}

View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>16, 14</value>
</metadata>
</root>

View File

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8B5A42D2-662F-429B-8CDA-3D01BC55B213}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>HCI_Assignment_2</RootNamespace>
<AssemblyName>HCI Assignment 2</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AForge.Video">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.DirectShow">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.DirectShow.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.FFMPEG">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.FFMPEG.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.Kinect">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.Kinect.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.VFW">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.VFW.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.Ximea">
<HintPath>E:\University\ANAS 6\Human Computer Interaction\AForge.NET Framework-2.2.5\Release\AForge.Video.Ximea.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="GetFrame.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GetFrame.Designer.cs">
<DependentUpon>GetFrame.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Snapshot.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Snapshot.Designer.cs">
<DependentUpon>Snapshot.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="GetFrame.resx">
<DependentUpon>GetFrame.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="Snapshot.resx">
<DependentUpon>Snapshot.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HCI_Assignment_2
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new GetFrame());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HCI Assignment 2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HCI Assignment 2")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6281751f-9239-4d51-9e45-522d9aee41ae")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HCI_Assignment_2.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HCI_Assignment_2.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HCI_Assignment_2.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,77 @@
namespace HCI_Assignment_2
{
partial class Snapshot
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(11, 10);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(640, 480);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(539, 496);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(112, 23);
this.button1.TabIndex = 1;
this.button1.Text = "Save Image";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Snapshot
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(663, 528);
this.Controls.Add(this.button1);
this.Controls.Add(this.pictureBox1);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(679, 567);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(679, 567);
this.Name = "Snapshot";
this.Text = "Snapshot";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Button button1;
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HCI_Assignment_2
{
public partial class Snapshot : Form
{
public Snapshot(Bitmap picture)
{
pictureBox1 = new PictureBox();
pictureBox1.Height = 480;
pictureBox1.Width = 640;
pictureBox1.BackgroundImage = (Bitmap)picture.Clone();
}
private void button1_Click(object sender, EventArgs e)
{
if (pictureBox1.Image != null)
pictureBox1.Image.Save("snapshot.jpg");
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,604 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>AForge.Video.Kinect</name>
</assembly>
<members>
<member name="T:AForge.Video.Kinect.LedColorOption">
<summary>
Kinect's LED color options.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Off">
<summary>
The LED is off.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Green">
<summary>
The LED is on and has green color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Red">
<summary>
The LED is on and has red color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.Yellow">
<summary>
The LED is on and has yellow color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.BlinkGreen">
<summary>
The LED is blinking with green color.
</summary>
</member>
<member name="F:AForge.Video.Kinect.LedColorOption.BlinkRedYellow">
<summary>
The LED is blinking from red to yellow color.
</summary>
</member>
<member name="T:AForge.Video.Kinect.CameraResolution">
<summary>
Kinect's resolutions of video and depth cameras.
</summary>
</member>
<member name="F:AForge.Video.Kinect.CameraResolution.Low">
<summary>
Low resolution.
</summary>
</member>
<member name="F:AForge.Video.Kinect.CameraResolution.Medium">
<summary>
Medium resolution.
</summary>
</member>
<member name="F:AForge.Video.Kinect.CameraResolution.High">
<summary>
Hight resolution.
</summary>
</member>
<member name="T:AForge.Video.Kinect.KinectDepthCamera">
<summary>
Video source for Microsoft Kinect's depth sensor.
</summary>
<remarks><para>The video source captures depth data from Microsoft <a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>
depth sensor, which is aimed originally as a gaming device for XBox 360 platform.</para>
<para><note>Prior to using the class, make sure you've installed Kinect's drivers
as described on <a href="http://openkinect.org/wiki/Getting_Started#Windows">Open Kinect</a>
project's page.</note></para>
<para><note>In order to run correctly the class requires <i>freenect.dll</i> library
to be put into solution's output folder. This can be found within the AForge.NET framework's
distribution in Externals folder.</note></para>
<para>Sample usage:</para>
<code>
// create video source
KinectDepthCamera videoSource = new KinectDepthCamera( 0 );
// set NewFrame event handler
videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
videoSource.Start( );
// ...
private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
// get new frame
Bitmap bitmap = eventArgs.Frame;
// process the frame
}
</code>
</remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of depth sensor to set.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution,System.Boolean)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of depth sensor to set.</param>
<param name="provideOriginalDepthImage">Provide original depth image or colored depth map
(see <see cref="P:AForge.Video.Kinect.KinectDepthCamera.ProvideOriginalDepthImage"/> property).</param>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.Start">
<summary>
Start video source.
</summary>
<remarks>Starts video source and returns execution to caller. Video camera will be started
and will provide new video frames through the <see cref="E:AForge.Video.Kinect.KinectDepthCamera.NewFrame"/> event.</remarks>
<exception cref="T:System.ArgumentException">The specified resolution is not supported for the selected
mode of the Kinect depth sensor.</exception>
<exception cref="T:AForge.ConnectionFailedException">Could not connect to Kinect's depth sensor.</exception>
<exception cref="T:AForge.DeviceBusyException">Another connection to the specified depth sensor is already running.</exception>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.SignalToStop">
<summary>
Signal video source to stop its work.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectDepthCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.WaitForStop">
<summary>
Wait for video source has stopped.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectDepthCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectDepthCamera.Stop">
<summary>
Stop video source.
</summary>
<remarks><para>The method stop the video source, so it no longer provides new video frames
and does not consume any resources.</para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectDepthCamera.NewFrame">
<summary>
New frame event.
</summary>
<remarks><para>Notifies clients about new available frames from the video source.</para>
<para><note>Since video source may have multiple clients, each client is responsible for
making a copy (cloning) of the passed video frame, because the video source disposes its
own original copy after notifying of clients.</note></para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectDepthCamera.VideoSourceError">
<summary>
Video source error event.
</summary>
<remarks>This event is used to notify clients about any type of errors occurred in
video source object, for example internal exceptions.</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectDepthCamera.PlayingFinished">
<summary>
Video playing finished event.
</summary>
<remarks><para>This event is used to notify clients that the video playing has finished.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.ProvideOriginalDepthImage">
<summary>
Provide original depth image or colored depth map.
</summary>
<remarks><para>The property specifies if the video source should provide original data
provided by Kinect's depth sensor or provide colored depth map. If the property is set to
<see langword="true"/>, then the video source will provide 16 bpp grayscale images, where
11 least significant bits represent data provided by the sensor. If the property is
set to <see langword="false"/>, then the video source will provide 24 bpp color images,
which represents depth map. In this case depth is encoded by color gradient:
white->red->yellow->green->cyan->blue->black. So colors which are closer to white represent
objects which are closer to the Kinect sensor, but colors which are closer to black represent
objects which are further away from Kinect.</para>
<para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value is set to <see langword="false"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.Resolution">
<summary>
Resolution of depth sensor to set.
</summary>
<remarks><para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value of the property is set to <see cref="F:AForge.Video.Kinect.CameraResolution.Medium"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.Source">
<summary>
A string identifying the video source.
</summary>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.IsRunning">
<summary>
State of the video source.
</summary>
<remarks>Current state of video source object - running or not.</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.BytesReceived">
<summary>
Received bytes count.
</summary>
<remarks>Number of bytes the video source provided from the moment of the last
access to the property.
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectDepthCamera.FramesReceived">
<summary>
Received frames count.
</summary>
<remarks>Number of frames the video source provided from the moment of the last
access to the property.
</remarks>
</member>
<member name="T:AForge.Video.Kinect.Kinect">
<summary>
The class provides access to Microsoft's Xbox <a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>
controller.
</summary>
<remarks><para>The class allows to manipulate Kinec device by changing its LED color, setting motor's
tilt value and accessing its camera. See <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> and <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/>
classes, which provide access to actual video.</para>
<para><img src="img/video/kinect.jpg" width="320" height="140"/></para>
<para><note>In order to run correctly the class requires <i>freenect.dll</i> library
to be put into solution's output folder. This can be found within the AForge.NET framework's
distribution in Externals folder.</note></para>
<para>Sample usage:</para>
<code>
// get Kinect device
Kinect kinectDevice = Kinect.GetDevice( 0 );
// change LED color
kinectDevice.LedColor = LedColorOption.Yellow;
// set motor tilt angle to -10 degrees
kinectDevice.SetMotorTilt( -10 );
// get video camera
KinectVideoCamera videoCamera = kinectDevice.GetVideoCamera( );
// see example for video camera also
</code>
</remarks>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetDevice(System.Int32)">
<summary>
Get initialized instance of the Kinect device.
</summary>
<param name="deviceID">ID of the Kinect device to get instance of, [0, <see cref="P:AForge.Video.Kinect.Kinect.DeviceCount"/>),</param>
<returns>Returns initialized Kinect device. Use <see cref="M:AForge.Video.Kinect.Kinect.Dispose"/> method
when the device is no longer required.</returns>
<exception cref="T:System.ArgumentException">There is no Kinect device with specified ID connected to the system.</exception>
<exception cref="T:AForge.ConnectionFailedException">Failed connecting to the Kinect device specified ID.</exception>
</member>
<member name="M:AForge.Video.Kinect.Kinect.Finalize">
<summary>
Object finalizer/destructor makes sure unmanaged resource are freed if user did not call <see cref="M:AForge.Video.Kinect.Kinect.Dispose"/>.
</summary>
</member>
<member name="M:AForge.Video.Kinect.Kinect.Dispose">
<summary>
Dispose device freeing all associated unmanaged resources.
</summary>
</member>
<member name="M:AForge.Video.Kinect.Kinect.SetLedColor(AForge.Video.Kinect.LedColorOption)">
<summary>
Set color of Kinect's LED.
</summary>
<param name="ledColor">LED color to set.</param>
<exception cref="T:AForge.DeviceErrorException">Some error occurred with the device. Check error message.</exception>
</member>
<member name="M:AForge.Video.Kinect.Kinect.SetMotorTilt(System.Int32)">
<summary>
Set motor's tilt value.
</summary>
<param name="angle">Tilt value to set, [-31, 30] degrees.</param>
<exception cref="T:System.ArgumentOutOfRangeException">Motor tilt has to be in the [-31, 31] range.</exception>
<exception cref="T:AForge.DeviceErrorException">Some error occurred with the device. Check error message.</exception>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetAccelerometerValues(System.Double@,System.Double@,System.Double@)">
<summary>
Get accelerometer values for 3 axes.
</summary>
<param name="x">X axis value on the accelerometer.</param>
<param name="y">Y axis value on the accelerometer.</param>
<param name="z">Z axis value on the accelerometer.</param>
<remarks><para>Units of all 3 values are m/s<sup>2</sup>. The <b>g</b> value used
for calculations is taken as 9.80665 m/s<sup>2</sup>.</para></remarks>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetVideoCamera">
<summary>
Get Kinect's video camera.
</summary>
<returns>Returns Kinect's video camera.</returns>
<remarks><para>The method simply creates instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class
by calling its appropriate constructor. Use <see cref="M:AForge.Video.Kinect.KinectVideoCamera.Start"/> method
to start the video then.</para></remarks>
</member>
<member name="M:AForge.Video.Kinect.Kinect.GetDepthCamera">
<summary>
Get Kinect's depth camera.
</summary>
<returns>Returns Kinect's depth camera.</returns>
<remarks><para>The method simply creates instance of the <see cref="T:AForge.Video.Kinect.KinectDepthCamera"/> class
by calling its appropriate constructor. Use <see cref="M:AForge.Video.Kinect.KinectDepthCamera.Start"/> method
to start the video then.</para></remarks>
</member>
<member name="P:AForge.Video.Kinect.Kinect.DeviceID">
<summary>
ID of the opened Kinect device.
</summary>
</member>
<member name="P:AForge.Video.Kinect.Kinect.DeviceCount">
<summary>
Number of Kinect devices available in the system.
</summary>
</member>
<member name="T:AForge.Video.Kinect.VideoCameraMode">
<summary>
Enumeration of video camera modes for the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/>.
</summary>
</member>
<member name="F:AForge.Video.Kinect.VideoCameraMode.Color">
<summary>
24 bit per pixel RGB mode.
</summary>
</member>
<member name="F:AForge.Video.Kinect.VideoCameraMode.Bayer">
<summary>
8 bit per pixel Bayer mode.
</summary>
</member>
<member name="F:AForge.Video.Kinect.VideoCameraMode.InfraRed">
<summary>
8 bit per pixel Infra Red mode.
</summary>
</member>
<member name="T:AForge.Video.Kinect.KinectVideoCamera">
<summary>
Video source for Microsoft Kinect's video camera.
</summary>
<remarks><para>The video source captures video data from Microsoft <a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>
video camera, which is aimed originally as a gaming device for XBox 360 platform.</para>
<para><note>Prior to using the class, make sure you've installed Kinect's drivers
as described on <a href="http://openkinect.org/wiki/Getting_Started#Windows">Open Kinect</a>
project's page.</note></para>
<para><note>In order to run correctly the class requires <i>freenect.dll</i> library
to be put into solution's output folder. This can be found within the AForge.NET framework's
distribution in Externals folder.</note></para>
<para>Sample usage:</para>
<code>
// create video source
KinectVideoCamera videoSource = new KinectVideoCamera( 0 );
// set NewFrame event handler
videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
videoSource.Start( );
// ...
private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
// get new frame
Bitmap bitmap = eventArgs.Frame;
// process the frame
}
</code>
</remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of video camera to set.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.#ctor(System.Int32,AForge.Video.Kinect.CameraResolution,AForge.Video.Kinect.VideoCameraMode)">
<summary>
Initializes a new instance of the <see cref="T:AForge.Video.Kinect.KinectVideoCamera"/> class.
</summary>
<param name="deviceID">Kinect's device ID (index) to connect to.</param>
<param name="resolution">Resolution of video camera to set.</param>
<param name="cameraMode">Sets video camera mode.</param>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.Start">
<summary>
Start video source.
</summary>
<remarks>Starts video source and returns execution to caller. Video camera will be started
and will provide new video frames through the <see cref="E:AForge.Video.Kinect.KinectVideoCamera.NewFrame"/> event.</remarks>
<exception cref="T:System.ArgumentException">The specified resolution is not supported for the selected
mode of the Kinect video camera.</exception>
<exception cref="T:AForge.ConnectionFailedException">Could not connect to Kinect's video camera.</exception>
<exception cref="T:AForge.DeviceBusyException">Another connection to the specified video camera is already running.</exception>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.SignalToStop">
<summary>
Signal video source to stop its work.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectVideoCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.WaitForStop">
<summary>
Wait for video source has stopped.
</summary>
<remarks><para><note>Calling this method is equivalent to calling <see cref="M:AForge.Video.Kinect.KinectVideoCamera.Stop"/>
for Kinect video camera.</note></para></remarks>
</member>
<member name="M:AForge.Video.Kinect.KinectVideoCamera.Stop">
<summary>
Stop video source.
</summary>
<remarks><para>The method stops the video source, so it no longer provides new video frames
and does not consume any resources.</para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectVideoCamera.NewFrame">
<summary>
New frame event.
</summary>
<remarks><para>Notifies clients about new available frames from the video source.</para>
<para><note>Since video source may have multiple clients, each client is responsible for
making a copy (cloning) of the passed video frame, because the video source disposes its
own original copy after notifying of clients.</note></para>
</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectVideoCamera.VideoSourceError">
<summary>
Video source error event.
</summary>
<remarks>This event is used to notify clients about any type of errors occurred in
video source object, for example internal exceptions.</remarks>
</member>
<member name="E:AForge.Video.Kinect.KinectVideoCamera.PlayingFinished">
<summary>
Video playing finished event.
</summary>
<remarks><para>This event is used to notify clients that the video playing has finished.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.CameraMode">
<summary>
Specifies video mode for the camera.
</summary>
<remarks>
<para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value of the property is set to <see cref="F:AForge.Video.Kinect.VideoCameraMode.Color"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.Resolution">
<summary>
Resolution of video camera to set.
</summary>
<remarks><para><note>The property must be set before running the video source to take effect.</note></para>
<para>Default value of the property is set to <see cref="F:AForge.Video.Kinect.CameraResolution.Medium"/>.</para>
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.Source">
<summary>
A string identifying the video source.
</summary>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.IsRunning">
<summary>
State of the video source.
</summary>
<remarks>Current state of video source object - running or not.</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.BytesReceived">
<summary>
Received bytes count.
</summary>
<remarks>Number of bytes the video source provided from the moment of the last
access to the property.
</remarks>
</member>
<member name="P:AForge.Video.Kinect.KinectVideoCamera.FramesReceived">
<summary>
Received frames count.
</summary>
<remarks>Number of frames the video source provided from the moment of the last
access to the property.
</remarks>
</member>
</members>
</doc>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@ -0,0 +1,27 @@
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\HCI Assignment 2.exe.config
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\HCI Assignment 2.exe
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\HCI Assignment 2.pdb
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.DirectShow.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.FFMPEG.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.Kinect.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.VFW.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.Ximea.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Imaging.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Math.dll
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.DirectShow.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.FFMPEG.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.Kinect.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.VFW.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Video.Ximea.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Imaging.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\bin\Debug\AForge.Math.xml
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\obj\Debug\HCI Assignment 2.csprojResolveAssemblyReference.cache
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\obj\Debug\HCI_Assignment_2.GetFrame.resources
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\obj\Debug\HCI_Assignment_2.Properties.Resources.resources
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\obj\Debug\HCI Assignment 2.csproj.GenerateResource.Cache
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\obj\Debug\HCI Assignment 2.exe
C:\Users\AnnJanu\documents\visual studio 2013\Projects\HCI Assignment 1\HCI Assignment 2\obj\Debug\HCI Assignment 2.pdb

Some files were not shown because too many files have changed in this diff Show More