assets.py 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. from module.atom.image import RuleImage
  2. from module.atom.click import RuleClick
  3. from module.atom.long_click import RuleLongClick
  4. from module.atom.swipe import RuleSwipe
  5. from module.atom.ocr import RuleOcr
  6. from module.atom.list import RuleList
  7. # This file was automatically generated by ./dev_tools/assets_extract.py.
  8. # Don't modify it manually.
  9. class HeroTestAssets:
  10. # Click Rule Assets
  11. # 切换英杰按钮
  12. C_SWITCH_HERO_BTN = RuleClick(roi_front=(54,113,52,55), roi_back=(8,64,156,161), name="switch_hero_btn")
  13. # Image Rule Assets
  14. # 进入活动第一步
  15. I_ONE = RuleImage(roi_front=(633,106,88,105), roi_back=(633,106,88,105), threshold=0.7, method="Template matching", file="./tasks/HeroTest/as/as_one.png")
  16. # 进入活动第二步
  17. I_TWO = RuleImage(roi_front=(819,685,95,26), roi_back=(819,685,200,26), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_two.png")
  18. # 点击鬼兵演武
  19. I_GBB = RuleImage(roi_front=(95,344,37,131), roi_back=(95,344,37,131), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_gbb.png")
  20. # 爬塔返回按钮
  21. I_GBB_BACK = RuleImage(roi_front=(11,13,63,56), roi_back=(11,13,63,56), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_gbb_back.png")
  22. # 鬼兵演武返回按钮
  23. I_BACK = RuleImage(roi_front=(20,24,75,76), roi_back=(20,24,75,76), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_back.png")
  24. # 挑战按钮
  25. I_BATTLE = RuleImage(roi_front=(1129,588,99,49), roi_back=(1129,588,99,49), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_battle.png")
  26. # 解锁阵容
  27. I_UNLOCK = RuleImage(roi_front=(824,651,20,25), roi_back=(734,632,286,71), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_unlock.png")
  28. # 阵容锁定状态
  29. I_LOCK = RuleImage(roi_front=(822,650,23,26), roi_back=(736,638,283,71), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_lock.png")
  30. # 兵藏秘境
  31. I_BCMJ = RuleImage(roi_front=(1086,350,45,131), roi_back=(1086,350,45,131), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj.png")
  32. # 兵藏秘境阵容锁
  33. I_BCMJ_LOCK = RuleImage(roi_front=(908,655,20,26), roi_back=(825,645,199,52), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_lock.png")
  34. # 兵藏秘境挑战
  35. I_BCMJ_BATTLE = RuleImage(roi_front=(1131,598,92,50), roi_back=(1131,598,92,50), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_battle.png")
  36. # 兵藏秘境胜利
  37. I_BCMJ_WIN = RuleImage(roi_front=(431,141,100,100), roi_back=(431,141,100,100), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_win.png")
  38. # 兵藏秘境选择八华斩
  39. I_BCMJ_SKILL_ADD1 = RuleImage(roi_front=(109,361,90,32), roi_back=(103,359,1076,37), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_skill_add1.png")
  40. # 技能选择 无畏
  41. I_BCMJ_SKILL_ADD2 = RuleImage(roi_front=(728,359,61,32), roi_back=(106,356,1068,38), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_skill_add2.png")
  42. # 技能祝福确定
  43. I_BCMJ_SKILL_ADD_CONFIRM = RuleImage(roi_front=(608,633,64,36), roi_back=(608,633,64,36), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_skill_add_confirm.png")
  44. # 兵藏秘境的暴击伤害属性奖励
  45. I_BCMJ_PROPERTY_ADD_CRITICAL = RuleImage(roi_front=(704,359,115,34), roi_back=(120,356,1038,39), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_property_add_critical.png")
  46. # 兵藏秘境默认祝福
  47. I_BCMJ_BLESS = RuleImage(roi_front=(261,159,21,20), roi_back=(256,156,939,27), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_bless.png")
  48. # 默认属性
  49. I_BCMJ__DEFALUT_ATTRIBUTE = RuleImage(roi_front=(1168,159,21,22), roi_back=(255,155,944,31), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj__defalut_attribute.png")
  50. # 兵藏秘境的阵容未锁
  51. I_BCMJ_UNLOCK = RuleImage(roi_front=(908,656,20,20), roi_back=(825,642,195,56), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_unlock.png")
  52. # 通过兵藏秘境确认重置按钮
  53. I_BCMJ_RESET_CONFIRM = RuleImage(roi_front=(668,399,180,70), roi_back=(668,399,180,70), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_reset_confirm.png")
  54. # 通过兵藏秘境取消重置按钮
  55. I_BCMJ_RESET_CLOSE = RuleImage(roi_front=(492,424,71,30), roi_back=(429,397,186,71), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_bcmj_reset_close.png")
  56. # 周一点击确认开始挑战
  57. I_START_CHALLENGE = RuleImage(roi_front=(685,407,142,47), roi_back=(685,407,142,47), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_start_challenge.png")
  58. # 藤原道长副本标志
  59. I_CHECK_HERO2 = RuleImage(roi_front=(52,113,57,58), roi_back=(3,62,157,151), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_check_hero2.png")
  60. # 切换源赖光
  61. I_SWITCH_HERO1 = RuleImage(roi_front=(176,113,251,360), roi_back=(0,0,1279,718), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_switch_hero1.png")
  62. # 源赖光副本标志
  63. I_CHECK_HERO1 = RuleImage(roi_front=(52,109,55,66), roi_back=(19,79,127,130), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_check_hero1.png")
  64. # 切换藤原道长
  65. I_SWITCH_HERO2 = RuleImage(roi_front=(507,126,254,352), roi_back=(0,0,1274,714), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_switch_hero2.png")
  66. # 进入传承试炼标志
  67. I_ENTER_CCSL = RuleImage(roi_front=(302,243,41,149), roi_back=(252,161,148,303), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_enter_ccsl.png")
  68. # 进入梦虚秘境标志
  69. I_ENTER_MXMJ = RuleImage(roi_front=(1075,331,40,138), roi_back=(1051,302,92,190), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_enter_mxmj.png")
  70. # 鬼兵演武页面标志
  71. I_CHECK_HERO1_EXP = RuleImage(roi_front=(36,466,63,69), roi_back=(0,427,137,145), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_check_hero1_exp.png")
  72. # 兵藏秘境标志
  73. I_CHECK_HERO1_SKILL = RuleImage(roi_front=(27,237,338,142), roi_back=(0,139,423,322), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_check_hero1_skill.png")
  74. # 传承试炼页面标志
  75. I_CHECK_HERO2_EXP = RuleImage(roi_front=(33,465,63,65), roi_back=(12,448,100,100), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_check_hero2_exp.png")
  76. # 梦虚秘境页面标志
  77. I_CHECK_HERO2_SKILL = RuleImage(roi_front=(24,308,250,92), roi_back=(0,282,362,143), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_check_hero2_skill.png")
  78. # 御灵满级标志
  79. I_HERO_EXP_MAX = RuleImage(roi_front=(175,493,20,20), roi_back=(162,481,106,37), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero_exp_max.png")
  80. # 真钱
  81. I_REAL_MONEY = RuleImage(roi_front=(536,320,24,30), roi_back=(466,155,530,411), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_real_money.png")
  82. # Image Rule Assets
  83. # 同调祝福
  84. I_HERO2_SKILL1 = RuleImage(roi_front=(825,358,61,36), roi_back=(47,340,1178,65), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill1.png")
  85. # 韵迟祝福
  86. I_HERO2_SKILL2 = RuleImage(roi_front=(521,356,63,37), roi_back=(46,333,1174,82), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill2.png")
  87. # 叠辉祝福
  88. I_HERO2_SKILL4 = RuleImage(roi_front=(1127,356,65,41), roi_back=(48,349,1173,57), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill4.png")
  89. # 敛神祝福
  90. I_HERO2_SKILL5 = RuleImage(roi_front=(217,358,65,37), roi_back=(46,334,1148,81), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill5.png")
  91. # 弥天祝福
  92. I_HERO2_SKILL3 = RuleImage(roi_front=(520,358,62,38), roi_back=(41,346,1172,63), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill3.png")
  93. # 速度祝福
  94. I_HERO2_SKILL6 = RuleImage(roi_front=(427,356,62,38), roi_back=(48,342,1175,67), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill6.png")
  95. # Ocr Rule Assets
  96. # 投喂的体力
  97. O_REMAIN_AP = RuleOcr(roi=(1095,24,123,33), area=(1095,24,123,33), mode="DigitCounter", method="Default", keyword="", name="remain_ap")
  98. # 兵藏秘境兵道帖
  99. O_ART_WAR_CARD = RuleOcr(roi=(712,21,98,36), area=(712,21,98,36), mode="DigitCounter", method="Default", keyword="", name="art_war_card")
  100. # 兵道帖机密
  101. O_ART_WAR_CARD_PLUS = RuleOcr(roi=(916,25,90,29), area=(916,25,90,29), mode="Digit", method="Default", keyword="", name="art_war_card_plus")
  102. # 挑战按钮
  103. O_FIRE = RuleOcr(roi=(1130,585,92,55), area=(1126,576,100,99), mode="Single", method="Default", keyword="挑战", name="fire")