更新接口
This commit is contained in:
@@ -85,6 +85,7 @@ def test_image_loading():
|
||||
# 方法2: 支持中文路径的方式
|
||||
try:
|
||||
img2 = cv2.imdecode(np.fromfile(image_path, dtype=np.uint8), cv2.IMREAD_COLOR)
|
||||
# img2 = cv2.resize(img2,(128,48))
|
||||
print(f"cv2.imdecode结果: {img2 is not None}")
|
||||
if img2 is not None:
|
||||
print(f"图片尺寸: {img2.shape}")
|
||||
|
||||
Reference in New Issue
Block a user