• 大小: 19.89M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-24
  • 语言: C/C++
  • 标签: 动物识别  

资源简介


资源截图

代码片段和文件信息


#include “stdafx.h“
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include

#include 
//boost 库
#include

#include“Config.h“

using namespace cv;
using namespace std;
//定义一个boost库的命名空间
namespace fs=boost::filesystem;
using namespace fs;



class categorizer
{
private :
//从类目名称到数据的map映射
map result_objects;
//存放所有训练图片的BOW
map allsamples_bow;
//从类目名称到训练图集的映射,关键字可以重复出现
multimap train_set;
// 训练得到的SVM
CvSVM *stor_svms;
//类目名称,也就是TRAIN_FOLDER设置的目录名
vector category_name;
//类目数目
int categories_size;
//用SURF特征构造视觉词库的聚类数目
int clusters;
//存放训练图片词典
Mat vocab;

//特征检测器detectors与描述子提取器extractors   泛型句柄类Ptr
Ptr 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-10-14 15:46  animal_identification\
     目录           0  2016-10-06 10:08  animal_identification\animal_identification\
     文件    57036800  2016-10-14 15:46  animal_identification\animal_identification.sdf
     文件         930  2016-10-06 09:36  animal_identification\animal_identification.sln
     文件       27648  2016-10-14 15:46  animal_identification\animal_identification.suo
     文件       10498  2016-10-14 15:46  animal_identification\animal_identification\animal_identification.cpp
     文件        4528  2016-10-06 10:16  animal_identification\animal_identification\animal_identification.vcxproj
     文件        1078  2016-10-06 09:54  animal_identification\animal_identification\animal_identification.vcxproj.filters
     文件         143  2016-10-06 09:36  animal_identification\animal_identification\animal_identification.vcxproj.user
     文件         551  2016-10-07 16:47  animal_identification\animal_identification\Config.h
     目录           0  2016-10-12 12:54  animal_identification\animal_identification\Debug\
     文件         406  2016-10-06 09:37  animal_identification\animal_identification\Debug\animal_identification.exe.embed.manifest
     文件         472  2016-10-06 09:37  animal_identification\animal_identification\Debug\animal_identification.exe.embed.manifest.res
     文件         381  2016-10-12 12:54  animal_identification\animal_identification\Debug\animal_identification.exe.intermediate.manifest
     文件          63  2016-10-12 12:54  animal_identification\animal_identification\Debug\animal_identification.lastbuildstate
     文件        3200  2016-10-12 12:54  animal_identification\animal_identification\Debug\animal_identification.log
     文件     1574697  2016-10-12 12:54  animal_identification\animal_identification\Debug\animal_identification.obj
     文件     1179648  2016-10-06 09:37  animal_identification\animal_identification\Debug\animal_identification.pch
     文件         713  2016-10-07 16:32  animal_identification\animal_identification\Debug\animal_identification.vcxprojResolveAssemblyReference.cache
     文件           0  2016-10-06 09:37  animal_identification\animal_identification\Debug\animal_identification.write.1.tlog
     文件         232  2016-10-06 09:37  animal_identification\animal_identification\Debug\animal_identification_manifest.rc
     文件        1714  2016-10-12 12:54  animal_identification\animal_identification\Debug\cl.command.1.tlog
     文件       63518  2016-10-12 12:54  animal_identification\animal_identification\Debug\CL.read.1.tlog
     文件        1132  2016-10-12 12:54  animal_identification\animal_identification\Debug\CL.write.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link-cvtres.read.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link-cvtres.write.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link.5004-cvtres.read.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link.5004-cvtres.write.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link.5004.read.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link.5004.write.1.tlog
     文件           2  2016-10-12 12:54  animal_identification\animal_identification\Debug\link.5464-cvtres.read.1.tlog
............此处省略117个文件信息

评论

共有 条评论