python学习
_要啥自行车
这个人很懒
展开
-
python matplotlib.pyplot.subplot绘图
官网上使用说明:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplot.html,上面说的很详细,基本上都能找到需要的内容。提取几点自己需要的内容。使用语句subplot(nrows, ncols, index)nrows和ncols表示一张图被分为nrows*ncols个区域index表示子图所处的位置,起始位置索引为1,即1&l...原创 2018-07-08 19:22:33 · 8412 阅读 · 1 评论 -
python对常见排序算法的实现
import randomdef random_nums_generator(max_value=1000, total_nums=20): """ 随机数列表生成器 一些常用函数: random随机数生成 random.random()用于生成一个0到1之间的随机数:0 <= n < 1.0; random.uniform(a,...原创 2018-08-10 20:12:13 · 96 阅读 · 0 评论 -
(python)xml.etree.ElemenTree 学习
最近需要用到VOC2007格式的数据集,需要自己制作xml文件。但是网上现有的程序都不能很好的运行,因此自学了一下利用python处理xml,在此记录一下。本文参考官网的文档,可以自行前往学习。1.xml文件格式首先,来看一下XML所包含的元素类型1. 标签 <tag>2. 属性 <tag name="attribute">3. 数据 <data...原创 2018-09-08 16:38:20 · 1769 阅读 · 0 评论 -
OCR开源库(文本区域定位和文本识别):github
一、SWT识别:yestinsong/Text-Detection( Text Detection System with MSER , SWT and Text Verification(fft and pca) )https://github.com/yestinsong/Text-Detectionaperrau/DetectText:Detect text with stroke w...转载 2018-11-19 16:56:53 · 2684 阅读 · 0 评论