python 判断灰度图像
摘要:
from PIL import Image import matplotlib.pyplot as plt # 黑白照片(灰度图)识别 def isGrayMap(img, threshold = 15): """ 入参: img:PIL读入的图像 threshold:判断阈值,图片3个通道间差的方 阅读全文
posted @ 2020-05-16 15:00 cltt 阅读(2434) 评论(0) 推荐(0) 编辑