要求不管用什么方法识别出图里的文字:http://www.sszsoft.cn/未命名.bmp能做完成的加我QQ:173734592    详谈!

解决方案 »

  1.   

    GOOGLE之.一个号称专业的验证码识别库.
      

  2.   

    VERSION 5.00
    Begin VB.Form Form1
       Caption         =   "VB实现OCR文字识别"
       ClientHeight    =   3195
       ClientLeft      =   60
       ClientTop       =   345
       ClientWidth     =   4680
       LinkTopic       =   "Form1"
       ScaleHeight     =   3195
       ScaleWidth      =   4680
       StartUpPosition =   3  '窗口缺省
       Begin VB.CommandButton Command1
          Caption         =   "识别"
          Height          =   495
          Left            =   1800
          TabIndex        =   0
          Top             =   1320
          Width           =   1215
       End
    End
    Attribute VB_Name = "Form1"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = False
    Option ExplicitPrivate Sub Command1_Click()
    Dim strLayoutInfo As String
    Dim miDoc As Object
    Dim modiLayout As Object     '初始化并加载文档
        Set miDoc = CreateObject("MODI.Document")            '创建对象
        miDoc.Create "z.tif"               '加载图片文件    Screen.MousePointer = vbHourglass                    '设置光标忙
        '识别
        miDoc.Images(0).OCR miLANG_CHINESE_SIMPLIFIED, True, True '有用的就此一句,识别为中文简体    Set modiLayout = miDoc.Images(0).Layout              '读出数据
        strLayoutInfo = _
            "Language: " & modiLayout.Language & vbCrLf & _
            "Number of characters: " & modiLayout.NumChars & vbCrLf & _
            "Number of fonts: " & modiLayout.NumFonts & vbCrLf & _
            "Number of words: " & modiLayout.NumWords & vbCrLf & _
            "Beginning of text: " & Left(modiLayout.Text, 50) & vbCrLf & _
            "First word of text: " & modiLayout.Words(0).Text
        MsgBox strLayoutInfo, vbInformation + vbOKOnly, "Layout Information"
        Set modiLayout = Nothing
        Set miDoc = Nothing
        Screen.MousePointer = vbDefault
    End Sub
      

  3.   

    你运行不起来么?http://www.m5home.com/blog/article.asp?id=369利用OFFICE2003的OCR识别文字.不过当时我就试过了,不适合你的图片.