OCR识别的问题!

YBFH424 2009-09-25 10:18:05
各位大侠有没有做过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);
上面几个方法中想识别条形码,不知道哪个方式可行,逐个试验都不正确,请高手指出正确的使用方法或者还有别的识别条形码的好方法,不胜感激!
...全文
223 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
YBFH424 2009-09-28
  • 打赏
  • 举报
回复
其实在使用AspriseOCR.dll的时候对于特别好的图像识别没有问题的,但是实际应用中的图像都是纸张在经过辗转几次回来后才做的扫描,图片的清晰度等肯定没有原始的好,因此就会识别率低下,欲寻一识别率高的,类似扫描枪那样的对图片要求不太严格的OCR识别类控件,不知哪位大侠有?若能共享一份,立即结贴,还可以加分,谢谢了,呵呵!
szyuchao 2009-09-27
  • 打赏
  • 举报
回复
AspriseOCR.dll 如果文件在别的地方,应该指明路径
szyuchao 2009-09-25
  • 打赏
  • 举报
回复
都不可行那是对的。你写都写错了。

[DllImport("AspriseOCR.dll", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern IntPtr OCRBarCodes(string file, int type);
szyuchao 2009-09-25
  • 打赏
  • 举报
回复
都不可行那是对的。你写都写错了。

[DllImport("SCL_API_Stdcall", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern IntPtr OCRBarCodes(string file, int type);
YBFH424 2009-09-25
  • 打赏
  • 举报
回复
up!
YBFH424 2009-09-25
  • 打赏
  • 举报
回复
顶啊,大侠们都来看看啊!
l13873666736 2009-09-25
  • 打赏
  • 举报
回复
mark
YBFH424 2009-09-25
  • 打赏
  • 举报
回复
2,3楼的哥们,用你的方法试验了也是不行!

110,545

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧