Просмотр исходного кода

fix(GeneralInvite): 修正 GeneralInvite 组件的标志位 ROI 参数 #1509

- 调整 `I_FLAG_2_ON` 的前后 ROI 区域坐标
- 同步更新 `gi_flag_2_on.png` 资源及对应的 `image.json` 配置
- 解决因坐标错误导致的识别匹配不准问题
yuyuyuyuyu 6 месяцев назад
Родитель
Сommit
76e2a87482

+ 1 - 1
tasks/Component/GeneralInvite/assets.py

@@ -54,7 +54,7 @@ class GeneralInviteAssets:
 	# description 
 	I_FLAG_1_OFF = RuleImage(roi_front=(353,126,58,22), roi_back=(353,126,58,22), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_flag_1_off.png")
 	# description 
-	I_FLAG_2_ON = RuleImage(roi_front=(471,128,54,18), roi_back=(471,128,54,18), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_flag_2_on.png")
+	I_FLAG_2_ON = RuleImage(roi_front=(472,82,32,11), roi_back=(454,74,56,26), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_flag_2_on.png")
 	# description 
 	I_FLAG_2_OFF = RuleImage(roi_front=(469,127,58,21), roi_back=(469,127,58,21), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_flag_2_off.png")
 	# description 

BIN
tasks/Component/GeneralInvite/gi/gi_flag_2_on.png


+ 2 - 2
tasks/Component/GeneralInvite/gi/image.json

@@ -191,8 +191,8 @@
   {
     "itemName": "flag_2_on",
     "imageName": "gi_flag_2_on.png",
-    "roiFront": "471,128,54,18",
-    "roiBack": "471,128,54,18",
+    "roiFront": "472,82,32,11",
+    "roiBack": "454,74,56,26",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"