|
@@ -2,11 +2,13 @@ from module.atom.image import RuleImage
|
|
|
from module.atom.click import RuleClick
|
|
from module.atom.click import RuleClick
|
|
|
from module.atom.long_click import RuleLongClick
|
|
from module.atom.long_click import RuleLongClick
|
|
|
from module.atom.swipe import RuleSwipe
|
|
from module.atom.swipe import RuleSwipe
|
|
|
|
|
+from module.atom.ocr import RuleOcr
|
|
|
|
|
|
|
|
# This file was automatically generated by module/dev_tools/assets_extract.py.
|
|
# This file was automatically generated by module/dev_tools/assets_extract.py.
|
|
|
# Don't modify it manually.
|
|
# Don't modify it manually.
|
|
|
class CoinChallengeAssets:
|
|
class CoinChallengeAssets:
|
|
|
|
|
|
|
|
|
|
+
|
|
|
# Image Rule Assets
|
|
# Image Rule Assets
|
|
|
# description
|
|
# description
|
|
|
I_NEW1 = RuleImage(roi_front=(157,240,70,79), roi_back=(41,185,279,207), threshold=0.8, method="Template matching", file="./tasks/CoinChallenge/res/res_new1.png")
|
|
I_NEW1 = RuleImage(roi_front=(157,240,70,79), roi_back=(41,185,279,207), threshold=0.8, method="Template matching", file="./tasks/CoinChallenge/res/res_new1.png")
|
|
@@ -14,6 +16,8 @@ class CoinChallengeAssets:
|
|
|
I_NEW2 = RuleImage(roi_front=(362,243,100,100), roi_back=(803,101,100,100), threshold=0.8, method="Template matching", file="./tasks/CoinChallenge/res/res_new2.png")
|
|
I_NEW2 = RuleImage(roi_front=(362,243,100,100), roi_back=(803,101,100,100), threshold=0.8, method="Template matching", file="./tasks/CoinChallenge/res/res_new2.png")
|
|
|
# desc55
|
|
# desc55
|
|
|
I_NEW3 = RuleImage(roi_front=(568,212,240,220), roi_back=(0,0,100,100), threshold=0.9, method="Template matching", file="./tasks/CoinChallenge/res/res_new3.png")
|
|
I_NEW3 = RuleImage(roi_front=(568,212,240,220), roi_back=(0,0,100,100), threshold=0.9, method="Template matching", file="./tasks/CoinChallenge/res/res_new3.png")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
# Click Rule Assets
|
|
# Click Rule Assets
|
|
|
# description
|
|
# description
|
|
|
C_NEW1 = RuleClick(roi_front=(268,268,100,100), roi_back=(614,214,100,100), name="new1")
|
|
C_NEW1 = RuleClick(roi_front=(268,268,100,100), roi_back=(614,214,100,100), name="new1")
|
|
@@ -21,6 +25,8 @@ class CoinChallengeAssets:
|
|
|
C_NEW2 = RuleClick(roi_front=(171,236,100,100), roi_back=(554,225,100,100), name="new2")
|
|
C_NEW2 = RuleClick(roi_front=(171,236,100,100), roi_back=(554,225,100,100), name="new2")
|
|
|
# desc444n
|
|
# desc444n
|
|
|
C_NEW3 = RuleClick(roi_front=(180,150,100,100), roi_back=(596,247,100,100), name="new3")
|
|
C_NEW3 = RuleClick(roi_front=(180,150,100,100), roi_back=(596,247,100,100), name="new3")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
# Long Click Rule Assets
|
|
# Long Click Rule Assets
|
|
|
# description
|
|
# description
|
|
|
L_NEW1 = RuleLongClick(roi_front=(208,151,100,100), roi_back=(542,279,100,100), duration=1500, name="new1")
|
|
L_NEW1 = RuleLongClick(roi_front=(208,151,100,100), roi_back=(542,279,100,100), duration=1500, name="new1")
|
|
@@ -28,6 +34,23 @@ class CoinChallengeAssets:
|
|
|
L_NEW2 = RuleLongClick(roi_front=(355,191,100,100), roi_back=(526,323,100,100), duration=1500, name="new2")
|
|
L_NEW2 = RuleLongClick(roi_front=(355,191,100,100), roi_back=(526,323,100,100), duration=1500, name="new2")
|
|
|
# de66666n
|
|
# de66666n
|
|
|
L_NEW3 = RuleLongClick(roi_front=(112,156,100,100), roi_back=(469,200,100,100), duration=1000, name="new3")
|
|
L_NEW3 = RuleLongClick(roi_front=(112,156,100,100), roi_back=(469,200,100,100), duration=1000, name="new3")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ # Swipe Rule Assets
|
|
|
|
|
+ # Ocr-description
|
|
|
|
|
+ S_NEW_FULL = RuleOcr(roi=(255,129,628,100), area=(637,418,100,100), mode="Full", method="Default", keyword="探索", name="new_full")
|
|
|
|
|
+ # Ocr-description
|
|
|
|
|
+ S_NEW_SINGLE_V = RuleOcr(roi=(564,255,105,159), area=(0,0,100,100), mode="Single", method="Default", keyword="式神育成", name="new_single_v")
|
|
|
|
|
+ # Ocr-description
|
|
|
|
|
+ S_NEW_SINGLE_H = RuleOcr(roi=(78,19,143,63), area=(314,169,100,100), mode="Single", method="Default", keyword="式神育成", name="new_single_h")
|
|
|
|
|
+ # Ocr-description
|
|
|
|
|
+ S_DIGIT = RuleOcr(roi=(408,173,51,43), area=(0,0,100,100), mode="Single", method="Default", keyword="", name="digit")
|
|
|
|
|
+ # Ocr-description
|
|
|
|
|
+ S_DIGIT_COUNTER = RuleOcr(roi=(1134,6,100,56), area=(0,0,100,100), mode="Single", method="Default", keyword="", name="digit_counter")
|
|
|
|
|
+ # Ocr-description
|
|
|
|
|
+ S_DURATION = RuleOcr(roi=(923,256,100,46), area=(0,0,100,100), mode="Single", method="Default", keyword="育成_结界卡剩余时间", name="duration")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
# Swipe Rule Assets
|
|
# Swipe Rule Assets
|
|
|
# description
|
|
# description
|
|
|
S_NEW1 = RuleSwipe(roi_front=(253,212,100,100), roi_back=(652,292,100,100), mode="default", name="new1")
|
|
S_NEW1 = RuleSwipe(roi_front=(253,212,100,100), roi_back=(652,292,100,100), mode="default", name="new1")
|