以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]图片文字识别dll使用不成功,不知道怎么搞了  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=133529)

--  作者:yjm789000
--  发布时间:2019/4/15 20:44:00
--  [求助]图片文字识别dll使用不成功,不知道怎么搞了
有个项目要使用文字识别,不想使用百度和阿里云的
按论坛里其他人提供的方法:http://www.cnblogs.com/stone_w/archive/2011/10/08/2202397.html
操作的时候,并没有正确,还要麻烦老师给予解决和指导下。

<DllImport("aocr_x64.dll", EntryPoint = "OCR", CallingConvention = CallingConvention.Cdecl)>

Public static extern IntPtr OCR(String file, int Type)

<DllImport("aocr_x64.dll", EntryPoint = "OCRpart", CallingConvention = CallingConvention.Cdecl)>

Public static extern IntPtr OCRpart(String file, int Type, int startX, int startY, int width, int height)

<DllImport("aocr_x64.dll", EntryPoint = "OCRBarCodes", CallingConvention = CallingConvention.Cdecl)>

Public static extern IntPtr OCRBarCodes(String file, int Type)

<DllImport("aocr_x64.dll", EntryPoint = "OCRpartBarCodes", CallingConvention = CallingConvention.Cdecl)>

Public static extern IntPtr OCRpartBarCodes(String file, int Type, int startX, int startY, int width, int height)


图片点击可在新窗口打开查看此主题相关图片如下:12.jpg
图片点击可在新窗口打开查看

而且现在这个动态库dll有变化了,我没怎么看的懂
如果可以的话,麻烦老师帮忙给写出一个程序给我们参考下

[此贴子已经被作者于2019/4/15 20:46:15编辑过]

--  作者:有点蓝
--  发布时间:2019/4/15 21:20:00
--  
这些是C#代码,自己转换为vb.net:http://converter.telerik.com/

然后可以参考:
http://www.foxtable.com/webhelp/scr/2417.htm

http://www.foxtable.com/webhelp/scr/3052.htm