#!/usr/bin/env python
# -*- coding: gbk -*-
import cv2
img_head = cv2.imread('月亮.jpg')
img_flag = cv2.imread('国旗.png')
#获取头像和国旗图案宽度
# ~ w_head, h_head = img_head.shape[0:2]
print(img_head.shape[:
2021-10-04_cv2.imread()_AttributeError: ‘NoneType’ object has no attribute ‘shape’
最新推荐文章于 2024-08-20 15:31:55 发布