![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
ystsaan
这个作者很懒,什么都没留下…
展开
-
c++ 获取文件夹所有文件
实测有效#include<io.h>void getFiles(std::string path, std::vector<std::string>& files){ //文件句柄 long long hFile = 0; //文件信息 struct _finddata_t fileinfo; std::string p; if ((hFile = _findfirst(p.assign(path).append("\\*").c_str(), &a原创 2021-11-03 16:39:30 · 665 阅读 · 0 评论 -
使用ncnn在c++对onnx进行推理
从https://github.com/Tencent/ncnn/tags选个最新windows平台编译好的shared版本下载,里面的头文件文件夹,dll,lib直接配置到项目即可(build from source一堆错误。。。)原创 2021-06-10 17:46:16 · 1903 阅读 · 3 评论 -
openvino windows下安装配置并在c++中加载onnx模型进行推理
openvino安装步骤https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_windows.html#Update-Path错误1 安装程序没找到python和gpu在安装openvino过程会遇到这样的错误,不用管直接继续安装(电脑已经安装anaconda python 3.6),之后在cmd执行Configure the Model Optimizer命令的时候会找到pyth原创 2021-06-09 17:13:22 · 2815 阅读 · 6 评论 -
mnn在c++中的推理demo(mnn不支持5维输入,即暂时不支持3dcnn的推理)
准备工作1.使用cmake-gui在windows下编译mnn得到MNN.dll和MNN.lib(Release x64)2.opencv的dll,lib,头文件可以在https://github.com/opencv/opencv/releases/tag/4.3.0的opencv-4.3.0-vc14_vc15.exe直接安装后得到,不用编译(opencv_world430.dll,opencv_world430.lib)3.在vs2017中include mnn和opencv的所需要头文件(mn原创 2021-05-12 15:25:07 · 1050 阅读 · 1 评论 -
cnpy: c++中读取npy文件数组
https://github.com/rogersce/cnpygit clone https://github.com/rogersce/cnpy.git然后使用cmake-gui+visual studio生成cnpy的dll和lib;在打开sln文件生成项目时会出现如下错误,不用管它,lib和dll文件已经生成,拿到自己的项目中用就是了。(我这统一使用vs2017 x64 Release)然后新建个c++控制台工程,include cnpy头文件目录,include含有cnpy生成lib的目录原创 2020-06-24 19:15:53 · 3524 阅读 · 1 评论 -
opencv编译笔记(opencv 4.1.0 编译失败缺少opencv_world410d.lib)
问题:https://blog.csdn.net/ezhchai/article/details/80557936https://zhuanlan.zhihu.com/p/62416504按照以上网址使用cmake-gui和visual studio编译在visual studio出现编译失败缺少opencv_world410d.lib目标是为了得到x64位的opencv的opencv_world410.lib和opencv_world410.dll解决:通过https://github.com原创 2020-06-11 19:25:59 · 3081 阅读 · 0 评论 -
侯捷C++手把手教学个人笔记(更新中)
C++P4 参数传递与返回值Singleton 构造函数可以定义为privateClass中的函数不改变private中的数据的加const创建const对象,再调用对象中的函数,函数需要是const,否则与创建的const对象矛盾参数传递:Pass by value vs pass by reference(to const): pass by value可能value占用内存过大所...原创 2020-04-06 12:18:50 · 876 阅读 · 0 评论