feat oss替换为S3

fix
This commit is contained in:
zhouchengrong
2024-06-27 15:04:38 +08:00
parent cac569f776
commit ae2be27173

View File

@@ -58,6 +58,8 @@ class Painting(object):
# 使用OpenCV解码图像数组
# image = cv2.imdecode(image_array, cv2.IMREAD_COLOR)
image = oss_get_image(bucket=bucket_name, object_name=object_name, data_type="cv2")
if image.shape[2] == 4:
image = cv2.cvtColor(image, cv2.COLOR_BGRA2BGR)
return image
@staticmethod