Beispiel #1
0
        static void Main(string[] args)
        {
            CognitiveFace cog = new CognitiveFace("<api-key>", Color.GreenYellow);

            cog.Recognize(@"bill.jpg");
            FoundFace(cog);
            cog.Recognize(@"yacht.jpg");
            FoundFace(cog);
        }
Beispiel #2
0
 static void FoundFace(CognitiveFace cog)
 {
     if (cog.FaceFound)
     {
         Console.WriteLine("Face Found! :)");
     }
     else
     {
         Console.WriteLine("No Face Found :(");
     }
 }
Beispiel #3
0
 static bool FoundFace(CognitiveFace cog)
 {
     if (cog.FaceFound)
     {
         Console.WriteLine("Face Found! :)");
         return(true);
     }
     else
     {
         Console.WriteLine("No Face Found :(");
         return(false);
     }
 }