2016年9月23日
摘要: #include <opencv2\opencv.hpp>#include <iostream> using namespace cv;using namespace std; int main(){ VideoCapture cap("E:\Videos\\Megamind.avi"); if ( 阅读全文
posted @ 2016-09-23 16:11 北海盗 阅读(910) 评论(1) 推荐(0) 编辑
  2016年8月10日
摘要: N=int(raw_input('input the number N='))number=[]while(N): m=int(raw_input('input..\n')) number.append(m) N -=1print numberfor i in range (0,len(number 阅读全文
posted @ 2016-08-10 12:01 北海盗 阅读(3547) 评论(0) 推荐(0) 编辑
  2016年8月9日
摘要: #this is a sample guess program import random guesses_made =0 name = raw_input('Hello! whats your name?\n') number = random.randint(1,20) print 'well {0}, I am thinking a number between 1 to 20.'.... 阅读全文
posted @ 2016-08-09 10:23 北海盗 阅读(226) 评论(0) 推荐(0) 编辑
  2016年7月18日
摘要: 爬楼梯问题 阅读全文
posted @ 2016-07-18 17:34 北海盗 阅读(5086) 评论(1) 推荐(0) 编辑
  2016年7月17日
摘要: 1 // Note:Your choice is C++ IDE 2 #include <iostream> 3 #include <string> 4 using namespace std; 5 //获取文件名字 6 string getFilename(string s) { 7 char s 阅读全文
posted @ 2016-07-17 08:42 北海盗 阅读(255) 评论(0) 推荐(0) 编辑
  2016年7月16日
摘要: 代码来自:http://www.cnblogs.com/tornadomeet/archive/2012/05/01/2477629.html 效果: 阅读全文
posted @ 2016-07-16 11:11 北海盗 阅读(2013) 评论(0) 推荐(0) 编辑
摘要: 【转】源码来自csdn下载 效果如下: 代码还是比较旧的。。。c版本!!! 阅读全文
posted @ 2016-07-16 10:46 北海盗 阅读(652) 评论(0) 推荐(0) 编辑
  2016年7月14日
摘要: 人- vs - 计算机 ax2+bx+c=0 人:直接用规则。 x=2a分之负b加减根号b的平方减4ac。 计算机:一个数一个数的代入,只要等号成立那么就找到x的解。方法笨但是简单,计算量也大。 差分法: n n2 alpha(一阶差分) bata(二阶差分) 0 0 1 1 1 2 4 3(=4- 阅读全文
posted @ 2016-07-14 21:52 北海盗 阅读(840) 评论(0) 推荐(0) 编辑
  2016年7月13日
摘要: 来自:http://weibo.com/ttarticle/p/show?id=2309403996867116594524 海贼王十大人生哲理10——生存 出航冒险不是为了赔上性命,而是为了活下去而战斗。只有活下去才能追寻那看似遥不可及的梦想,只有活下去才能尽情享受冒险的快乐,只有心存活下去的信念 阅读全文
posted @ 2016-07-13 21:39 北海盗 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 关于物体检测 环境:opencv 2.4.11+vs2013 参考: http://www.cnblogs.com/tornadomeet/archive/2012/06/02/2531705.html http://www.cnblogs.com/xinyuyuanm/archive/2013/0 阅读全文
posted @ 2016-07-13 21:11 北海盗 阅读(2375) 评论(0) 推荐(0) 编辑