Ejemplo n.º 1
0
        public static string ScanName(Bitmap bm)
        {
            Scraper.SetGamma(0.2, 0.2, 0.2, ref bm);
            Bitmap n = Scraper.ConvertToGrayscale(bm);

            Scraper.SetInvert(ref n);

            // Analyze
            string text = Regex.Replace(Scraper.AnalyzeText(n).ToLower(), @"[\W]", string.Empty);

            text = Scraper.FindClosestWeapon(text);

            n.Dispose();

            // Check in Dictionary
            return(text);
        }