C # use AspriseOCR.dll Realization of verification code recognition

Time:2021-1-28

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

program execution

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));

summary

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!

Recommended Today

Node.js Several interview questions

Some statements Through these questions to judge a person’s personality Node.js The level is not very rigorous, butIt allows you to have a good understanding of the interviewer’s Node.js How to have a general understanding of the experience in the field. But obviously, these questions don’t tell you the way the interviewer thinks. Show me […]