zoukankan      html  css  js  c++  java
  • 图片识别文字, 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);

  • 相关阅读:
    Webform服务器控件调用JS
    Webfrom基础知识
    Webform用户控件
    数组练习
    整理
    SVN分支与合并
    根据经纬度,获取两点间的距离
    简单Bat文件编写
    Maven Android使用一
    Maven环境配置
  • 原文地址:https://www.cnblogs.com/zxhome/p/10008846.html
Copyright © 2011-2022 走看看