上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: ''' 数据的读取 ''' import pandas as pd import warnings warnings.filterwarnings('ignore') # 读取文本文件 users = pd.read_table('./users.dat', header=None, names=['UserID', 'Gender', 'Age', 'Occupation', 'Z... 阅读全文
posted @ 2019-07-29 20:15 一如年少模样 阅读(520) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np df = pd.DataFrame(np.arange(50).reshape(10, 5), columns=list('abcde')) print(df) print(df.describe()) print(df.sem()) df1 = pd.Series(['a', 'b', 'c', 'd', 'a... 阅读全文
posted @ 2019-07-29 18:53 一如年少模样 阅读(229) 评论(0) 推荐(0) 编辑
摘要: ''' 人脸识别:人脸识别与图像识别的区别在于人脸识别需要识别出两个人的不同点。 视频捕捉 通过OpenCV访问视频捕捉设备(视频头),从而获取图像帧。 ''' import cv2 as cv vc = cv.VideoCapture('./video/2372949.mp4') while True: frame ... 阅读全文
posted @ 2019-07-28 15:18 一如年少模样 阅读(509) 评论(0) 推荐(0) 编辑
摘要: ''' 物体识别 ''' import cv2 as cv import os import warnings import numpy as np import hmmlearn.hmm as hl warnings.filterwarnings('ignore', category=DeprecationWarning) np.seterr(all='ignore') def... 阅读全文
posted @ 2019-07-28 13:42 一如年少模样 阅读(2299) 评论(0) 推荐(1) 编辑
摘要: ''' 特征点检测: 常用特征点检测有:STAR特征点检测 / SIFT特征点检测 特征点检测结合了边缘检测与角点检测从而识别出图形的特征点。 STAR特征点检测相关API如下: import cv2 as cv # 创建STAR特征点检测器 star = cv.xfe... 阅读全文
posted @ 2019-07-28 10:16 一如年少模样 阅读(2315) 评论(0) 推荐(1) 编辑
摘要: ''' 角点检测:平直棱线的交汇点(颜色梯度方向改变的像素点的位置) OpenCV提供的角点检测相关API: gray = cv.cvtColor(original, cv.COLOR_BGR2GRAY) # Harris角点检测器 # 边缘水平... 阅读全文
posted @ 2019-07-28 10:04 一如年少模样 阅读(609) 评论(0) 推荐(0) 编辑
摘要: ''' 边缘识别:物体的边缘检测是物体识别常用的手段。边缘检测常用亮度梯度方法。 通过识别亮度梯度变化最大的像素点从而检测出物体的边缘。 常用边缘检测算法相关API: # 索贝尔边缘识别 # cv.CV_64F:卷积运算使用数据类型为64位浮点型(保证微分的精度) # 1:在... 阅读全文
posted @ 2019-07-28 09:46 一如年少模样 阅读(2032) 评论(0) 推荐(1) 编辑
摘要: 企查查网站中汇聚了有关注册企业的详细信息,为了更好的查询企业相关信息,本人对网站中安徽省境内的企业进行了爬取,其中遇到的问题和使用的技术如下: 1、遇到的问题: 1>企查查PC版数据只显示前500页,为了尽可能最大化爬取网站数据,本次爬取按照市级分别爬取,共计爬取安徽省境内16个市区共计80000条 阅读全文
posted @ 2019-07-27 17:29 一如年少模样 阅读(1802) 评论(3) 推荐(0) 编辑
摘要: ''' 中华人民共和国民政局官网中的行政区域代码爬取: 技术点: 1>进入二级页面(数据展示页)时,url发生跳转(js作用的),需要在二级页面源码中找到真实url 2>数据入库实时更新:保存url,下次爬取时,先对比url,若相同,不更新,否则更新 ''' import requests from lxml import... 阅读全文
posted @ 2019-07-25 17:12 一如年少模样 阅读(941) 评论(1) 推荐(0) 编辑
摘要: import requests import time import random from hashlib import md5 def get_salt_sign_ts(word): ts = str(int(time.time() * 1000)) salt = ts + str(random.randint(0, 9)) string = "fanyidesk... 阅读全文
posted @ 2019-07-25 10:42 一如年少模样 阅读(846) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页