C#實現驗證碼識別

 這個可能是最簡單的嚴整碼了..

 

驗證

 

 

使用

 

 System.Net.WebClient _Client =new System.Net.WebClient();
            byte[] _ImageBytes =_Client.DownloadData("http://www.fjjj.gov.cn/Article/getcode.asp");

            MemoryStream _Memory = new MemoryStream(_ImageBytes);
            Bitmap _OldBitmap = (Bitmap)Image.FromStream(_Memory);
            pictureBox1.Image = _OldBitmap;

            this.Text = GetCodeText(_OldBitmap);

 

全部代碼

 

 

 

 

 

 

發佈了95 篇原創文章 · 獲贊 17 · 訪問量 56萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章