资源简介
opencv dnn模块的demo,详情可见下面文章
http://blog.csdn.net/weixinhum/article/details/70982048
代码片段和文件信息
/**M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING COPYING INSTALLING OR USING.
//
// By downloading copying installing or using the software you agree to this license.
// If you do not agree to this license do not download install
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2013 OpenCV Foundation all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms with or without modification
// are permitted provided that the following conditions are met:
//
// * Redistribution‘s of source code must retain the above copyright notice
// this list of conditions and the following disclaimer.
//
// * Redistribution‘s in binary form must reproduce the above copyright notice
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors “as is“ and
// any express or implied warranties including but not limited to the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct
// indirect incidental special exemplary or consequential damages
// (including but not limited to procurement of substitute goods or services;
// loss of use data or profits; or business interruption) however caused
// and on any theory of liability whether in contract strict liability
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software even if advised of the possibility of such damage.
//
//M*/
#include
#include
#include
using namespace cv;
using namespace cv::dnn;
#include
#include
#include
using namespace std;
/* Find best class for the blob (i. e. class with maximal probability) */
void getMaxClass(dnn::Blob &probBlob int *classId double *classProb)
{
Mat probMat = probBlob.matRefConst().reshape(1 1); //reshape the blob to 1x1000 matrix
Point classNumber;
minMaxLoc(probMat NULL classProb NULL &classNumber);
*classId = classNumber.x;
}
std::vector readClassNames(const char *filename = “synset_words.txt“)
{
std::vector classNames;
std::ifstream fp(filename);
if (!fp.is_open())
{
std::cerr << “File with classes labels not found: “ << filename << std::endl;
exit(-1);
}
std::string name;
while (!fp.eof())
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-29 17:26 dnnDemo\
目录 0 2017-04-29 17:48 dnnDemo\dnnDemo\
目录 0 2017-04-29 17:26 dnnDemo\dnnDemo\.vs\
目录 0 2017-04-29 17:26 dnnDemo\dnnDemo\.vs\dnnDemo\
目录 0 2017-04-29 17:26 dnnDemo\dnnDemo\.vs\dnnDemo\v14\
文件 24576 2017-04-29 17:48 dnnDemo\dnnDemo\.vs\dnnDemo\v14\.suo
目录 0 2017-04-29 17:42 dnnDemo\dnnDemo\dnnDemo\
文件 1303 2017-04-29 17:26 dnnDemo\dnnDemo\dnnDemo.sln
文件 53533754 2017-04-28 02:52 dnnDemo\dnnDemo\dnnDemo\bvlc_googlenet.caffemodel
文件 35816 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\bvlc_googlenet.prototxt
文件 5582 2017-04-29 17:42 dnnDemo\dnnDemo\dnnDemo\caffe_googlenet.cpp
文件 7729 2017-04-29 17:34 dnnDemo\dnnDemo\dnnDemo\dnnDemo.vcxproj
文件 956 2017-04-29 17:34 dnnDemo\dnnDemo\dnnDemo\dnnDemo.vcxproj.filters
目录 0 2017-04-29 17:28 dnnDemo\dnnDemo\dnnDemo\include\
目录 0 2017-04-29 17:28 dnnDemo\dnnDemo\dnnDemo\include\opencv\
目录 0 2017-04-29 17:28 dnnDemo\dnnDemo\dnnDemo\include\opencv2\
目录 0 2017-04-29 17:28 dnnDemo\dnnDemo\dnnDemo\include\opencv2\aruco\
文件 25124 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\aruco.hpp
文件 15222 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\aruco\charuco.hpp
文件 6436 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\aruco\dictionary.hpp
文件 7518 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bgsegm.hpp
目录 0 2017-04-29 17:28 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bioinspired\
文件 2716 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bioinspired.hpp
文件 2373 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bioinspired\bioinspired.hpp
文件 27057 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bioinspired\retina.hpp
文件 8675 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bioinspired\retinafasttonemapping.hpp
文件 10235 2016-03-06 19:26 dnnDemo\dnnDemo\dnnDemo\include\opencv2\bioinspired\transientareassegmentationmodule.hpp
目录 0 2017-04-29 17:28 dnnDemo\dnnDemo\dnnDemo\include\opencv2\calib3d\
文件 124712 2017-04-27 22:14 dnnDemo\dnnDemo\dnnDemo\include\opencv2\calib3d.hpp
文件 2369 2017-04-27 22:14 dnnDemo\dnnDemo\dnnDemo\include\opencv2\calib3d\calib3d.hpp
文件 20138 2017-04-27 22:14 dnnDemo\dnnDemo\dnnDemo\include\opencv2\calib3d\calib3d_c.h
............此处省略412个文件信息
相关资源
- mingw64+opencv.zip
- 基于RNN深度学习自动写诗的程序
- 使用OpenCV人头检测
- opencv3.4.1完整资源
- cudnn7.6.4.zip
- 掌纹掌静脉识别训练图片600人共1200
- 深度学习框架PyTorch:入门与实践.陈云
- 深度学习Deep Learning资料:《解析深度
- 腾讯验证码已标注10万个
- 深度学习与计算机视觉.pdf
- 《解析深度学习:语音识别实践》书
- 编译OpenCV3.4.1x86版本 +contrib+vs2017x64
- 基于VC+opencv的人脸识别识别出五官
- OPENCV函数学习手册.pdf
- 《深入理解OpenCV实用计算机视觉项目
- GAN:实战生成对抗网络 高清PDF含书签
- opencv3.4+contrib模块编译好的安装包
- Tensorflow实战Google深度学习框架.zip
- WHU-RS19 武汉大学深度学习数据集
- OpenCV计算机视觉编程攻略第3版.pdf源码
- cudnn-9.0-windows10-x64-v7
- opencv contrib (Extra modules) 用cmake 生成
- OpenCV3.4.4 源代码
- deep learning 深度学习中文版+英文版 高
- opencv学习资源.zip
- 深入浅出强化学习:原理入门 高清
- 牛津花卉数据集OxFlowers17
- 基于OPENCV的车牌识别系统源码
- 自己写的QT图像处理系统打包的过程可
- opencv2.3.0
评论
共有 条评论