rolaka 发表于 2008-10-25 21:26:39

关于"验证码识别"自定义识别数据生成...

http://www.autoitx.com/forum.php?mod=viewthread&tid=1130
非常感谢rho123能够公开源码...

附件是我制作的识别数据...和原来脚本一样,是识别http://blog.mz99.com/validCode.aspx用的...

现在发现一个问题,我制作的没有办法调用...$txt = $obj.GetStringFromFile调用出错...

为什么呢...难道是我输出方法不对..?

gooker 发表于 2008-10-26 21:38:18

这个是我用的调用captchio的部分

If Not FileExists(@systemdir&'\Captchio.dll') Then
                        FileInstall("Captchio.dll", @SystemDir)
                        Run("regsvr32.exe /s Captchio.dll")
                EndIf
                $o_ocr = ObjCreate("Captchio.cCaptcha")
                if not IsObj($o_ocr)then MsgBox(4096,"error","估计该dll没有成功注册,请手工注册:regsvr32.exe Captchio.dll")
                If $o_ocr.OpenCharDB(@ScriptDir&"\BX.cdb") Then
                        $chkcode = $o_ocr.GetStringFromFile(@ScriptDir&"\BX.bmp",True) ;                EndIf

rolaka 发表于 2008-10-26 22:10:05

原帖由 gooker 于 2008-10-26 21:38 发表 http://www.autoitx.com/images/common/back.gif
这个是我用的调用captchio的部分

If Not FileExists(@systemdir&'\Captchio.dll') Then
                        FileInstall("Captchio.dll", @SystemDir)
                        Run("regsvr32.exe /s Captchio.dll")
                EndIf
                $o_ocr = ObjCreate( ...
...感谢版主...
但是...到$o_ocr.GetStringFromFile一步,就出现请求动作失败...
用的是我上面帖子附件里的cdb...路径图片都应该没错
难道..我的cdb有问题?

sanmoking 发表于 2010-2-5 11:43:15

的确是楼主的cdb的问题

mypine 发表于 2010-3-25 21:45:14

谢谢楼主。感谢
页: [1]
查看完整版本: 关于"验证码识别"自定义识别数据生成...