Beispiel #1
0
        internal static void ShowHybrisAdvertizing(Microsoft.ProjectOxford.Face.Contract.FaceAttributes faceAttributes, System.Windows.Controls.Image rightImage)
        {
            //Hackathon: call this method with the information from Azure Face API, create a Request to Hybris and show the ad.
            String targetGroup            = GetTargetGroup(faceAttributes.Age, faceAttributes.Gender, faceAttributes.Glasses, faceAttributes.FacialHair, faceAttributes.Emotion, faceAttributes.Smile);
            String hybrisResponseImageURL = HybrisRest.GetHybrisData(targetGroup);

            Console.WriteLine("Showing Ad from URL: " + hybrisResponseImageURL);
            ShowAd(hybrisResponseImageURL, rightImage);
        }
Beispiel #2
0
 public HSFace(Guid id, string imageFile, ClientContract.FaceAttributes attributes)
 {
     Id         = id;
     ImageFile  = imageFile;
     Attributes = attributes;
 }