测试win7和win10正常使用,确保运行目录下dll,dll好像没写出去,然后就是要把模型传到图片数据里 | 变量名 | 类 型 | 静态 | 数组 | 备 注 | | 运行目录 | 文本型 | | | | det_onnx_v4 | 字节集 | | | | cls_onnx_v4 | 字节集 | | | | rec_onnx_v4 | 字节集 | | | | dict_onnx_v4 | 字节集 | | |
运行目录 = 取运行目录 () + “\”det_onnx_v4 = 读入文件 (运行目录 + “ppocrv4\det\det.onnx”) 如果 (det_onnx_v4 ≠ { }) cls_onnx_v4 = 读入文件 (运行目录 + “ppocrv4\cls\cls.onnx”) rec_onnx_v4 = 读入文件 (运行目录 + “ppocrv4\rec\rec.onnx”)  dict_onnx_v4 = #dict_onnx_v4   det_onnx_v4 = 读入文件 (运行目录 + “det_onnx_v4”) 如果 (det_onnx_v4 ≠ { })  cls_onnx_v4 = 读入文件 (运行目录 + “cls_onnx_v4”)  rec_onnx_v4 = 读入文件 (运行目录 + “rec_onnx_v4”)  dict_onnx_v4 = 读入文件 (运行目录 + “dict_onnx_v4”)     model句柄 = model (det_onnx_v4, 取字节集长度 (det_onnx_v4), cls_onnx_v4, 取字节集长度 (cls_onnx_v4), rec_onnx_v4, 取字节集长度 (rec_onnx_v4), dict_onnx_v4, 取字节集长度 (dict_onnx_v4)) |