【python+opencv学习日志】获取图片的宽、高

rows = outImg.shape[0]
    cols = outImg.shape[1]
    for i in range(rows):#height(rows) of image
        for j in range(cols):#width(colums) of image
            outImg[i, j] = abs(255 - outImg[i, j])

猜你喜欢

转载自blog.csdn.net/weixin_39589455/article/details/88556091
今日推荐