文章引用自: https://www.cnblogs.com/stone_w/archive/2011/10/08/2202397.html

方式一、Asprise-OCR的使用。

Asprise-OCR下载地址:

http://asprise.com/product/ocr/download.php?lang=csharp

其中需要使用的3个dll是AspriseOCR.dll、DevIL.dll、ILU.dll。

需要注意的是这几个.dll是vc写的引用要在程序中用DllImport引用,关键代码:

[DllImport("AspriseOCR.dll", EntryPoint = "OCR", CallingConvention = CallingConvention.Cdecl)]

public static extern IntPtr OCR(string file, int type);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRpart", CallingConvention = CallingConvention.Cdecl)]

static extern IntPtr OCRpart(string file, int type, int startX, int startY, int width, int height);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRBarCodes", CallingConvention = CallingConvention.Cdecl)]

static extern IntPtr OCRBarCodes(string file, int type);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRpartBarCodes", CallingConvention = CallingConvention.Cdecl)]

static extern IntPtr OCRpartBarCodes(string file, int type, int startX, int startY, int width, int height);

最新文章

  1. react native 环境配置
  2. java线程池ThreadPoolExecutor使用简介
  3. Servlet/JSP-02 Servlet相关类
  4. Moccakids-Tangram Puzzle 限免啦!
  5. CSS3 text-rendering属性
  6. (转载)HTML与XHTML有什么区别
  7. Enze fifth day(循环语句2)
  8. msys2 安装注意事项
  9. linux同步windows的时间
  10. tomato dualwan /root目录的特殊用途
  11. React UI 组件库uiw v1.2.8 发布
  12. Google Play 购买(IAB)测试流程
  13. loadrunner 添加集合点和添加压力机
  14. lsb_release command not found
  15. hello2 源码解析
  16. MySQL ANALYZE TABLE
  17. poj 2886 线段树的更新+反素数
  18. 分享今天在客户那里遇到的SQLSERVER连接超时以及我的解决办法
  19. ABAP-Generate subroutine
  20. Scrum立会报告+燃尽图(十月十四日总第五次):前期宣传工作进行中

热门文章

  1. 剑指offer 3. 链表 从尾到头打印链表
  2. Firebug 没死,活在 Firefox DevTools 中
  3. 【java】设计模式-单例设计模式
  4. 轻量应用服务器 访问jsp页面就直接下载的问题
  5. onOptionsItemSelected、onMenuItemSelected、onContextItemSelected 区别
  6. 利用Kettle 从Excel中抽取数据写入SQLite
  7. C# WinForm 实现窗体淡入淡出
  8. feign接口调用异常的解决方向
  9. day40数据库之表的相关操作
  10. python3对excel文件读写操作