Exemplo n.º 1
0
        private void btnGetCaptcha_Click(object sender, EventArgs e)
        {
            if (webBrowser.Document == null)
            {
                return;
            }

            var elemCaptcha = webBrowser.Document.GetElementById("captchaLogin");

            if (elemCaptcha == null)
            {
                return;
            }

            ProcessGetCaptcha(Getimg.CopyImageAlt(webBrowser, elemCaptcha));
        }
Exemplo n.º 2
0
        private void ProcessGetCaptcha(Image imgCaptcha)
        {
            picBox.Image = imgCaptcha;
            Decaptcha.ApplyOcr((Bitmap)imgCaptcha, ref _lstWord);

            var filteredImg = Getimg.ApplyFilters(imgCaptcha);

            picBoxFiltered.Image = filteredImg;
            Decaptcha.ApplyOcr((Bitmap)filteredImg, ref _lstWord);

            filteredImg   = Getimg.ApplyFilters02(imgCaptcha);
            picBox3.Image = filteredImg;
            Decaptcha.ApplyOcr((Bitmap)filteredImg, ref _lstWord);

            filteredImg   = Getimg.ApplyFilters03(filteredImg);
            picBox4.Image = filteredImg;
            Decaptcha.ApplyOcr((Bitmap)filteredImg, ref _lstWord);

            _lstWord.ForEach(item => SetLog("Decaptcha: " + item));
        }