当使用PIL.Image.open()打开图片后,如果要使用img.shape函数,需要先将image形式转换成array数组img = numpy.array(im)比如要加椒盐噪声for k in ...
確定! 回上一頁