更新接口

This commit is contained in:
2025-09-15 19:43:47 +08:00
parent a688e17e4e
commit 233ef20ce2
8 changed files with 44 additions and 4 deletions

View File

@@ -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}")