RapidOCR
RapidOCR copied to clipboard
如果仅仅使用onnxruntime-1.7.0-shared.7z和 opencv-3.4.13-sharedLib.7z,cmake编译问题
操作系统WIN10 x64 语言C++ 编译RapidOCR 如果仅仅使用onnxruntime-1.7.0-shared.7z和 opencv-3.4.13-sharedLib.7z, 直接运行build.bat会报错,提示cmake找不到onnxruntime,所以只能使用onnxruntime-1.6.0-sharedLib.7z,
用新的即可,注意路径,里面Onnxruntime的路径和文件名是不是一致。
之前测试过高版本的onnxrutnime(大概是1.8还是1.9),模型必须重新用新版的转换工具重新转换否则会出错。 模型有二三十个,一直没空尝试重新转换,所以onnxruntime就一直保持当前的版本。
如果换高版本的onnxruntime,就不要使用群共享里demo范例里的模型,换python版提供的模型。
直接报错,麻烦看看。这里都按教程装了vs,c++桌面,java环境,cmake
RapidOCR-main\cpp\RapidOCRCPP>build.bat
'e' is not recognized as an internal or external command, operable program or batch file. '��文件较大,但部署起来比较方便。"' is not recognized as an internal or external command, operable program or batch file. 'BUILD_STATIC' is not recognized as an internal or external command, operable program or batch file. '�!Input' is not recognized as an internal or external command, operable program or batch file. '择编译输出类型并回车:' is not recognized as an internal or external command, operable program or batch file. 'LIB' is not recognized as an internal or external command, operable program or batch file. 'g' is not recognized as an internal or external command, operable program or batch file. '1' is not recognized as an internal or external command, operable program or batch file.
(call was unexpected at this time.
@pangoo-reuse 这是github的问题。 win、mac、linux各自使用不同的换行符。 win是CR LF,mac是CR,linux是LF。 用git clone下来的项目,git命令会自动把文件格式转换成对应系统的换行符。 如果是用github的download按钮下载的,就没有做转换(默认linux格式),在windows下执行会出错。
@benjaminwan 所以怎么做才是正确的?
@pangoo-reuse 有好几种选择: A. 可以去群共享里下载整合好的工程源代码压缩包,在win、mac、linux平台都编译测试过; B. 自己用ultraedit等工具,把bat文件转成win格式; C. 删掉download的压缩包,用git工具同步项目;
1 @benjaminwan