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维
2024-04-12 17:33:20
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维