
Asprise OCR 5.01 破解版
5星
- 浏览量: 0
- 大小:None
- 文件类型:RAR
简介:
请注意,提供或使用如Asprise OCR 5.01破解版这样的非法软件版本是违反版权法和相关法律的。Asprise OCR是一款专业的光学字符识别(OCR)软件,能够将扫描图像中的文本转换成可编辑、可搜索的格式。如果您需要使用该软件,请考虑购买正版以支持开发者并确保您的权益。
Asprise OCR 5.01 去除试用对话框的步骤涉及使用 aocr.dll 文件。
代码如下:
```csharp
private const string OCR_DLL_NAME_32 = aocr.dll;
[DllImport(OCR_DLL_NAME_32, CharSet = CharSet.Ansi)]
public static extern int com_asprise_ocr_setup(int queryOnly);
[DllImport(OCR_DLL_NAME_32, CharSet = CharSet.Ansi)]
public static extern IntPtr com_asprise_ocr_start(string lang, string speed);
[DllImport(OCR_DLL_NAME_32, CharSet = CharSet.Ansi)]
public static extern void com_asprise_ocr_util_delete(Int64 handle, bool isArray);
```
使用方法:
```csharp
com_asprise_ocr_setup(0); // 初始化设置
IntPtr _handle = com_asprise_ocr_start(eng, fastest); // 启动 OCR,参数为语言和速度等级
IntPtr ptr = com_asprise_ocr_recognize(_handle.ToInt64(), [图片路径], -1, -1, -1, -1, -1, all, text);
string s = Marshal.PtrToStringAnsi(ptr).Replace(n, );
```
注意:上述代码中,`all` 和 `text` 需要根据实际使用情况进行替换。
全部评论 (0)


