From 6b236459537955a84dbde5ecd6b37c22ca48f81d Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Thu, 1 Aug 2024 10:12:13 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=20=20design=20=E9=A2=84=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=96=B0=E5=A2=9Epadding=20=E5=A4=84=E7=90=86=20?= =?UTF-8?q?=E4=BD=BF=E5=9B=BE=E7=89=87=E4=B8=8D=E8=A6=81=E5=AE=8C=E5=85=A8?= =?UTF-8?q?=E8=B4=B4=E8=BE=B9=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/design_pre_processing/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/service/design_pre_processing/service.py b/app/service/design_pre_processing/service.py index bd6f81c..1b4f33c 100644 --- a/app/service/design_pre_processing/service.py +++ b/app/service/design_pre_processing/service.py @@ -142,6 +142,7 @@ class DesignPreprocessing: # @ RunTime def infer_image(self, image_list): + seg_result = None for sketch in image_list: # 小写 image_category = sketch['image_category'].lower() @@ -166,6 +167,7 @@ class DesignPreprocessing: points_list.append((int(i[1]), int(i[0]))) for point in points_list: cv2.circle(debug_show_image, point, point_size, point_color, thickness) + cv2.imshow("seg_result", seg_result) cv2.imshow("", debug_show_image) cv2.waitKey(0) # # 关键点在上部则推理seg