自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

计算机视觉

计算机视觉基础及工程实战

  • 博客(24)
  • 资源 (20)
  • 收藏
  • 关注

原创 新浪微博数据挖掘食谱之四: 保存篇 (json text格式)

新浪微博数据挖掘食谱之四: 保存篇 (json text格式)

2014-12-31 06:55:11 7159

原创 新浪微博数据挖掘食谱之三: 搜索篇 (selenium)

新浪微博数据挖掘菜谱之三: 搜索篇 (selenium)

2014-12-30 05:56:16 2131

原创 新浪微博数据挖掘食谱之二: 话题篇 (selenium)

新浪微博数据挖掘菜谱之二: 话题篇 (selenium)

2014-12-29 06:54:33 2423

原创 新浪微博数据挖掘食谱之一: 登录篇 (API)

新浪微博数据挖掘菜谱之一: 登录篇 (API)

2014-12-28 07:06:45 4140

翻译 Python wrap实现简单的时间查看,修改器

from time import time, ctimeclass TimedWrapMe(object): def __init__(self, obj): self.__data = obj self.__ctime = self.__mtime = \ self.__atime = time() def ge

2014-12-26 10:36:15 749

原创 Python 使用list实现简单的map

# An map iteratorclass _MapIterator: def __init__(self, theList): self._mapItems = theList self._curItem = 0 def __iter__(self): return self def next(self):

2014-12-25 18:07:28 1963

翻译 Python 实现简单的迭代器

class AnyIter(object): def __init__(self, data, safe=False): self.safe = safe self.iter = iter(data) def __iter__(self): return self def next(self, howmany=1):

2014-12-25 11:20:35 560

翻译 Python 使用类实现简单的计时器

class Time60(object): 'Time60 - track hours and minutes' def __init__(self, hr, min): 'Time60 initializer - takes hours and minutes' self.hr = hr self.min = min d

2014-12-25 11:05:18 2229

翻译 Python 用类自定义数值的四舍五入

//code 1class RoundFloatManual(object): def __init__(self, val): assert isinstance(val, float), "Value must be a float!" self.value = round(val, 2)//outputIn [47]: rfm = RoundF

2014-12-25 10:01:38 1328

翻译 Python 使用list实现简单的set

# Implementation of iterclass _SetIterator: def __init__(self, theList): self._setItems = theList self._curItem = 0 def __iter__(self): return self def next(self):

2014-12-24 17:16:10 731

翻译 Python 正则表达式验证 INI Name-Value Pairs

(?m)^([^=;\r\n]+)=([^;\r\n]*)

2014-12-23 17:26:41 547

翻译 Python 正则表达式验证INI section blocks

(?ms)^\[[^]\r\n]+](?:(?!^\[[^]\r\n]+]).)*

2014-12-22 09:43:24 584

翻译 Python 正则表达式匹配INI Section头

(?m)^\[[^\]\r\n]+]

2014-12-19 09:18:59 1149

原创 Python 类指针操作

In [23]: friends_ids = []In [24]: followers_ids = []In [25]: for ids1, ids2 in [[friends_ids, followers_ids]]: ....: ids1 += '1' ....: ids2 += '2' ....:In [26]: id(ids1)Out[26]

2014-12-19 05:45:35 5314

翻译 Python 正则表达式从CSV文件提取特定列

Match string:1. Match a CSV record and capture the field in column 1 to backreference 1(?m)^([^",\r\n]+|"(?:[^"]|"")*")?(?:,(?:[^",\r\n]+|"(?:[^"]|"")*")?)*2. Match a CSV record and capture the fi

2014-12-18 11:11:17 3580

翻译 Python 正则表达式改变csv文件的分隔符

import resubject = '''aaa,b b,"""c"" cc"1,,"333, three,still more threes"'''result = ""reobj = re.compile(r'''(,|\r?\n|^)([^",\r\n]+|"(?:[^"]|"")*")?''')for matchobj in reobj.finditer(subject

2014-12-16 10:36:37 2865

翻译 Python 正则表达式查找XML注释中的特定词

1. Two-step approach import resubject = ''' This "TODO" is not within a comment, but the next one is. <!-- TODO : Come up with a cooler comment for this example. -->'''

2014-12-15 14:01:11 1610

翻译 Python 实现简单的GUI

from functools import partialimport Tkinterroot = Tkinter.Tk()MyButton = partial(Tkinter.Button, root, fg='white', bg='blue')b1 = MyButton(text='Button 1')b2 = MyButton(text='Button 2')qb = MyBu

2014-12-11 15:06:27 846

翻译 Python 正则表达式删除XML的注释

1. Xml commentMatch:Replace:NULL2 Html commentMatch:"']|"[^"]*"|'[^']*')*>.*?|"']|"[^"]*"|'[^']*')*>.*|"']|"[^"]*"|'[^']*')*>|Replace:NULL

2014-12-11 09:44:17 1659

翻译 Python 实现简单的加减猜结果游戏

#! /usr/bin/env pythonfrom operator import add, subfrom random import randint, choiceops = {'+': add, '-': sub}MAXTRIES = 2def doprob(): op = choice('+-') nums = [randint(1,10) for i i

2014-12-09 14:37:23 713

翻译 Python 正则表达式为XML中tags增加Attribute

Solution 1, simplisticMatch:]*?\scellspacing\b)([^>]*)>Replace:Solution 2, more reliableMatch:"']|"[^"]*"|'[^']*')*?\scellspacing\b)((?:[^>"']|"[^"]*"|'[^']*')*)>Replace:

2014-12-09 11:06:41 606

翻译 Python 正则表达式查找特定XML Tag中的Attribute

1. Tags that contain an id attribute (quick and dirty)]+\sid\b[^>]*>eg.2. Tags that contain an id attribute(more reliable)"']|"[^"]*"|'[^']*')+?\sid\s*=\s*("[^"]*"|'[^']*')(?:[^>"']|"[^"]*"|'[^

2014-12-08 12:01:16 3207

翻译 Python 正则表达式decode xml entities

法1:def xmlEntityDecode(capture1 = None, capture2 = None, capture3 = None): # Define name map dict nameDict = {'quot': 34, 'amp': 38, 'apos': 39,

2014-12-05 11:08:37 605

翻译 Python 正则表达式将纯文本转化为HTML格式

1. Detail stepStep 1: Replace HTML special characters with named character references& ---> & <> ---> >Step 2: Replace all line breaks with result = re.sub("\r\n?|\n", "", subject)Step

2014-12-01 11:23:13 1296 1

Computer Vision PAAL .zip

Computer Vision Principles, Algorithms, Applications, Learning

2020-05-21

Practical Python and OpenCV, 3rd Edition.rar

基于python的opencv实战教程,包括图片的各种操作,图片预处理,平滑化和阈值化,边缘检测和轮廓检测等

2019-10-04

High Performance Python

Chapter 1. Introduction, Section 1.1. The High Performance Buzz-word, Chapter 2. The Theory of Computation, Section 2.1. Introduction, Section 2.2. Problems, Section 2.3. Models of Computation, Chapter 3. Algorithms, Section 3.1. Introduction, Section 3.2. Anatomy of an Algorithm, Section 3.3. Introducing Big O Notation, Section 3.4. Recurrence Relations, Section 3.5. P, NP, and Completeness, Section 3.6. Hall of Fame, Chapter 4. Rules of Optimization, Section 4.1. Rule #1: Plan Ahead, Chapter 5. Optimization for Speed, Section 5.1. Think like a Cheat, Section 5.2. Use Psyco, Section 5.3. Check Your Loops, Section 5.4. Anthony Tuininga's cx_Freeze, Section 5.5. Wait for Moore's Law to Catch Up, Section 5.6. Limit Regular Expressions

2017-12-09

apache-maven

Maven项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的软件项目管理工具。 Maven 除了以程序构建能力为特色之外,还提供高级项目管理工具。由于 Maven 的缺省构建规则有较高的可重用性,所以常常用两三行 Maven 构建脚本就可以构建简单的项目。由于 Maven 的面向项目的方法,许多 Apache Jakarta 项目发文时使用 Maven,而且公司项目采用 Maven 的比例在持续增长。 Maven这个单词来自于意第绪语(犹太语),意为知识的积累,最初在Jakata Turbine项目中用来简化构建过程。当时有一些项目(有各自Ant build文件),仅有细微的差别,而JAR文件都由CVS来维护。于是希望有一种标准化的方式构建项目,一个清晰的方式定义项目的组成,一个容易的方式发布项目的信息,以及一种简单的方式在多个项目中共享JARs。

2017-09-06

libpcap-1.0.0

libpcap-1.0.0

2017-08-04

CUDA for Engineers An Introduction to High Performance Parallel Computing

CUDA for Engineers An Introduction to High Performance Parallel Computing

2017-06-06

load test for video publish, pull

stress test tool for video publish, pull (hlv, hls, rtmp)

2017-03-13

ffmpeg, use to publish stream, play stream

ffmpeg

2017-01-11

ovirt viewer

这个工具是在ovirt查看虚拟机的的

2016-12-07

Mongodb Windows Client

mongodb windows client

2016-11-26

lua5.3.3 win32

lua 5.3.3

2016-11-08

nginx from begin to pro

nginx from begin to pro

2016-11-07

Data Science for Business

Data Science for business

2016-10-19

Tool to decode flv

Tool to decode http flv

2016-08-19

pexpect安装包

Python类expect的库, 方便ssh, telnet

2015-03-24

Regular Expressions Cookbook 2nd

正则表达式 第二版 正则表达式对于程序编写有非常大的好处

2013-03-30

空空如也

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

TA关注的人

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