Bladeren bron

移除cv2代码

zhangdongming 1 jaar geleden
bovenliggende
commit
928fd9cb80
1 gewijzigde bestanden met toevoegingen van 0 en 2 verwijderingen
  1. 0 2
      Object/SageMakerAiObject.py

+ 0 - 2
Object/SageMakerAiObject.py

@@ -14,7 +14,6 @@ import time
 from io import BytesIO
 
 import boto3
-import cv2
 import numpy as np
 from PIL import Image
 
@@ -55,7 +54,6 @@ class SageMakerAiObject:
             img_list = map(BytesIO, img_list)
             img_list = map(Image.open, img_list)
             img_list = map(np.array, img_list)
-            img_list = map(lambda x: cv2.cvtColor(x, cv2.COLOR_RGB2BGR), img_list)
             img_list = np.array(list(img_list))
 
             nms_threshold = 0.45