文件名称:AspriseOCR 4.0破解dll
文件大小:726KB
文件格式:RAR
更新时间:2018-09-27 03:41:25
AspriseOCR 4.0破解dll
AspriseOCR 4.0破解dll是由VC编写,所以引用需要用代码来实现,代码如下: [DllImport(@"F:\ocr\OCR\OCR 图片识别\AspriseOCR 4.0破解dll\AspriseOCR.dll", EntryPoint = "OCR", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr OCR(string file, int type); [DllImport(@"F:\ocr\OCR\OCR 图片识别\AspriseOCR 4.0破解dll\AspriseOCR.dll", EntryPoint = "OCRpart", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr OCRpart(string file, int type, int startX, int startY, int width, int height); [DllImport(@"F:\ocr\OCR\OCR 图片识别\AspriseOCR 4.0破解dll\AspriseOCR.dll", EntryPoint = "OCRBarCodes", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr OCRBarCodes(string file, int type); [DllImport(@"F:\ocr\OCR\OCR 图片识别\AspriseOCR 4.0破解dll\AspriseOCR.dll", EntryPoint = "OCRpartBarCodes", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr OCRpartBarCodes(string file, int type, int startX, int startY, int width, int height); 使用实现代码如下: Marshal.PtrToStringAnsi(OCRpart(PicturePath , -1, startX, startY, width, height));//返回值为字符串 return Marshal.PtrToStringAnsi(OCRpart(PicturePath, -1, 0, 0, 900, 200));