码迷,mamicode.com
首页 >  
搜索关键字:pil    ( 2160个结果
Tinyrender-Lesson 0 画一个点
Tinyrender-Lesson 0 画一个点 原文链接: https://github.com/ssloy/tinyrenderer/wiki/Lesson-0-getting-started import matplotlib.pyplot as plt from PIL import Ima ...
分类:其他好文   时间:2020-06-23 21:06:46    阅读次数:70
centOS安装nginx的一些常见问题
centOS安装nginx的常见问题 ./configure:error:c compile cc is not found 当执行命令 ./configure 编译安装nginx时报error:c compile cc is not found 解决: 执行命令 yum -y install gc ...
分类:其他好文   时间:2020-06-22 12:24:00    阅读次数:55
re.compile()
1、定义 compile(pattern, flags=0) ** 正则匹配规则: \w*o\w* \w* 表示匹配由大小写英文字bai母数字和下划线组成的0个或多个du字符o 表示匹zhi配字符o\w*o\w* 表示匹配含有o的字dao符串(不管o在首字母还是在尾字母还是在中间) 2、与finda ...
分类:其他好文   时间:2020-06-19 15:39:23    阅读次数:40
Convolutional Neural Network-week1编程题(TensorFlow实现手势数字识别)
1. TensorFlow model import math import numpy as np import h5py import matplotlib.pyplot as plt import scipy from PIL import Image from scipy import nd ...
分类:Web程序   时间:2020-06-16 20:28:35    阅读次数:54
vue.js 进行初始化遇到的关于core-js的错误@core-js/modules/es6.array.find-index (ERROR Failed to compile with 164 errors These dependencies were not found)
E:\SourceCode\VUE\vue-element-admin-master>cnpm run dev > vue-element-admin@4.3.0 dev E:\SourceCode\VUE\vue-element-admin-master > vue-cli-service ser ...
分类:Web程序   时间:2020-06-16 18:35:15    阅读次数:448
验证码
用到模块 # pillow # 安装 # pip3 install pillow # from PIL import Image, ImageDraw, ImageFont, ImageFilter """ Image:生成图片 ImageDraw:能够在图片上乱涂乱画 ImageFont:控制字体 ...
分类:其他好文   时间:2020-06-16 00:50:52    阅读次数:148
python叠加矩形框图层
两种方式以及效果: 方式一,使用PIL.Image.blend方式: from PIL import Image, ImageDraw im = Image.open('d:/tmp/58.249.0.220_01_20200604141800866_TIMING.jpg', 'r') im2 = ...
分类:编程语言   时间:2020-06-15 15:44:07    阅读次数:63
15 手写数字识别-小数据集
1.手写数字数据集 from sklearn.datasets import load_digits digits = load_digits() 2.图片数据预处理 x:归一化MinMaxScaler() y:独热编码OneHotEncoder()或to_categorical 训练集测试集划分 ...
分类:其他好文   时间:2020-06-14 20:38:09    阅读次数:60
解决macos 10.15 pillow安装失败问题,提示the headers or library files could not be found for zlib
问题描述: 当使用pip安装Pillow python3包时提示the headers or library files could not be found for zlib,原因是环境变量设置里找不到zip headers library files相关文件,所以编译失败导致的。 解决方法: 将 ...
分类:系统相关   时间:2020-06-14 20:37:55    阅读次数:183
APP自动化(java和python)——java操作百度浏览器
package jkcs; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.remote.Desi ...
分类:移动开发   时间:2020-06-13 21:23:50    阅读次数:86
2160条   上一页 1 ... 12 13 14 15 16 ... 216 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!