Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.

Commit 59e6b21

Browse files
committed
2 parents 88df523 + a13a68b commit 59e6b21

58 files changed

Lines changed: 2511 additions & 106 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,4 @@ ModelManifest.xml
190190
/Apps/Demos/SentimentChat/SentimentChat/Scripts/Chart.js
191191
/Apps/Demos/SentimentChat/SentimentChat/Scripts/Chart.min.js
192192
/Apps/Demos/SentimentChat/SentimentChat/Scripts/Chart.Scatter.js
193+
Misc/DataScienceProcess/iPythonNotebooks/machine-Learning-data-science-process-sql-walkthrough.ipynb

Apps/Demos/IntelligentMallKiosk/IntelligentMallKiosk/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
</StackPanel>
7878
</StackPanel>
7979
</StackPanel>
80+
<ComboBox x:Name="comboBox_webcamSelector" SelectionChanged="WebcamComboBox_SelectionChanged" HorizontalAlignment="Left" Margin="32,490,0,0" VerticalAlignment="Top" Width="310" Height="24"/>
8081
</Grid>
8182

8283

Apps/Demos/IntelligentMallKiosk/IntelligentMallKiosk/MainWindow.xaml.cs

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ void OnResponseReceivedHandler(object sender, SpeechResponseEventArgs e)
430430
{
431431
this.fullText += e.PhraseResponse.Results[i].DisplayText + " ";
432432
userInput.Text = fullText;
433-
/* userInput.Text = e.PhraseResponse.Results[i].DisplayText;
434-
this.fullText += " " + userInput.Text;*/
433+
/* userInput.Text = e.PhraseResponse.Results[i].DisplayText;
434+
this.fullText += " " + userInput.Text;*/
435435
pingPong = 0;
436436
}));
437437
}
@@ -564,7 +564,7 @@ private void UpdateUIWithFaces(Face[] faces, double widthRatio, double heightRat
564564
//FaceMarker fm = new FaceMarker(age, face.Attributes.Gender);
565565

566566
FaceMarker fm = new FaceMarker(face as NamedFace);
567-
567+
568568
fm.Height = Math.Round(face.FaceRectangle.Height / heightRatio);
569569
fm.Width = Math.Round(face.FaceRectangle.Width / widthRatio);
570570
canvas.Children.Add(fm);
@@ -573,11 +573,11 @@ private void UpdateUIWithFaces(Face[] faces, double widthRatio, double heightRat
573573
Canvas.SetTop(fm, Math.Round(face.FaceRectangle.Top / heightRatio));
574574
Canvas.SetLeft(fm, Math.Round(face.FaceRectangle.Left / widthRatio));
575575

576-
/* HumanIdentification identification = new HumanIdentification();
577-
identification.Age = face.Attributes.Age.ToString() + " years old";
578-
identification.Id = face.Attributes.Gender;
579-
identification.HairlineColor = brushList[index++];
580-
Ids.Children.Add(identification);*/
576+
/* HumanIdentification identification = new HumanIdentification();
577+
identification.Age = face.Attributes.Age.ToString() + " years old";
578+
identification.Id = face.Attributes.Gender;
579+
identification.HairlineColor = brushList[index++];
580+
Ids.Children.Add(identification);*/
581581
}
582582
}
583583
}
@@ -664,14 +664,14 @@ private void btnPrint_Click(object sender, RoutedEventArgs e)
664664

665665

666666
PrintDialog printDialog = new PrintDialog();
667-
667+
668668
// Set image and adjust to new size
669669
layout.ImageToPrint.Source = OutputImage.Source;
670670

671671
// Add face markers
672672
if (RecognizedFaces != null && RecognizedFaces.Length > 0)
673673
{
674-
674+
675675
int index = 0;
676676
foreach (var face in RecognizedFaces)
677677
{
@@ -694,7 +694,7 @@ private void btnPrint_Click(object sender, RoutedEventArgs e)
694694

695695
TransformGroup transGroup = new TransformGroup();
696696
layout.CardToPrint.LayoutTransform = transGroup;
697-
697+
698698
System.Printing.PrintCapabilities capabilities = printDialog.PrintQueue.GetPrintCapabilities(printDialog.PrintTicket);
699699
transGroup.Children.Add(new ScaleTransform(capabilities.PageImageableArea.ExtentWidth / layout.CardToPrint.Width,
700700
capabilities.PageImageableArea.ExtentHeight / layout.CardToPrint.Height));
@@ -722,14 +722,16 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
722722

723723
if (this.MediaDeviceList.Count > 0)
724724
{
725-
this.SelectedVideoDevice = this.MediaDeviceList[this.MediaDeviceList.Count - 1];
725+
//bind the combobox to the list
726+
comboBox_webcamSelector.ItemsSource = this.MediaDeviceList;
727+
comboBox_webcamSelector.DisplayMemberPath = "DisplayName";
728+
comboBox_webcamSelector.SelectedItem = this.MediaDeviceList[this.MediaDeviceList.Count - 1];
726729
}
727730
else
728731
{
729732
this.SelectedVideoDevice = null;
730733
}
731734

732-
CameraVideoDeviceControl.VideoSourceId = SelectedVideoDevice.UsbId;
733735
}
734736

735737

@@ -796,5 +798,18 @@ public IList<MediaInformation> MediaDeviceList
796798
this.mediaDeviceList = value;
797799
}
798800
}
801+
802+
803+
/// <summary>
804+
/// Set the video device in the webcam control to whichever device is selected in the dropdown
805+
/// </summary>
806+
/// <param name="sender"></param>
807+
/// <param name="e"></param>
808+
private void WebcamComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
809+
{
810+
var cb = sender as ComboBox;
811+
this.SelectedVideoDevice = cb.SelectedItem as MediaInformation;
812+
CameraVideoDeviceControl.VideoSourceId = SelectedVideoDevice.UsbId;
813+
}
799814
}
800815
}

Apps/Recommendations/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{BEC461CD-EB59-44F2-A1FF-8DD515D14B0F}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>AzureMLRecoSampleApp</RootNamespace>
11+
<AssemblyName>AzureMLRecoSampleApp</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<SccProjectName>SAK</SccProjectName>
15+
<SccLocalPath>SAK</SccLocalPath>
16+
<SccAuxPath>SAK</SccAuxPath>
17+
<SccProvider>SAK</SccProvider>
18+
<PublishUrl>publish\</PublishUrl>
19+
<Install>true</Install>
20+
<InstallFrom>Disk</InstallFrom>
21+
<UpdateEnabled>false</UpdateEnabled>
22+
<UpdateMode>Foreground</UpdateMode>
23+
<UpdateInterval>7</UpdateInterval>
24+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
25+
<UpdatePeriodically>false</UpdatePeriodically>
26+
<UpdateRequired>false</UpdateRequired>
27+
<MapFileExtensions>true</MapFileExtensions>
28+
<ApplicationRevision>0</ApplicationRevision>
29+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
30+
<IsWebBootstrapper>false</IsWebBootstrapper>
31+
<UseApplicationTrust>false</UseApplicationTrust>
32+
<BootstrapperEnabled>true</BootstrapperEnabled>
33+
</PropertyGroup>
34+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
35+
<PlatformTarget>AnyCPU</PlatformTarget>
36+
<DebugSymbols>true</DebugSymbols>
37+
<DebugType>full</DebugType>
38+
<Optimize>false</Optimize>
39+
<OutputPath>bin\Debug\</OutputPath>
40+
<DefineConstants>DEBUG;TRACE</DefineConstants>
41+
<ErrorReport>prompt</ErrorReport>
42+
<WarningLevel>4</WarningLevel>
43+
</PropertyGroup>
44+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45+
<PlatformTarget>AnyCPU</PlatformTarget>
46+
<DebugType>pdbonly</DebugType>
47+
<Optimize>true</Optimize>
48+
<OutputPath>bin\Release\</OutputPath>
49+
<DefineConstants>TRACE</DefineConstants>
50+
<ErrorReport>prompt</ErrorReport>
51+
<WarningLevel>4</WarningLevel>
52+
</PropertyGroup>
53+
<ItemGroup>
54+
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
55+
<HintPath>packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
56+
<Private>True</Private>
57+
</Reference>
58+
<Reference Include="System" />
59+
<Reference Include="System.Core" />
60+
<Reference Include="System.Net.Http" />
61+
<Reference Include="System.Runtime.Serialization" />
62+
<Reference Include="System.ServiceModel" />
63+
<Reference Include="System.Xml.Linq" />
64+
<Reference Include="System.Data.DataSetExtensions" />
65+
<Reference Include="Microsoft.CSharp" />
66+
<Reference Include="System.Data" />
67+
<Reference Include="System.Xml" />
68+
</ItemGroup>
69+
<ItemGroup>
70+
<Compile Include="SampleApp.cs" />
71+
<Compile Include="Properties\AssemblyInfo.cs" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<None Include="App.config" />
75+
<None Include="packages.config" />
76+
</ItemGroup>
77+
<ItemGroup>
78+
<Content Include="Resources\catalog_small.txt">
79+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
80+
</Content>
81+
<Content Include="Resources\usage_small.txt">
82+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
83+
</Content>
84+
</ItemGroup>
85+
<ItemGroup>
86+
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
87+
<Visible>False</Visible>
88+
<ProductName>Microsoft .NET Framework 4.5 %28x86 and x64%29</ProductName>
89+
<Install>true</Install>
90+
</BootstrapperPackage>
91+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
92+
<Visible>False</Visible>
93+
<ProductName>.NET Framework 3.5 SP1</ProductName>
94+
<Install>false</Install>
95+
</BootstrapperPackage>
96+
</ItemGroup>
97+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
98+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
99+
Other similar extension points exist, see Microsoft.Common.targets.
100+
<Target Name="BeforeBuild">
101+
</Target>
102+
<Target Name="AfterBuild">
103+
</Target>
104+
-->
105+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("SageSampleApp")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("SageSampleApp")]
13+
[assembly: AssemblyCopyright("Copyright © 2014")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("129a1964-e343-4588-95da-0135c4d11c06")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureMLRecoSampleApp", "AzureMLRecoSampleApp.csproj", "{BEC461CD-EB59-44F2-A1FF-8DD515D14B0F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{BEC461CD-EB59-44F2-A1FF-8DD515D14B0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{BEC461CD-EB59-44F2-A1FF-8DD515D14B0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{BEC461CD-EB59-44F2-A1FF-8DD515D14B0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{BEC461CD-EB59-44F2-A1FF-8DD515D14B0F}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2406e770-769c-4189-89de-1c9283f93a96,Clara Callan,Book,book description,author=Richard Wright,publisher=Harper Flamingo Canada,year=2001
2+
21bf8088-b6c0-4509-870c-e1c7ac78304a,The Forgetting Room: A Fiction (Byzantium Book),Book,book description,author=Nick Bantock,publisher=Harpercollins,year=1997
3+
3bb5cb44-d143-4bdd-a55c-443964bf4b23,Spadework,Book,book description,author=Timothy Findley, publisher=HarperFlamingo Canada, year=2001
4+
552a1940-21e4-4399-82bb-594b46d7ed54,Restraint of Beasts,Book,book description,author=Magnus Mills, publisher=Arcade Publishing, year=1998
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
85526,2406e770-769c-4189-89de-1c9283f93a96
2+
210926,2406e770-769c-4189-89de-1c9283f93a96
3+
116866,2406e770-769c-4189-89de-1c9283f93a96
4+
177458,2406e770-769c-4189-89de-1c9283f93a96
5+
274004,21bf8088-b6c0-4509-870c-e1c7ac78304a
6+
123883,21bf8088-b6c0-4509-870c-e1c7ac78304a
7+
37712,21bf8088-b6c0-4509-870c-e1c7ac78304a
8+
152249,21bf8088-b6c0-4509-870c-e1c7ac78304a
9+
250948,21bf8088-b6c0-4509-870c-e1c7ac78304a
10+
235588,21bf8088-b6c0-4509-870c-e1c7ac78304a
11+
158254,21bf8088-b6c0-4509-870c-e1c7ac78304a
12+
271195,21bf8088-b6c0-4509-870c-e1c7ac78304a
13+
141157,21bf8088-b6c0-4509-870c-e1c7ac78304a
14+
171118,3bb5cb44-d143-4bdd-a55c-443964bf4b23
15+
225087,3bb5cb44-d143-4bdd-a55c-443964bf4b23
16+
244881,3bb5cb44-d143-4bdd-a55c-443964bf4b23
17+
50547,3bb5cb44-d143-4bdd-a55c-443964bf4b23
18+
213090,3bb5cb44-d143-4bdd-a55c-443964bf4b23
19+
260655,3bb5cb44-d143-4bdd-a55c-443964bf4b23
20+
72214,3bb5cb44-d143-4bdd-a55c-443964bf4b23
21+
189334,3bb5cb44-d143-4bdd-a55c-443964bf4b23
22+
36326,3bb5cb44-d143-4bdd-a55c-443964bf4b23
23+
189336,3bb5cb44-d143-4bdd-a55c-443964bf4b23
24+
189334,552a1940-21e4-4399-82bb-594b46d7ed54
25+
260655,552a1940-21e4-4399-82bb-594b46d7ed54
26+
162100,552a1940-21e4-4399-82bb-594b46d7ed54
27+
54946,552a1940-21e4-4399-82bb-594b46d7ed54
28+
260965,552a1940-21e4-4399-82bb-594b46d7ed54
29+
102758,552a1940-21e4-4399-82bb-594b46d7ed54
30+
112602,552a1940-21e4-4399-82bb-594b46d7ed54
31+
163925,552a1940-21e4-4399-82bb-594b46d7ed54
32+
262998,552a1940-21e4-4399-82bb-594b46d7ed54
33+
144717,552a1940-21e4-4399-82bb-594b46d7ed54

0 commit comments

Comments
 (0)