예제 #1
0
        public IPicture Filter(IPicture image)
        {
            var        twitter = new TwitterImage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);
            FilterSave save    = new FilterSave();

            save.Filter(image);
            twitter.PublishToTwitter("Imagen nueva", $"..\\Adds\\{FilterSave.Contador.ToString()}.jpg");
            return(image);
        }
예제 #2
0
        public Boolean Filter(IPicture image)
        {
            PictureProvider p2   = new PictureProvider();
            CognitiveFace   cog  = new CognitiveFace("620e818a46524ceb92628cde08068242", false);
            FilterSave      save = new FilterSave();

            save.Filter(image);
            cog.Recognize($"..\\Adds\\{FilterSave.Contador.ToString()}.jpg");
            return(cog.FaceFound);
        }