Captcha is based on ten security barriers to create three-dimensional and comprehensive man-machine verification for web page, app and small program developers, and to protect the business security of registration login, activity seckill, like posting, data protection and other major scenarios to the greatest extent. To do automated scripting, it is necessary to be able to identify the verification code.
The effect is as follows:
Demo program structure
Create WinForm form program in vs2019 and add corresponding control
1、 Using the openfiledialog class, you can select a picture file
2、 Use AspriseOCR.dll , identify the image, the main function strcode= Marshal.PtrToStringAnsi (OCR(path, -1));
This paper demonstrates the use of C # AspriseOCR.dll The recognition effect of aspriseocr is not very good, you can use replace to improve the recognition error, but the simple verification code is still solved.
This article is about the use of C # AspriseOCR.dll This is the article about how to realize the verification code recognition. For more related C # verification code recognition content, please search previous articles of developer or continue to browse the following related articles. I hope you can support developer more in the future!