2018年12月7日

利用PIL.ImageOps.invert实现二值图像黑白反转

摘要: 利用PIL.ImageOps.invert实现二值图像黑白反转 import PIL.ImageOps from PIL import Image img = Image.open('D:\\Desktop\\计算机视觉\\image\\0.png') img = img.convert('1') 阅读全文

posted @ 2018-12-07 16:08 那抹阳光1994 阅读(1789) 评论(1) 推荐(0)

内存单位换算

摘要: 1 byte (B 字节) = 8 bits (b 比特位,0或1) 1 KB = 1024 (2^10) byte 1MB = 1024 KB 1GB = 1024 MB 1TB = 1024 GB 阅读全文

posted @ 2018-12-07 15:27 那抹阳光1994 阅读(3508) 评论(0) 推荐(0)

PIL图像数据处理

摘要: import numpy as np from PIL import Image img = Image.open('path') img.show() PIL的九种不同模式:1,L,P,RGB,RGBA,CMYK,YCbCr,I,F 1、模式 ”1” 为二值图像,非黑即白。但是它每个像素用8个bi 阅读全文

posted @ 2018-12-07 15:15 那抹阳光1994 阅读(267) 评论(0) 推荐(0)

matplotlib绘图实用指南(待整理)

摘要: import numpy as np import matplotlib.pyplot as plt 阅读全文

posted @ 2018-12-07 15:13 那抹阳光1994 阅读(169) 评论(0) 推荐(0)

卷积核尺寸如何选取呢?

摘要: 滤波器的大小选择 大部分卷积神经网络都会采用逐层递增(1⇒ 3 ⇒ 5 ⇒ 7)的方式。 每经过一次池化层,卷积层过滤器的深度都会乘以 2; 卷积神经网络中卷积核越小越好吗? 多个小的卷积核叠加使用要远比一个大的卷积核单独使用效果要好的多,在连通性不变的情况下,大大降低了参数个数和计算复杂度。 当然 阅读全文

posted @ 2018-12-07 10:23 那抹阳光1994 阅读(13879) 评论(0) 推荐(1)

导航