Răsfoiți Sursa

feat(FrogBoss): update

huangrunheng 2 ani în urmă
părinte
comite
8938604c07

+ 16 - 16
tasks/FrogBoss/assets.py

@@ -12,31 +12,31 @@ class FrogBossAssets:
 
 	# Image Rule Assets
 	# 左边竞猜 
-	I_BET_LEFT = RuleImage(roi_front=(88,342,145,100), roi_back=(88,342,145,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_left.png")
+	I_BET_LEFT = RuleImage(roi_front=(95,308,145,100), roi_back=(58,248,245,195), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_left.png")
 	# 右边竞猜 
-	I_BET_RIGHT = RuleImage(roi_front=(1044,344,146,100), roi_back=(1044,344,146,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_right.png")
+	I_BET_RIGHT = RuleImage(roi_front=(1038,303,146,100), roi_back=(1012,268,187,208), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_right.png")
 	# description 
-	I_BET_SUCCESS_BOX = RuleImage(roi_front=(590,439,87,50), roi_back=(590,439,87,50), threshold=0.75, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_success_box.png")
+	I_BET_SUCCESS_BOX = RuleImage(roi_front=(593,419,87,50), roi_back=(564,378,140,133), threshold=0.75, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_success_box.png")
 	# 左边赢了 
-	I_SUCCESS_LEFT = RuleImage(roi_front=(108,352,100,100), roi_back=(108,352,100,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_success_left.png")
+	I_SUCCESS_LEFT = RuleImage(roi_front=(123,316,100,100), roi_back=(91,254,202,221), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_success_left.png")
 	# 右边输了 
-	I_FAILURE_RIGHT = RuleImage(roi_front=(1067,341,100,100), roi_back=(1067,341,100,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_failure_right.png")
+	I_FAILURE_RIGHT = RuleImage(roi_front=(1063,291,100,100), roi_back=(993,242,224,199), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_failure_right.png")
 	# description 
-	I_NEXT_COMPETITION = RuleImage(roi_front=(1098,510,42,36), roi_back=(1098,510,42,36), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_next_competition.png")
+	I_NEXT_COMPETITION = RuleImage(roi_front=(1104,467,42,36), roi_back=(1037,402,187,184), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_next_competition.png")
 	# 30万金币 
-	I_GOLD_30 = RuleImage(roi_front=(824,499,78,76), roi_back=(824,499,78,76), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_gold_30.png")
+	I_GOLD_30 = RuleImage(roi_front=(858,494,78,76), roi_back=(809,427,147,187), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_gold_30.png")
 	# 确认竞猜 
-	I_BET_SURE = RuleImage(roi_front=(1014,404,100,100), roi_back=(1014,404,100,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_sure.png")
+	I_BET_SURE = RuleImage(roi_front=(1025,402,100,100), roi_back=(1000,297,200,226), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_sure.png")
 	# description 
-	I_GOLD_30_CHECK = RuleImage(roi_front=(512,180,68,83), roi_back=(402,141,459,489), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_gold_30_check.png")
+	I_GOLD_30_CHECK = RuleImage(roi_front=(513,196,58,53), roi_back=(402,141,459,489), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_gold_30_check.png")
 	# description 
-	I_BETTED = RuleImage(roi_front=(93,352,125,54), roi_back=(49,322,1192,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_betted.png")
+	I_BETTED = RuleImage(roi_front=(93,352,125,54), roi_back=(49,283,1192,161), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_betted.png")
 	# description 
-	I_SUCCESS_RIGHT = RuleImage(roi_front=(1061,336,122,116), roi_back=(1061,336,122,116), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_success_right.png")
+	I_SUCCESS_RIGHT = RuleImage(roi_front=(1048,341,122,116), roi_back=(999,243,201,260), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_success_right.png")
 	# description 
-	I_FAILURE_LEFT = RuleImage(roi_front=(107,351,100,100), roi_back=(107,351,100,100), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_failure_left.png")
+	I_FAILURE_LEFT = RuleImage(roi_front=(116,307,100,100), roi_back=(76,256,193,219), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_failure_left.png")
 	# description 
-	I_BET_FAILURE = RuleImage(roi_front=(510,266,269,72), roi_back=(510,266,269,72), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_failure.png")
+	I_BET_FAILURE = RuleImage(roi_front=(496,252,269,72), roi_back=(439,220,400,152), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_failure.png")
 	# description 
 	I_BET_SUCCESS = RuleImage(roi_front=(512,264,260,73), roi_back=(433,214,418,151), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_bet_success.png")
 
@@ -50,10 +50,10 @@ class FrogBossAssets:
 
 	# Ocr Rule Assets
 	# Ocr-description 
-	O_LEFT_COUNT = RuleOcr(roi=(144,541,69,31), area=(144,541,69,31), mode="Digit", method="Default", keyword="", name="left_count")
+	O_LEFT_COUNT = RuleOcr(roi=(143,496,69,31), area=(143,496,69,31), mode="Digit", method="Default", keyword="", name="left_count")
 	# Ocr-description 
-	O_RIGHT_COUNT = RuleOcr(roi=(1110,542,77,32), area=(1110,542,77,32), mode="Digit", method="Default", keyword="", name="right_count")
+	O_RIGHT_COUNT = RuleOcr(roi=(1105,497,77,32), area=(1105,497,77,32), mode="Digit", method="Default", keyword="", name="right_count")
 	# Ocr-description 
-	O_TIME_REMAIN = RuleOcr(roi=(590,601,91,35), area=(590,601,91,35), mode="Duration", method="Default", keyword="", name="time_remain")
+	O_TIME_REMAIN = RuleOcr(roi=(594,564,91,35), area=(594,564,91,35), mode="Duration", method="Default", keyword="", name="time_remain")
 
 

BIN
tasks/FrogBoss/fb/fb_gold_30_check.png


+ 24 - 24
tasks/FrogBoss/fb/image.json

@@ -2,8 +2,8 @@
   {
     "itemName": "bet_left",
     "imageName": "fb_bet_left.png",
-    "roiFront": "88,342,145,100",
-    "roiBack": "88,342,145,100",
+    "roiFront": "95,308,145,100",
+    "roiBack": "58,248,245,195",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "左边竞猜"
@@ -11,8 +11,8 @@
   {
     "itemName": "bet_right",
     "imageName": "fb_bet_right.png",
-    "roiFront": "1044,344,146,100",
-    "roiBack": "1044,344,146,100",
+    "roiFront": "1038,303,146,100",
+    "roiBack": "1012,268,187,208",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "右边竞猜"
@@ -20,8 +20,8 @@
   {
     "itemName": "bet_success_box",
     "imageName": "fb_bet_success_box.png",
-    "roiFront": "590,439,87,50",
-    "roiBack": "590,439,87,50",
+    "roiFront": "593,419,87,50",
+    "roiBack": "564,378,140,133",
     "method": "Template matching",
     "threshold": 0.75,
     "description": "description"
@@ -29,8 +29,8 @@
   {
     "itemName": "success_left",
     "imageName": "fb_success_left.png",
-    "roiFront": "108,352,100,100",
-    "roiBack": "108,352,100,100",
+    "roiFront": "123,316,100,100",
+    "roiBack": "91,254,202,221",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "左边赢了"
@@ -38,8 +38,8 @@
   {
     "itemName": "failure_right",
     "imageName": "fb_failure_right.png",
-    "roiFront": "1067,341,100,100",
-    "roiBack": "1067,341,100,100",
+    "roiFront": "1063,291,100,100",
+    "roiBack": "993,242,224,199",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "右边输了"
@@ -47,8 +47,8 @@
   {
     "itemName": "next_competition",
     "imageName": "fb_next_competition.png",
-    "roiFront": "1098,510,42,36",
-    "roiBack": "1098,510,42,36",
+    "roiFront": "1104,467,42,36",
+    "roiBack": "1037,402,187,184",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -56,8 +56,8 @@
   {
     "itemName": "gold_30",
     "imageName": "fb_gold_30.png",
-    "roiFront": "824,499,78,76",
-    "roiBack": "824,499,78,76",
+    "roiFront": "858,494,78,76",
+    "roiBack": "809,427,147,187",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "30万金币"
@@ -65,8 +65,8 @@
   {
     "itemName": "bet_sure",
     "imageName": "fb_bet_sure.png",
-    "roiFront": "1014,404,100,100",
-    "roiBack": "1014,404,100,100",
+    "roiFront": "1025,402,100,100",
+    "roiBack": "1000,297,200,226",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "确认竞猜"
@@ -74,7 +74,7 @@
   {
     "itemName": "gold_30_check",
     "imageName": "fb_gold_30_check.png",
-    "roiFront": "512,180,68,83",
+    "roiFront": "513,196,58,53",
     "roiBack": "402,141,459,489",
     "method": "Template matching",
     "threshold": 0.8,
@@ -84,7 +84,7 @@
     "itemName": "betted",
     "imageName": "fb_betted.png",
     "roiFront": "93,352,125,54",
-    "roiBack": "49,322,1192,100",
+    "roiBack": "49,283,1192,161",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -92,8 +92,8 @@
   {
     "itemName": "success_right",
     "imageName": "fb_success_right.png",
-    "roiFront": "1061,336,122,116",
-    "roiBack": "1061,336,122,116",
+    "roiFront": "1048,341,122,116",
+    "roiBack": "999,243,201,260",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -101,8 +101,8 @@
   {
     "itemName": "failure_left",
     "imageName": "fb_failure_left.png",
-    "roiFront": "107,351,100,100",
-    "roiBack": "107,351,100,100",
+    "roiFront": "116,307,100,100",
+    "roiBack": "76,256,193,219",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -110,8 +110,8 @@
   {
     "itemName": "bet_failure",
     "imageName": "fb_bet_failure.png",
-    "roiFront": "510,266,269,72",
-    "roiBack": "510,266,269,72",
+    "roiFront": "496,252,269,72",
+    "roiBack": "439,220,400,152",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"

+ 6 - 6
tasks/FrogBoss/fb/ocr.json

@@ -1,8 +1,8 @@
 [
   {
     "itemName": "left_count",
-    "roiFront": "144,541,69,31",
-    "roiBack": "144,541,69,31",
+    "roiFront": "143,496,69,31",
+    "roiBack": "143,496,69,31",
     "mode": "Digit",
     "method": "Default",
     "keyword": "",
@@ -10,8 +10,8 @@
   },
   {
     "itemName": "right_count",
-    "roiFront": "1110,542,77,32",
-    "roiBack": "1110,542,77,32",
+    "roiFront": "1105,497,77,32",
+    "roiBack": "1105,497,77,32",
     "mode": "Digit",
     "method": "Default",
     "keyword": "",
@@ -19,8 +19,8 @@
   },
   {
     "itemName": "time_remain",
-    "roiFront": "590,601,91,35",
-    "roiBack": "590,601,91,35",
+    "roiFront": "594,564,91,35",
+    "roiBack": "594,564,91,35",
     "mode": "Duration",
     "method": "Default",
     "keyword": "",