- 博客(26)
- 收藏
- 关注
原创 使用Tensorflow实现MTCNN遇到了nms作用不理想的问题
使用widerface库对pnet,rnet,onet分别进行了训练,训练阶段没问题,测试FDDB数据集发现nms没有起到太好的效果,如下图所示:一开始效果太差,后面进行了两次nms,效果依旧不好代码如下: def detect_pnet(self, im): """Get face candidates through pnet
2017-06-13 15:45:13 4324 9
原创 numpy实现 检测评价函数 intersection-over-union ( IOU )
在目标检测的评价体系中,有一个参数叫做 IoU ,简单来讲就是模型产生的目标窗口和原来标记窗口的交叠率。具体我们可以简单的理解为: 即检测结果(DetectionResult)与 Ground Truth 的交集比上它们的并集,即为检测的准确率 IoU :IOU=DetectionResult⋂GroundTruthDetectionResult⋃GroundTruth
2017-05-24 09:38:58 2216 2
原创 Tensorflow(1.0)基于对抗生成网络生成明星脸
这个Demo是根据作者@斗大的熊猫和本文原始地址: http://blog.topspeedsnail.com/archives/10977这篇博客来实现的。使用的数据集:Large-scale CelebFaces Attributes (CelebA) Dataset,经过一天的训练已经基本有了人样:原文是基于python2.7切tensorflow版本较老下面在p
2017-03-03 17:52:27 1763 1
原创 Tensorflow1.0空间变换网络(SpatialTransformer Networks)实现
空间变换网络简单介绍:通过locatnet,提取输入图像的theta(将用于仿射变换);根据输入图像的width和height以及仿射变换(或者TPS)的参数theta,可以生成目标位置在输入图像(U)中对应的位置(与输入图像位置一直的目标索引); (由torch.bmm, Batch matrix matrix product of matrices生成)。根据目标在输入图像
2017-03-01 10:01:19 5322 2
原创 (Tensorflow1.0)强化学习实现游戏AI(Demo_1)
http://blog.topspeedsnail.com/archives/10459在学习完这篇文章好,打算循序渐进的实现俄罗斯方块AI和斗地主AI,并且突破DQN,使用对抗神经网络来实现更强大的AI下面代码实现的是上面博客的程序,发现了tensorflow1.0后的一个坑,tf.mul函数改名了,tf,multiply....改成全拼了# -*- codi
2017-02-17 18:14:43 6379 1
原创 win10+cuda8.0+cudnn+Tensorflow(GPU)安装
传说中的Tensorflow终于支持windows了,下面介绍一下Win10下Tensorflow的安装与使用准备工作:1.python3.5(64位)目前Tensorflow只支持64位python3.5以上版本下载链接:https://www.python.org/ftp/python/3.5.3/python-3.5.3rc1-amd64.exe2.安装numpypy
2017-01-07 19:42:25 63208 14
原创 Tensorflow 训练自己的cnn模型 行人识别
代码如下:#coding:utf-8import string,os,sysimport numpy as npimport matplotlib.pyplot as pltimport scipy.ioimport randomimport csvimport tensorflow as tfimport pandas as pdfilename = "/home/yc
2016-12-26 19:55:03 8959 8
原创 Tensorflow使用slim工具(vgg16模型)实现图像分类与分割
接触tensorflow小白,网上教程很多,图像分类应该属于比较经典的一个例子啦,特别是google推了slim,但是网上的教程遗漏啦许多细节介绍会导致,经过调试终于跑出来啦结果还算可以,分享一下我的环境,cuda8.0+cudnn5.1+python2.7关于tensorflow,cuda+cudnn等安装推荐教程:http://blog.csdn.net/xierhacke
2016-12-16 10:50:48 22415 15
原创 Opencv视频特定区域人数统计(在人物重叠时效果不佳)
#include #include#include#include#include #include #include #include #include #include "opencv2/opencv.hpp" #include "opencv2/video/background_segm.hpp" #include #includ
2016-11-25 11:05:46 930
原创 Opencv目标追踪Kalman结合camshift特定情况下效果不错
#include "opencv2/video/tracking.hpp"#include "opencv2/highgui/highgui.hpp"#include using namespace cv;using namespace std;Mat image;Point origin;int trackObject = 0;Rect selec
2016-11-24 19:54:15 2598 4
原创 Opencv运用训练好的SVM分类器进行行人检测(效果不理想
#include #include#include #include#include#include #include #include #include "opencv2/opencv.hpp" #include "opencv2/video/background_segm.hpp" #include #include
2016-11-24 15:17:21 1143
原创 Opencv3.1基于Vibe去除前景
Vibe.h 和Vibe.cpp还有main函数Vibe.h:#include #include "opencv2/opencv.hpp"using namespace cv;using namespace std;#define NUM_SAMPLES 20 //每个像素点的样本个数#define MIN_MATCHES 2 //#min指数#de
2016-11-23 17:02:08 1040
原创 Opencv3.1基于混合高斯去除前景(适用于动态视频去除前景)
#include #include#include#include#include #include #include #include "opencv2/opencv.hpp" #include "opencv2/video/background_segm.hpp" using namespace cv;using namespace std;
2016-11-23 16:57:02 888
原创 OpenCV基础人脸检测(Harr级联实现)
#include #include #include #include #include #include #include #include #include using namespace std;using namespace cv;double diffent_pixel_sum = 0;/** Function Headers
2016-11-13 23:44:35 710
原创 opencv自动光学检测、目标分割和检测(连通区域和findContours)
步骤如下:1.图片灰化;2.中值滤波 去噪3.求图片的光影(自动光学检测)4.除法去光影5.阈值操作6.实现了三种目标检测方法主要分两种连通区域和findContours过程遇到了错误主要是图片忘了灰化处理,随机颜色的问题。下面代码都已经进行了解决这是findContours的效果下面是连通区域的结果
2016-11-06 21:22:43 6068
原创 opencv光影删除法去除背景
#include "qtest1105.h"#include #include #include #include #include#include #include using namespace std;using namespace cv;Mat img = imread("C:\\Users\\hasee\\Desktop\\test.jpg
2016-11-06 00:11:58 4849 2
原创 opencv实现图片动画效果
#include "qtest1105.h"#include #include #include #include #include#include #include using namespace std;using namespace cv;Mat img = imread("C:\\Users\\hasee\\Desktop\\cat2.jpg
2016-11-05 17:43:42 8659
原创 opencv+相机LOMO效果
#include "qtest1105.h"#include #include #include #include #include#include #include using namespace std;using namespace cv;Mat img = imread("C:\\Users\\hasee\\Desktop\\cat2.jpg
2016-11-05 16:12:00 872
原创 opencv 直方图均衡化
Mat result;Mat ycrcb;cvtColor(img, ycrcb, COLOR_BGR2YCrCb);vector channels;split(ycrcb, channels);equalizeHist(channels[0], channels[0]);merge(channels, ycrcb);cvtColor(ycrcb, result,
2016-11-05 15:08:11 413 1
原创 Opencv绘制直方图及创建按钮遇到的问题
创建按钮,总是报错,一开始是报错缺少QT支持,后来创建QT Application程序编译不报错,运行时会下面是单独实现绘制直方图代码,解决上面方法的方案,求大神知道#include "testqt_1101.h"#include #include #include #include #include using namespace std;using name
2016-11-05 14:37:04 1139 1
原创 Opencv使用索贝尔滤波进行边缘检测
#include #include#include #includeusing namespace cv;using namespace std;Mat img;int main(int argc, char *argv[]){img = imread("C:\\Users\\hasee\\Desktop\\cat2.jpg");Mat resu
2016-10-30 19:17:17 595
原创 Opencv中使用Rect的函数创建按钮和文字
#include #include#include #includeusing namespace cv;using namespace std;Mat img;Rect drawString(Mat img, string text, Point coord, Scalar color, float fontScale = 0.6f, int thickness =
2016-10-30 16:28:04 1873
原创 opencv数据持久化 灰化图像矩阵存储
#include#include#include#include #include #include using namespace std;using namespace cv;void main(){FileStorage fs("f://test.yml",FileStorage::WRITE);int fps=5;fs Mat m1 =
2016-10-13 22:19:26 414
原创 Opencv调用摄像头,显示摄像头图像
#include#include#include#include #include #include using namespace cv;using namespace std;const char*keys = {"{help h usage?||print this message}""{@video||Video file,if not define
2016-10-11 20:23:47 1574
原创 opencv读取图片,灰化显示
#include#include#include#include #include #include using namespace cv;using namespace std;void main(){Mat picture = imread("C:\\Users\\hasee\\Desktop\\cat2.jpg");Mat gray=imread(
2016-10-11 18:35:55 885
原创 win10+Opencv3.1+VS2015
1.安装好opencv,配置好环境变量,在系统变量path前加如E:\opencv-for-window\opencv\build\x64\vc14\bin;2.打开vs2015,新建空白win32项目。然后在此项目右键属性——VC++目录,右边的包含路径添加:E:\opencv-for-window\opencv\build\includeE:\opencv-for-window\o
2016-10-11 18:24:16 340
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人