Преглед изворни кода

fix(GeneralInvite): Shrink I_FLAG_1_ON ROI to keep the selected friend tab detected #20

- shrink I_FLAG_1_ON roi from (354,126,62,21) to (358,129,56,15) in assets.py and image.json
- re-crop gi_flag_1_on.png to the 56x15 cream area inside the selected tab pill
- keep the sampled region clear of the pill border, so the global +2px roi_back expansion no longer pushes the mean color out of the 10-bias window and strands the friend tab switching loop
blylana пре 1 дан
родитељ
комит
fe65e54bdb

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

@@ -50,7 +50,7 @@ class GeneralInviteAssets:
 	# 判断是否点中好友了 
 	I_SELECTED = RuleImage(roi_front=(895,373,33,32), roi_back=(895,373,33,32), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_selected.png")
 	# 用来判断当前的列表是哪儿的 
-	I_FLAG_1_ON = RuleImage(roi_front=(354,126,62,21), roi_back=(354,126,62,21), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_flag_1_on.png")
+	I_FLAG_1_ON = RuleImage(roi_front=(358,129,56,15), roi_back=(358,129,56,15), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralInvite/gi/gi_flag_1_on.png")
 	# 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 

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


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

@@ -173,8 +173,8 @@
   {
     "itemName": "flag_1_on",
     "imageName": "gi_flag_1_on.png",
-    "roiFront": "354,126,62,21",
-    "roiBack": "354,126,62,21",
+    "roiFront": "358,129,56,15",
+    "roiBack": "358,129,56,15",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "用来判断当前的列表是哪儿的"