资源简介
实现方法本人在至少5台不同类型的电脑测试无误。字体配好后,识别率为100%。具体流程见调用流程.docx

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace CShapDM
{
///
/// 大漠插件C#免注册调用类
/// 本模块必须包含dmc.dll 实现不用注册dm.dll 到系统可以动态调用
///
class CDmSoft : IDisposable
{
#region import DLL 函数
[DllImport(“dmc.dll“CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern IntPtr CreateDM(string dmpath);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int FreeDM();
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern string Ver(IntPtr dm);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int SetPath(IntPtr dmstring path);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern string Ocr(IntPtr dmint x1int y1int x2int y2string colordouble sim);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int FindStr(IntPtr dmint x1int y1int x2int y2string strstring colordouble simout object xout object y);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int GetResultCount(IntPtr dmstring str);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int GetResultPos(IntPtr dmstring strint indexout object xout object y);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int StrStr(IntPtr dmstring sstring str);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int SendCommand(IntPtr dmstring cmd);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int UseDict(IntPtr dmint index);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern string GetbasePath(IntPtr dm);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern int SetDictPwd(IntPtr dmstring pwd);
[DllImport(“dmc.dll“ CharSet = CharSet.Unicode CallingConvention = CallingConvention.StdCall)]
public static extern string OcrInFile(IntPtr dmint x1int y1int x2int y2string pic_namestring colordouble sim);
[DllIm
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4846 2013-06-05 14:48 C# 调用大漠插件\03调用大漠插件\03调用大漠插件.csproj
文件 227 2013-06-05 14:30 C# 调用大漠插件\03调用大漠插件\03调用大漠插件.csproj.user
文件 6144 2015-11-18 15:59 C# 调用大漠插件\03调用大漠插件\03调用大漠插件.v11.suo
文件 187 2013-06-04 14:17 C# 调用大漠插件\03调用大漠插件\App.config
文件 76800 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\bin\Debug\03调用大漠插件.exe
文件 187 2013-06-04 14:17 C# 调用大漠插件\03调用大漠插件\bin\Debug\03调用大漠插件.exe.config
文件 165376 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\bin\Debug\03调用大漠插件.pdb
文件 22984 2015-11-18 15:41 C# 调用大漠插件\03调用大漠插件\bin\Debug\03调用大漠插件.vshost.exe
文件 187 2013-06-04 14:17 C# 调用大漠插件\03调用大漠插件\bin\Debug\03调用大漠插件.vshost.exe.config
文件 490 2012-06-06 02:06 C# 调用大漠插件\03调用大漠插件\bin\Debug\03调用大漠插件.vshost.exe.manifest
文件 823296 2013-06-04 14:18 C# 调用大漠插件\03调用大漠插件\bin\Debug\dm.dll
文件 390656 2013-06-04 14:18 C# 调用大漠插件\03调用大漠插件\bin\Debug\dmc.dll
文件 1392159 2013-06-05 15:44 C# 调用大漠插件\03调用大漠插件\bin\Debug\screenshot.png
文件 178 2013-06-05 14:48 C# 调用大漠插件\03调用大漠插件\bin\Debug\word.txt
文件 2252 2013-06-04 15:14 C# 调用大漠插件\03调用大漠插件\bin\Debug\yuan.bmp
文件 109231 2013-06-04 20:23 C# 调用大漠插件\03调用大漠插件\CDmSoft.cs
文件 60 2013-06-05 10:09 C# 调用大漠插件\03调用大漠插件\ClassDiagram1.cd
文件 5633 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\Form1.cs
文件 9861 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\Form1.Designer.cs
文件 6165 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\Form1.resx
文件 402 2013-06-05 13:40 C# 调用大漠插件\03调用大漠插件\Form2.cs
文件 2930 2013-06-05 13:40 C# 调用大漠插件\03调用大漠插件\Form2.Designer.cs
文件 5817 2013-06-05 13:40 C# 调用大漠插件\03调用大漠插件\Form2.resx
文件 402 2013-06-05 14:45 C# 调用大漠插件\03调用大漠插件\Form3.cs
文件 2894 2013-06-05 14:45 C# 调用大漠插件\03调用大漠插件\Form3.Designer.cs
文件 5817 2013-06-05 14:45 C# 调用大漠插件\03调用大漠插件\Form3.resx
文件 3801 2015-11-18 15:41 C# 调用大漠插件\03调用大漠插件\obj\Debug\03调用大漠插件.csproj.FileListAbsolute.txt
文件 1210 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\obj\Debug\03调用大漠插件.csproj.GenerateResource.Cache
文件 2209 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\obj\Debug\03调用大漠插件.csprojResolveAssemblyReference.cache
文件 76800 2015-11-18 15:36 C# 调用大漠插件\03调用大漠插件\obj\Debug\03调用大漠插件.exe
............此处省略99个文件信息
相关资源
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
评论
共有 条评论