猫史档案馆


【Python作品分享】模糊处理【作业帖】

用户:xy的hcxy的hc查看:0 回复:1 评论:0 创建时间:2022-12-17T20:39:44


【作品展示】

center_image

 

【作品介绍】

 

【作品源代码】

from PIL import Image, ImageFilter
import matplotlib.pyplot as plt


img = Image.open("哈哈.png")

print(img.format, img.size)

_, axes = plt.subplots(2,4, figsize=(25,25))



_img = img.copy()
#提示newsize中的两个参数是调整模糊程度的越大越清晰
newsize = (100000,100000)
_img.thumbnail(newsize)
axes[0][0].imshow(_img)
axes[0][0].set_title("")





plt.show()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
xy的hcxy的hc

"C:\Users\Administrator\Pictures\图库\微信图片_20231008195833.jpg"

点赞0


评论