苏飞论坛

标题: c# 实现的图片识别。中文支持不好 希望高手改进 [打印本页]

作者: qq576733600    时间: 2013-6-8 10:42
标题: c# 实现的图片识别。中文支持不好 希望高手改进
//这个函数是指定一个图片文件,并返回文本
[DllImport("AspriseOCR.dll", EntryPoint = "OCR")]
  public static extern IntPtr OCR(string file, int type);

//这个函数是识别图片的一部分
  [DllImport("AspriseOCR.dll", EntryPoint = "OCRpart")]
  static extern IntPtr OCRpart(string file, int type, int startX, int startY, int width, int height);

//识别条码
  [DllImport("AspriseOCR.dll", EntryPoint = "OCRBarCodes")]
  static extern IntPtr OCRBarCodes(string file, int type);

//识别条码
  [DllImport("AspriseOCR.dll", EntryPoint = "OCRpartBarCodes")]
  static extern IntPtr OCRpartBarCodes(string file, int type, int startX, int startY, int width, int height);



作者: 站长苏飞    时间: 2013-6-8 11:04
没源码改进很难呀
作者: zhwq107    时间: 2013-6-23 11:41
我直接调用大漠插件就省事多了,呵呵。




欢迎光临 苏飞论坛 (http://www.sufeinet.com/) Powered by Discuz! X3.4