随笔分类 -  Python

摘要:错误提示 requests.exceptions.SSLError: HTTPSConnectionPool(host='air.cnemc.cn', port=18007): Max retries exceeded with url: /emcpublish/ClientBin/Env-Cnem 阅读全文
posted @ 2021-08-11 14:14 Objects 阅读(989) 评论(1) 推荐(0)
摘要:在数字图像处理中,针对不同的图像格式有其特定的处理算法。所以,在做图像处理之前,我们需要考虑清楚自己要基于哪种格式的图像进行算法设计及其实现。本文基于这个需求,使用python中的图像处理库PIL来实现不同图像格式的转换。 对于彩色图像,不管其图像格式是PNG,还是BMP,或者JPG,在PIL中,使 阅读全文
posted @ 2018-04-02 11:34 Objects 阅读(8877) 评论(0) 推荐(0)
摘要:from PIL import Image import numpy as np a = np.asarray(Image.open("D://7.jpg").convert('L')).astype('float') depth = 10. # (0-100) grad = np.gradient(a) #取图像灰度的梯度值... 阅读全文
posted @ 2018-04-02 11:18 Objects 阅读(475) 评论(0) 推荐(0)
摘要:http://www.lfd.uci.edu/~gohlke/pythonlibs/ 阅读全文
posted @ 2017-09-11 13:45 Objects 阅读(215) 评论(0) 推荐(0)