自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 问答 (1)
  • 收藏
  • 关注

原创 robomaster自动化打大神符(2017年版本)本文包括图像处理和树莓派与机器交互部分

不好意思,本文为本人原创作品,不允许各种形式的转载,否则依法追究法律责任,没办法就是这麽任性

2017-05-09 17:14:22 6568 4

原创 八皇后问题

#include#include#include#include using namespace std;int result = 0;//统计总数struct chess{ vector position; void show(){ for(int x=0;x<position.size();x++){ cout<<position[x]<<" "; } c

2018-01-31 22:45:08 165

原创 利用树的堆排序方法

#include#include#include#includeusing namespace std;struct node{ int value; node* left; node* right; node(int v) { value = v; left = NULL; right = NULL; }};bool swap_value(node*

2018-01-04 16:51:11 372

原创 归并排序算法

#include#includeusing namespace std;void merge_sort(int* init_array,int* tem, int left, int right){ if(left >= right) return ; else { int start = left; int mid = (left + right) / 2;

2018-01-04 15:09:30 195

原创 快速排序算法

#includeusing namespace std;void quicksort(int* tem, int left, int right){ if(left >= right) { return ; } else { int init_left = left, init_right = right; int pivot = tem[left]; while

2018-01-04 15:08:33 254

转载 树莓派使用uart串口与串口设备通信

本文转自:http://990487026.blog.51cto.com/10133282/1758182树莓派硬件版本:二代B+树莓派系统版本123456root@raspberrypiroot@raspberrypi:~# lsb_release -aNo LSB modules are available

2017-05-10 19:55:42 4546 1

转载 python 的命名规则

文件名全小写,可使用下划线包应该是简短的、小写的名字。如果下划线可以改善可读性可以加入。如mypackage。模块与包的规范同。如mymodule。类总是使用首字母大写单词串。如MyClass。内部类可以使用额外的前导下划线。  函数&方法函数名应该为小写,可以用下划线风格单词以增加可读性。如:myfunction,m

2017-05-10 15:40:49 426

原创 树莓派与运动装置的交互

利用socket和树莓派自带的摄像头处理流获取当前图片然后调用已经写好的处理函数对当前图片进行处理并且将返回的数据通过socket发送到 arudio开发板上

2017-05-09 11:48:56 1161

翻译 urllib2 爬取网页信息

# coding:utf-8import cookielibimport urllib2import bs4url = 'http://www.baidu.com'response1 = urllib2.urlopen(url)print '状态码', response1.getcode()print len(response1.read())print '第二种方法,可以加

2017-05-08 22:55:14 435

翻译 beautifulsoup 解析网页内容

# coding:utf-8from bs4 import BeautifulSoupimport rehtml_doc = """The Dormouse's storyThe Dormouse's storyOnce upon a time there were three little sisters; and their names wereElsie,Lacie

2017-05-08 22:51:42 464

翻译 ANN处理mnist字体库

作者很懒 还是先知贴个代码,open3 + python 自己体会# decoding:utf-8import osimport cv2from cv2.cv2 import *import codecsfrom cv2.ml import VAR_ORDEREDfrom canny import *from find_contours import *im

2017-05-06 17:07:09 1467 1

原创 canny检索边缘轮廓

很懒所以给个代码def canny(img): cv2.imwrite('canny.jpg', cv2.Canny(img, 200, 300)) image = cv2.imread('canny.jpg') cv2.imshow('canny', image) return image while cv2.waitKey(1) != 27:

2017-05-06 11:49:21 741

原创 SVM处理mnist字体库

# decoding:utf-8import osimport cv2import numpy as npimport codecsfrom cv2.ml import VAR_ORDEREDimport codecsfrom cv2.ml import VAR_ORDEREDfrom canny import *from find_contours import *impor

2017-05-06 11:42:38 971 1

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除