解密OCR加密包为NCNN模型 - OcrDecryptModel
函数简介
将欧拉 OCR 加密包(OLAOENC1)还原为四文件 NCNN 模型及可选字典。
接口名称
OcrDecryptModel
DLL 调用
int OcrDecryptModel(long ola, string packagePath, string password, string detParamOutPath, string detBinOutPath, string recParamOutPath, string recBinOutPath, string dictOutPath);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug 对象指针 |
| packagePath | 字符串 | 加密包路径 |
| password | 字符串 | 解密密码 |
| detParamOutPath | 字符串 | 检测 .param 输出路径 |
| detBinOutPath | 字符串 | 检测 .bin 输出路径 |
| recParamOutPath | 字符串 | 识别 .param 输出路径 |
| recBinOutPath | 字符串 | 识别 .bin 输出路径 |
| dictOutPath | 字符串 | 字典 .txt 输出路径;空 则跳过写出(即使包内含字典) |
返回值
整数型:1 成功,0 失败。
注意事项
- 若魔数为 OLAYENC1,应使用 YoloDecryptModel。
