- 博客(16)
- 资源 (2)
- 收藏
- 关注
原创 opencv之clahe限制对比对自适应均衡之后检测车辆
代码展示#include <opencv2/opencv.hpp>#include <iostream>#include <string>#include <vector>using namespace std;using namespace cv;void Entrance(Mat car,string camName,CascadeClassifier& face_cascade);
2017-01-14 20:37:29 2839 2
原创 检测图片中的车辆并画出来,保存到指定文件夹
代码展示#include <opencv2/opencv.hpp>#include <iostream>#include <string>#include <vector>using namespace std;using namespace cv;void Entrance(Mat car,string camName,CascadeClassifier& face_cascade);
2017-01-14 17:11:54 1013
原创 使用adaboost+haar分类器检测车辆demo
代码如下#include <iostream>#include <opencv2/opencv.hpp>#include <string>using namespace std;using namespace cv;CascadeClassifier car_classifier;string cascade_name = "car.xml";void detect_and_displa
2017-01-12 12:20:36 3607 3
原创 截取车辆正样本
demo主要功能由于前期的分类器正样本是包含大部分环境的图片,但是包含了正样本的具体位置,都写在了txt内,需要通过读txt文件把roi截取出来,本demo就是为此而做的。保存图片到指定的文件夹程序展示#include <opencv2/opencv.hpp>#include <iostream>#include <fstream>#include <string>#include <
2017-01-09 17:14:22 483
原创 去掉txt文件中每一行字符串内容的第一个空格
demo的作用在opencv训练分类器的时候,前期制作样本的时候,师弟们把样本的名字中带有了空格,但是训练的时候样本的名字是不能带有空格的。而样本的名字存储在一个txt文件夹中,所以需要修改txt文件中的样本名字。读写文件find字符串的空格位置查找空格删除空格代码展示#include <iostream>#include <string>#include <vector>#inc
2017-01-08 17:51:01 4103
原创 如何搜索海康相机的数量以及得到设备的IP等信息
实例演示#include <iostream> #include "Sadp.h"//#include <Windows.h>#include <vector>#include <opencv2/opencv.hpp>using namespace std;using namespace cv;#pragma comment(lib,"Sadp.lib")typedef struct
2017-01-07 15:15:25 5451 7
原创 如何遍历某一文件夹下所有图片并切割制作负样本
主要功能遍历某一文件夹下的所有文件得到某一文件夹下的所有文件名及全路径名切割单张图片得到多张图片并存储到指定文件夹自动根据文件夹下的文件名(不带扩展名)创建文件夹代码展示#include "cv.h"#include "highgui.h"#include <iostream>#include <string>#include<direct.h>//////创建文件夹的头文件#i
2017-01-06 00:44:58 1224
原创 boost之variant
variant的用法#include <iostream>#include <boost/typeof/typeof.hpp>#include <boost/variant.hpp>using namespace std;using namespace boost;int main(){ /////简单使用 variant<int, float, string>v;
2017-01-04 08:52:53 736
原创 boost之tuple
tuple的基本用法#include <iostream>#include <boost/typeof/typeof.hpp>#include <boost/assign.hpp>#include <boost/tuple/tuple.hpp>#include <boost/tuple/tuple_io.hpp>using namespace std;using namespace bo
2017-01-03 17:16:03 470
原创 boost之circular_buffer
circular_buffer#include <iostream>#include <boost/typeof/typeof.hpp>#include <boost/assign.hpp>#include <boost/circular_buffer.hpp>using namespace std;using namespace boost;template<typename T>v
2017-01-03 11:19:36 1510
原创 boost之bimap(3)
bimap#include <iostream>#include <boost/typeof/typeof.hpp>#include <boost/bimap.hpp>#include <boost/assign.hpp>using namespace std;using namespace boost;using namespace boost::assign;int main()
2017-01-03 10:04:17 304
原创 boost之bimap(2)
bimap#include <iostream>#include <boost/assign.hpp>#include <boost/typeof/typeof.hpp>#include <boost/bimap.hpp>#include <boost/bimap/list_of.hpp>#include <boost/bimap/unordered_multiset_of.hpp>#i
2017-01-02 23:01:10 455
原创 boost之bimap(1)
#include <iostream>#include <boost/assign.hpp>#include <boost/typeof/typeof.hpp>#include <boost/bimap.hpp>using namespace std;using namespace boost;int main(){ bimap<int, string>bm; ////
2017-01-02 21:57:23 397
原创 boost之unordered_map
unordered_map的使用#include <iostream>#include <boost/assign.hpp>#include <hash_map>#include <boost/unordered_map.hpp>#include <boost/typeof/typeof.hpp>using namespace std;using namespace boost;int
2017-01-02 20:06:58 3091
原创 boost之unordered_set
unordered_set的用法#include <iostream>#include <boost/unordered_set.hpp>#include <hash_set>#include <boost/assign.hpp>using namespace std;using namespace boost;template <typename T>void hash_func()
2017-01-02 19:50:31 541
原创 boost之dynamic_bitset
dynamic_bitset的使用#include <iostream>#include <boost/typeof/typeof.hpp>#include <boost/array.hpp>#include <boost/assign.hpp>#include <boost/dynamic_bitset.hpp>using namespace std;using namespace b
2017-01-02 19:34:56 2052
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人