Fork me on GitHub

12 2017 档案

摘要:菜鸟一只,也是在尝试并学习和摸索爬虫相关知识。 1.首先分析要爬取页面结构。可以看到一列搜索的结果,现在需要得到每一个链接,然后才能爬取对应页面。 关键代码思路如下: 现在已经得到一系列链接,下面分析需要爬取的链接页面的结构。 2.分析页面,页面所有感兴趣的内容均在 div标签里面,可以使用beau 阅读全文
posted @ 2017-12-20 20:07 hellowOOOrld 阅读(3795) 评论(3) 推荐(0)
摘要:An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, 阅读全文
posted @ 2017-12-19 16:39 hellowOOOrld 阅读(301) 评论(0) 推荐(0)
摘要:On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2017-12-19 14:57 hellowOOOrld 阅读(556) 评论(0) 推荐(0)
摘要:最近做实验需要对比实验结果,需要将几张图片拼在一起,直观对比。 尝试用OpenCV解决。 核心思想其实是 声明一个足够大的,正好容纳下那几张图片的mat,然后将拼图依次copy到大图片相应的位置。 效果: 参考: http://blog.csdn.net/zuiyuchenfeng/article/ 阅读全文
posted @ 2017-12-05 21:16 hellowOOOrld 阅读(5651) 评论(0) 推荐(0)
摘要:最近学习了人体姿态的相似性评价。需要用到KNN来统计与当前姿态相似的k个姿态信息。 假设我们已经有了矩阵W和给定的测试样本姿态Xi,需要寻找与Xi相似的几个姿态,来估计当前Xi的姿态标签。 //knn操作 //读入一帧测试帧 去训练集里面求距离/*1、计算已知类别数据集合汇总的点与当前点的距离2、按 阅读全文
posted @ 2017-12-01 17:32 hellowOOOrld 阅读(1979) 评论(0) 推荐(0)