Exemplo n.º 1
0
        public void SimilarityCalculation()
        {
            var screenshot = _calculatorSession.GetScreenshot();
            var options    = new SimilarityMatchingOptions {
                Visualize = true
            };

            var similarityResult = _calculatorSession.GetImagesSimilarity(screenshot.AsBase64EncodedString, screenshot.AsBase64EncodedString, options);

            Assert.Greater(similarityResult.Score, 0);
            Assert.IsNotNull(similarityResult.Visualization);
        }