Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var test = new Test();
            var similarityResult = test.CalculateSimilarity();
            Task.WaitAll(similarityResult);

            Console.WriteLine();

            var detectionResult = test.DetectFaces();
            Task.WaitAll(detectionResult);
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public double GetSimilar(string URL1,string URL2)
        {
            var test = new Test();
            var similarityResult = test.CalculateSimilarity(URL1,URL2);
            Task.WaitAll(similarityResult);

            Console.WriteLine();

            var detectionResult = test.DetectFaces();
            Task.WaitAll(detectionResult);        

            return similarityResult.Result.Confidence;
        }