各位大侠有没有做过OCR识别的,请指教指教:
      [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);
       上面几个方法中想识别条形码,不知道哪个方式可行,逐个试验都不正确,请高手指出正确的使用方法或者还有别的识别条形码的好方法,不胜感激!

解决方案 »

  1.   

    都不可行那是对的。你写都写错了。[DllImport("SCL_API_Stdcall", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
    public static extern IntPtr OCRBarCodes(string file, int type);
      

  2.   

    都不可行那是对的。你写都写错了。[DllImport("AspriseOCR.dll", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
    public static extern IntPtr OCRBarCodes(string file, int type);
      

  3.   

    AspriseOCR.dll 如果文件在别的地方,应该指明路径
      

  4.   

     其实在使用AspriseOCR.dll的时候对于特别好的图像识别没有问题的,但是实际应用中的图像都是纸张在经过辗转几次回来后才做的扫描,图片的清晰度等肯定没有原始的好,因此就会识别率低下,欲寻一识别率高的,类似扫描枪那样的对图片要求不太严格的OCR识别类控件,不知哪位大侠有?若能共享一份,立即结贴,还可以加分,谢谢了,呵呵!