Skip to content

Commit c85c025

Browse files
lab08
1 parent a7e180d commit c85c025

File tree

8 files changed

+226
-40
lines changed

8 files changed

+226
-40
lines changed

Kinect2Sample.sln

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@ Global
1616
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x64.ActiveCfg = Debug|x64
1717
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x64.Build.0 = Debug|x64
1818
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x64.Deploy.0 = Debug|x64
19-
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x86.ActiveCfg = Debug|x86
20-
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x86.Build.0 = Debug|x86
21-
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x86.Deploy.0 = Debug|x86
19+
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Debug|x86.ActiveCfg = Debug|x64
2220
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x64.ActiveCfg = Release|x64
2321
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x64.Build.0 = Release|x64
2422
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x64.Deploy.0 = Release|x64
25-
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x86.ActiveCfg = Release|x86
26-
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x86.Build.0 = Release|x86
27-
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x86.Deploy.0 = Release|x86
23+
{10FF1E4E-A8B9-46C6-A0C3-C7BADF94941F}.Release|x86.ActiveCfg = Release|x64
2824
EndGlobalSection
2925
GlobalSection(SolutionProperties) = preSolution
3026
HideSolutionNode = FALSE
3.06 KB
Loading
9.36 KB
Loading

Kinect2Sample/Assets/CatNose.png

6.64 KB
Loading

Kinect2Sample/Kinect2Sample.csproj

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,6 @@
4040
<ErrorReport>prompt</ErrorReport>
4141
<Prefer32Bit>true</Prefer32Bit>
4242
</PropertyGroup>
43-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
44-
<DebugSymbols>true</DebugSymbols>
45-
<OutputPath>bin\x86\Debug\</OutputPath>
46-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
47-
<NoWarn>;2008</NoWarn>
48-
<DebugType>full</DebugType>
49-
<PlatformTarget>x86</PlatformTarget>
50-
<UseVSHostingProcess>false</UseVSHostingProcess>
51-
<ErrorReport>prompt</ErrorReport>
52-
<Prefer32Bit>true</Prefer32Bit>
53-
</PropertyGroup>
54-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
55-
<OutputPath>bin\x86\Release\</OutputPath>
56-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
57-
<Optimize>true</Optimize>
58-
<NoWarn>;2008</NoWarn>
59-
<DebugType>pdbonly</DebugType>
60-
<PlatformTarget>x86</PlatformTarget>
61-
<UseVSHostingProcess>false</UseVSHostingProcess>
62-
<ErrorReport>prompt</ErrorReport>
63-
<Prefer32Bit>true</Prefer32Bit>
64-
</PropertyGroup>
6543
<ItemGroup>
6644
<Compile Include="App.xaml.cs">
6745
<DependentUpon>App.xaml</DependentUpon>
@@ -81,6 +59,9 @@
8159
</ItemGroup>
8260
<ItemGroup>
8361
<Content Include="Assets\Background.png" />
62+
<Content Include="Assets\CatEye_left_closed.png" />
63+
<Content Include="Assets\CatEye_left_open.png" />
64+
<Content Include="Assets\CatNose.png" />
8465
<Content Include="Assets\Logo.scale-100.png" />
8566
<Content Include="Assets\SmallLogo.scale-100.png" />
8667
<Content Include="Assets\SplashScreen.scale-100.png" />
@@ -97,6 +78,9 @@
9778
</Page>
9879
</ItemGroup>
9980
<ItemGroup>
81+
<SDKReference Include="Microsoft.Kinect.Face, Version=2.0">
82+
<Name>Microsoft.Kinect.Face</Name>
83+
</SDKReference>
10084
<SDKReference Include="Microsoft.VCLibs, version=12.0">
10185
<Name>Microsoft Visual C++ 2013 Runtime Package for Windows</Name>
10286
</SDKReference>
@@ -107,6 +91,11 @@
10791
<ItemGroup>
10892
<None Include="Kinect2Sample_TemporaryKey.pfx" />
10993
</ItemGroup>
94+
<ItemGroup>
95+
<Reference Include="KinectFaceStore">
96+
<HintPath>Libraries\x64\KinectFaceStore.dll</HintPath>
97+
</Reference>
98+
</ItemGroup>
11099
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
111100
<VisualStudioVersion>12.0</VisualStudioVersion>
112101
</PropertyGroup>
Binary file not shown.

Kinect2Sample/MainPage.xaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
<Viewbox Grid.Row="1" HorizontalAlignment="Center">
5454
<Grid x:Name="BodyJointsGrid" Background="Transparent" Width="512" Height="414"/>
5555
</Viewbox>
56+
<Viewbox Grid.Row="1" HorizontalAlignment="Center">
57+
<Canvas x:Name="FacePointsCanvas"/>
58+
</Viewbox>
5659
<StackPanel Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Left"
5760
Visibility="{Binding CurrentDisplayFrameType,
5861
Converter={StaticResource DisplayTypeToVisibilityConverter},
@@ -82,6 +85,14 @@
8285
Click="BackgroundButton_Click">
8386
<TextBlock Text="BG Removed" TextWrapping="Wrap" />
8487
</Button>
88+
<Button Style="{StaticResource FrameSelectorButtonStyle}"
89+
Click="ColorFaceButton_Click">
90+
<TextBlock Text="Color Face" TextWrapping="Wrap" />
91+
</Button>
92+
<Button Style="{StaticResource FrameSelectorButtonStyle}"
93+
Click="InfraredFaceButton_Click" x:Name="InfraredFaceButton">
94+
<TextBlock Text="Infrared Face" TextWrapping="Wrap" />
95+
</Button>
8596
</StackPanel>
8697
</ScrollViewer>
8798
</Grid>

0 commit comments

Comments
 (0)