# 归一化一张图片: aaa = curImgData[:,:,0] norm_image = cv.normalize(aaa, None, alpha=0, beta=1, norm_type=cv.NORM_MINMAX, dtype=cv.CV_32F) bbb = norm_image*255 ccc = bbb.astype(np.uint8)
真的服了。Python no yyds