ocr 字符,字节转换(string2utf8,utf82string,str2wstr,wstr2str)
摘要:// std::string 转换为 UTF-8 编码 std::string string2utf8(const std::string & str) { int nwLen = ::MultiByteToWideChar(CP_ACP, 0, str.c_str(), -1, NULL, 0);
阅读全文
posted @
2022-05-31 19:11
WenJXUST
阅读(127)
推荐(0) 编辑
opencv Mat 减去一个常数,除以一个常数
摘要:img = img / 255; img = img - cv::Scalar(0.5f,0.5f,0.5f); img = img / cv::Scalar(0.5f, 0.5f, 0.5f);
阅读全文
posted @
2022-05-17 17:20
WenJXUST
阅读(669)
推荐(0) 编辑
onnx 转 pb 错误记录
摘要:0、版本错误 查看每个版本说明下载安装相关库,类似这种:onnx-tensorflow/support_status_v1_10_0.md at main · onnx/onnx-tensorflow (github.com) 1、RuntimeError: Resize coordinate_tr
阅读全文
posted @
2022-05-13 16:17
WenJXUST
阅读(533)
推荐(0) 编辑
onnx 简化压缩 onnxsim 以及op算子错误解决
摘要:pip install onnx-simplifier -i https://mirror.baidu.com/pypi/simple 0、安装如上; 1、用法命令 onnxsim 12345.onnx 12345sim.onnx --input-shape 1,3,512,512 2、出现op错误
阅读全文
posted @
2022-05-13 09:17
WenJXUST
阅读(2323)
推荐(0) 编辑