资 源 简 介
英文OCR识别控件,可对验证码进行识别。带有演示源码。 int startX = 0
int startY = 0
int width = -1
int height = -1
try
{
startX = Convert.ToInt32(textStartX.Text)
startY = Convert.ToInt32(textStartY.Text)
width = Convert.ToInt32(textWidth.Text)
height = Convert.ToInt32(textHeight.Text)
}
catch (Exception ex)
{
Console.WriteLine(ex.StackTrace)
}
String result = Marshal.PtrToStringAnsi(OCRpart(textImage.Text, -1, startX, startY, width, height))
textResults.Text = result -English OCR recognition controls, can be identified on the Verification Code. Demonstration with source code. int startX = 0 int startY = 0 int width =-1 int height =-1 try (startX = Convert.ToInt32 (textStartX.Text) startY = Convert.ToInt32 (textStartY.Text) width = Convert. ToInt32 (textWidth.Text) height = Convert.ToInt32 (textHeight.Text) ) catch (Exception ex) (Console.WriteLine (ex.StackTrace) ) String result = Marshal.PtrToStringAnsi (OCRpar