- 博客(13)
- 问答 (1)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 robomaster自动化打大神符(2017年版本)本文包括图像处理和树莓派与机器交互部分
不好意思,本文为本人原创作品,不允许各种形式的转载,否则依法追究法律责任,没办法就是这麽任性
2017-05-09 17:14:22
6602
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 #include using 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
377
原创 归并排序算法
#include #include using 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
197
原创 快速排序算法
#include using 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
257
转载 树莓派使用uart串口与串口设备通信
本文转自:http://990487026.blog.51cto.com/10133282/1758182 树莓派硬件版本: 二代B+ 树莓派系统版本 1 2 3 4 5 6 root@raspberrypiroot@raspberrypi:~# lsb_release -a No LSB modules are available
2017-05-10 19:55:42
4556
1
转载 python 的命名规则
文件名 全小写,可使用下划线 包 应该是简短的、小写的名字。如果下划线可以改善可读性可以加入。如mypackage。 模块 与包的规范同。如mymodule。 类 总是使用首字母大写单词串。如MyClass。内部类可以使用额外的前导下划线。 函数&方法 函数名应该为小写,可以用下划线风格单词以增加可读性。如:myfunction,m
2017-05-10 15:40:49
430
原创 树莓派与运动装置的交互
利用socket和树莓派自带的摄像头处理流获取当前图片然后调用已经写好的处理函数对当前图片进行处理并且将返回的数据通过socket发送到 arudio开发板上
2017-05-09 11:48:56
1167
翻译 urllib2 爬取网页信息
# coding:utf-8 import cookielib import urllib2 import bs4 url = 'http://www.baidu.com' response1 = urllib2.urlopen(url) print '状态码', response1.getcode() print len(response1.read()) print '第二种方法,可以加
2017-05-08 22:55:14
438
翻译 beautifulsoup 解析网页内容
# coding:utf-8 from bs4 import BeautifulSoup import re html_doc = """ The Dormouse's story The Dormouse's story Once upon a time there were three little sisters; and their names were Elsie, Lacie
2017-05-08 22:51:42
472
翻译 ANN处理mnist字体库
作者很懒 还是先知贴个代码,open3 + python 自己体会 # decoding:utf-8 import os import cv2 from cv2.cv2 import * import codecs from cv2.ml import VAR_ORDERED from canny import * from find_contours import * im
2017-05-06 17:07:09
1471
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
748
原创 SVM处理mnist字体库
# decoding:utf-8 import os import cv2 import numpy as np import codecs from cv2.ml import VAR_ORDERED import codecs from cv2.ml import VAR_ORDERED from canny import * from find_contours import * impor
2017-05-06 11:42:38
972
1
空空如也
wifi显示的设备名例如android-16位十六进制字符
2017-11-05
TA创建的收藏夹 TA关注的收藏夹
TA关注的人