瀏覽代碼

追加打印

peng 2 年之前
父節點
當前提交
44ba7c3ddc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Controller/AiController.py

+ 3 - 1
Controller/AiController.py

@@ -284,6 +284,8 @@ class AiView(View):
     ## 检查是否有符合条件的标签,并且返回标签坐标位置信息
     def labelsCoords(self, user_detect_group, rekognition_res, image_size):
         logger = logging.getLogger('info')
+        logger.info('user_detect_group:{},rekognition_res:{},image_size:{}'.format(user_detect_group, rekognition_res,
+                                                                                   image_size))
         labels = rekognition_res['Labels']
         label_name = []
         label_list = []
@@ -524,4 +526,4 @@ class AiView(View):
         except Exception as e:
             print(repr(e))
             logger.info(repr(e))
-            return repr(e)
+            return repr(e)