opencv_python 读取4通道png图片
作者:互联网
import cv2if __name__ == '__main__':image=cv2.imread("C:\\Users\\Administrator\\pythonProject\\JudicialExpertis\\16026615913874.png",cv2.IMREAD_UNCHANGED)print(image.shape)
cv2.IMREAD_UNCHANGED # 读取结果为图片本身维度,如透明图为4维数组,彩色图为3维,黑白图为2维
标签:__,python,image,cv2,opencv,IMREAD,UNCHANGED,png 来源: https://blog.51cto.com/u_15177056/2725312