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