PIL(Python Imaging Library)是Python常用的图像处理库,而Pillow是PIL的一个友好Fork,提供了了广泛的文件格式支持,强大的图像处理能力,主要包括图像储存、图像显示、格式转换以及基本的图像处理操作等。 Pillow的文档:http://pillow.readth ...
C++中使用macro判断OS类型 see: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system ...
分类:
编程语言 时间:
2018-04-20 13:25:38
阅读次数:
168
jps JVM Process Status Tool,显示指定系统内所有的HotSpot虚拟机进程。 命令格式: jps [options] [hostid] option参数: 其中[option]、[hostid]参数也可以不写。 jstat jstat(JVM statistics Moni ...
分类:
其他好文 时间:
2018-04-18 21:21:55
阅读次数:
200
Python基础 Python基础 —— 基本数据类型 Python基础 —— 基本数据类型的方法总结 Python基础 —— 比较运算符 + 逻辑运算符 Python基础 —— 异常处理 Python基础 —— 常用模块 Python基础 —— 模块和包 Python基础 —— PIL模块 Pyt ...
分类:
编程语言 时间:
2018-04-16 11:09:50
阅读次数:
188
这部分为Flask博客的登录页面加个验证码。使用了PIL模块生成验证码图片,并通过Flask的session机制,进行验证码验证。 ...
分类:
其他好文 时间:
2018-04-15 14:55:19
阅读次数:
228
Wordcloud各参数含义 Python(wordcloud+jieba)生成中文词云图 ...
分类:
其他好文 时间:
2018-04-14 21:01:59
阅读次数:
191
一:介绍 1.Jedis的官网 2.使用 这个可以从上面的连接进入github。 https://github.com/xetorthio/jedis 3.使用方式 或者使用jar包,不过这里我使用官网推荐的maven管理方式。 二:验证是否可以连接主机 1.cmd下 telnet 192.168. ...
分类:
其他好文 时间:
2018-04-14 00:41:20
阅读次数:
216
PIL简介 什么是PIL PIL:是Python Image Library的缩写,图像处理的模块。主要的类包括Image,ImageFont,ImageDraw,ImageFilter PIL的导入 首先需要安装一下pillow包 然后就可以调用PIL里的类了 PIL常用方法 PIL应用 我们主要 ...
分类:
编程语言 时间:
2018-04-13 11:24:10
阅读次数:
215
from PIL import Image base_img = Image.open('/home/sensetime/aachen_000007_000019_leftImg8bit.png') box = (198, 107, 1097, 1088) tmp_img = Image.open(... ...
分类:
其他好文 时间:
2018-04-12 23:35:41
阅读次数:
228
import PIL from PIL import Image from PIL import ImageDraw,ImageFont import random def get_random_color(): return (random.randint(0, 255), random.rand ...
分类:
编程语言 时间:
2018-04-12 20:58:19
阅读次数:
188