CSDN博客地址
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: MongoDB为非关系型数据库(NoSQL)... 阅读全文
posted @ 2020-06-16 17:37 Yi_warmth 阅读(162) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverimport time driver = webdriver.Chrome("D:\脚本项目\lianxi\chromedriver.exe") url = "http://www.baidu.com" driver.get(url) dr 阅读全文
posted @ 2020-06-15 16:04 Yi_warmth 阅读(180) 评论(0) 推荐(0) 编辑
摘要: from retrying import r... 阅读全文
posted @ 2020-05-22 17:46 Yi_warmth 阅读(637) 评论(0) 推荐(0) 编辑
摘要: def write_report(url, excel_name, sheet_name): import re import ast import pandas as pd import openpyxl from copy import deepcopy resp = requests.get( 阅读全文
posted @ 2020-05-20 19:56 Yi_warmth 阅读(3146) 评论(0) 推荐(0) 编辑
摘要: def hero_skin(): import json import os import requests from bs4 import BeautifulSoup headers = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWe 阅读全文
posted @ 2020-05-20 14:22 Yi_warmth 阅读(273) 评论(0) 推荐(0) 编辑
摘要: # 文章首页链接url = "https:/... 阅读全文
posted @ 2020-05-20 10:31 Yi_warmth 阅读(351) 评论(0) 推荐(0) 编辑
摘要: # 爬取网易音乐 import requests from bs4 import BeautifulSoup import urllib.request headers = {"origin": "https://music.163.com", "referer": "https://music.1 阅读全文
posted @ 2020-05-19 17:28 Yi_warmth 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: 图像缩放 图像缩放主要是调用resize()函数实现,result = cv2.resize(src, dsize[, result[.fx, fy[,interpolation]]]) 其中src表示原始图像,dsize表示缩放大小, fx,fy也可以表示缩放大小倍数,他们两个设置一个即可实现图像 阅读全文
posted @ 2020-05-12 22:35 Yi_warmth 阅读(1509) 评论(0) 推荐(0) 编辑
摘要: 图像加法运算 1:借助Numpy库进行加法运算;运算方式为: 目标图像 = 图像1 + 图像2,运算结果进行取模运算 当像素值 <=255 时,结果图像1+图像2 eg: 120 + 48 =168 当像素值 >= 255 时,结果为对255取模的结果 eg: (255+56) %255=56 2: 阅读全文
posted @ 2020-05-11 22:28 Yi_warmth 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 主要讲解Python调用OpenCV实现图像平滑,包括四个算法:均值滤波、方框滤波、高斯滤波和中值滤波. 给图像增加噪声: import cv2 import numpy as np def test10(): img = cv2.imread("result.jpg", cv2.IMREAD_UN 阅读全文
posted @ 2020-05-10 20:30 Yi_warmth 阅读(2191) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
CSDN博客地址