assets.py 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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 CostumeBattleAssets:
  10. # Image Rule Assets
  11. # 指针
  12. I_LOCAL_1 = RuleImage(roi_front=(119,493,23,25), roi_back=(119,493,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle1/battle1_local_1.png")
  13. # 左上角退出
  14. I_EXIT_1 = RuleImage(roi_front=(21,20,27,31), roi_back=(21,20,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle1/battle1_exit_1.png")
  15. # 左上角好友
  16. I_FRIENDS_1 = RuleImage(roi_front=(88,18,35,34), roi_back=(88,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle1/battle1_friends_1.png")
  17. # 战斗信息标识
  18. I_BATTLE_INFO_1 = RuleImage(roi_front=(231,14,37,39), roi_back=(210,1,147,72), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle1/battle1_battle_info_1.png")
  19. # Image Rule Assets
  20. # 左上角退出
  21. I_EXIT_10 = RuleImage(roi_front=(16,15,38,36), roi_back=(16,15,38,36), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_exit_10.png")
  22. # 左上角好友
  23. I_FRIENDS_10 = RuleImage(roi_front=(90,14,35,37), roi_back=(90,14,35,37), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_friends_10.png")
  24. # 指针
  25. I_LOCAL_10 = RuleImage(roi_front=(29,566,23,26), roi_back=(29,566,23,26), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_local_10.png")
  26. # 战斗信息标识
  27. I_BATTLE_INFO_10 = RuleImage(roi_front=(232,17,33,34), roi_back=(208,0,147,58), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_battle_info_10.png")
  28. # Image Rule Assets
  29. # 左上角退出
  30. I_EXIT_11 = RuleImage(roi_front=(16,15,31,34), roi_back=(16,15,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_exit_11.png")
  31. # 左上角好友
  32. I_FRIENDS_11 = RuleImage(roi_front=(90,14,30,28), roi_back=(90,14,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_friends_11.png")
  33. # 指针
  34. I_LOCAL_11 = RuleImage(roi_front=(29,566,29,28), roi_back=(29,566,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_local_11.png")
  35. # 战斗信息标识
  36. I_BATTLE_INFO_11 = RuleImage(roi_front=(235,21,29,28), roi_back=(142,0,169,71), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_battle_info_11.png")
  37. # Image Rule Assets
  38. # 左上角退出
  39. I_EXIT_12 = RuleImage(roi_front=(16,15,22,25), roi_back=(16,15,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_exit_12.png")
  40. # 左上角好友
  41. I_FRIENDS_12 = RuleImage(roi_front=(90,14,22,30), roi_back=(90,14,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_friends_12.png")
  42. # 指针
  43. I_LOCAL_12 = RuleImage(roi_front=(29,566,28,28), roi_back=(29,566,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_local_12.png")
  44. # 战斗胜利
  45. I_WIN_12 = RuleImage(roi_front=(390,30,46,88), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_win_12.png")
  46. # 针对封魔的特殊
  47. I_DE_WIN_12 = RuleImage(roi_front=(390,30,46,88), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_de_win_12.png")
  48. # 失败
  49. I_FALSE_12 = RuleImage(roi_front=(390,30,58,86), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_false_12.png")
  50. # 战斗信息标识
  51. I_BATTLE_INFO_12 = RuleImage(roi_front=(234,17,32,32), roi_back=(215,0,142,58), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle12/battle12_battle_info_12.png")
  52. # Image Rule Assets
  53. # 左上角退出
  54. I_EXIT_13 = RuleImage(roi_front=(25,20,22,25), roi_back=(10,10,69,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_exit_13.png")
  55. # 左上角好友
  56. I_FRIENDS_13 = RuleImage(roi_front=(98,15,22,30), roi_back=(74,10,71,47), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_friends_13.png")
  57. # 指针
  58. I_LOCAL_13 = RuleImage(roi_front=(29,566,28,28), roi_back=(29,566,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_local_13.png")
  59. # 战斗胜利
  60. I_WIN_13 = RuleImage(roi_front=(631,142,68,67), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_win_13.png")
  61. # 针对封魔的特殊
  62. I_DE_WIN_13 = RuleImage(roi_front=(577,59,73,49), roi_back=(386,0,480,231), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_de_win_13.png")
  63. # 失败
  64. I_FALSE_13 = RuleImage(roi_front=(550,152,58,77), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_false_13.png")
  65. # 战斗信息标识
  66. I_BATTLE_INFO_13 = RuleImage(roi_front=(234,17,32,32), roi_back=(215,0,142,58), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle13/battle13_battle_info_13.png")
  67. # Image Rule Assets
  68. # 左上角退出
  69. I_EXIT_14 = RuleImage(roi_front=(25,20,22,25), roi_back=(10,10,69,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_exit_14.png")
  70. # 左上角好友
  71. I_FRIENDS_14 = RuleImage(roi_front=(98,15,22,30), roi_back=(74,10,71,47), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_friends_14.png")
  72. # 指针
  73. I_LOCAL_14 = RuleImage(roi_front=(117,493,28,28), roi_back=(66,456,110,121), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_local_14.png")
  74. # 战斗胜利
  75. I_WIN_14 = RuleImage(roi_front=(544,190,68,67), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_win_14.png")
  76. # 针对封魔的特殊
  77. I_DE_WIN_14 = RuleImage(roi_front=(590,152,87,129), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_de_win_14.png")
  78. # 失败
  79. I_FALSE_14 = RuleImage(roi_front=(597,190,57,66), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_false_14.png")
  80. # 战斗信息标识
  81. I_BATTLE_INFO_14 = RuleImage(roi_front=(234,17,32,32), roi_back=(215,0,142,58), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle14/battle14_battle_info_14.png")
  82. # Image Rule Assets
  83. # 左上角退出
  84. I_EXIT_15 = RuleImage(roi_front=(25,20,22,25), roi_back=(10,10,69,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_exit_15.png")
  85. # 左上角好友
  86. I_FRIENDS_15 = RuleImage(roi_front=(98,15,22,30), roi_back=(74,10,71,47), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_friends_15.png")
  87. # 指针
  88. I_LOCAL_15 = RuleImage(roi_front=(25,561,28,37), roi_back=(9,485,110,121), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_local_15.png")
  89. # 战斗胜利
  90. I_WIN_15 = RuleImage(roi_front=(544,190,68,67), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_win_15.png")
  91. # 针对封魔的特殊
  92. I_DE_WIN_15 = RuleImage(roi_front=(590,152,87,129), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_de_win_15.png")
  93. # 失败
  94. I_FALSE_15 = RuleImage(roi_front=(597,190,57,66), roi_back=(390,30,510,290), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_false_15.png")
  95. # 战斗信息标识
  96. I_BATTLE_INFO_15 = RuleImage(roi_front=(234,17,32,32), roi_back=(215,0,142,58), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle15/battle15_battle_info_15.png")
  97. # Image Rule Assets
  98. # description
  99. I_LOCAL_2 = RuleImage(roi_front=(30,569,21,22), roi_back=(30,569,21,22), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle2/battle2_local_2.png")
  100. # description
  101. I_EXIT_2 = RuleImage(roi_front=(17,16,35,34), roi_back=(17,16,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle2/battle2_exit_2.png")
  102. # description
  103. I_FRIENDS_2 = RuleImage(roi_front=(88,15,34,39), roi_back=(88,15,34,39), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle2/battle2_friends_2.png")
  104. # 战斗信息标识
  105. I_BATTLE_INFO_2 = RuleImage(roi_front=(232,17,34,36), roi_back=(211,0,145,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle2/battle2_battle_info_2.png")
  106. # Image Rule Assets
  107. # 指针
  108. I_LOCAL_3 = RuleImage(roi_front=(29,567,23,25), roi_back=(29,567,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle3/battle3_local_3.png")
  109. # 左上角退出
  110. I_EXIT_3 = RuleImage(roi_front=(23,18,27,31), roi_back=(23,18,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle3/battle3_exit_3.png")
  111. # 左上角好友
  112. I_FRIENDS_3 = RuleImage(roi_front=(89,17,35,34), roi_back=(89,17,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle3/battle3_friends_3.png")
  113. # 战斗信息标识
  114. I_BATTLE_INFO_3 = RuleImage(roi_front=(233,17,35,35), roi_back=(211,0,145,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle3/battle3_battle_info_3.png")
  115. # Image Rule Assets
  116. # 指针
  117. I_LOCAL_4 = RuleImage(roi_front=(29,567,23,25), roi_back=(29,567,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle4/battle4_local_4.png")
  118. # 左上角退出
  119. I_EXIT_4 = RuleImage(roi_front=(22,17,27,31), roi_back=(22,17,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle4/battle4_exit_4.png")
  120. # 左上角好友
  121. I_FRIENDS_4 = RuleImage(roi_front=(88,16,35,34), roi_back=(88,16,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle4/battle4_friends_4.png")
  122. # 战斗信息标识
  123. I_BATTLE_INFO_4 = RuleImage(roi_front=(234,18,33,33), roi_back=(212,0,139,59), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle4/battle4_battle_info_4.png")
  124. # Image Rule Assets
  125. # 指针
  126. I_LOCAL_5 = RuleImage(roi_front=(30,567,23,25), roi_back=(30,567,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle5/battle5_local_5.png")
  127. # 左上角退出
  128. I_EXIT_5 = RuleImage(roi_front=(22,17,27,31), roi_back=(22,17,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle5/battle5_exit_5.png")
  129. # 左上角好友
  130. I_FRIENDS_5 = RuleImage(roi_front=(90,17,35,34), roi_back=(90,17,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle5/battle5_friends_5.png")
  131. # 战斗信息标识
  132. I_BATTLE_INFO_5 = RuleImage(roi_front=(233,18,31,31), roi_back=(212,0,147,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle5/battle5_battle_info_5.png")
  133. # Image Rule Assets
  134. # 指针
  135. I_LOCAL_6 = RuleImage(roi_front=(30,566,23,25), roi_back=(30,566,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle6/battle6_local_6.png")
  136. # 左上角退出
  137. I_EXIT_6 = RuleImage(roi_front=(22,17,27,31), roi_back=(22,17,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle6/battle6_exit_6.png")
  138. # 左上角好友
  139. I_FRIENDS_6 = RuleImage(roi_front=(89,18,35,34), roi_back=(89,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle6/battle6_friends_6.png")
  140. # 战斗信息标识
  141. I_BATTLE_INFO_6 = RuleImage(roi_front=(233,18,32,31), roi_back=(213,0,144,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle6/battle6_battle_info_6.png")
  142. # Image Rule Assets
  143. # 指针
  144. I_LOCAL_7 = RuleImage(roi_front=(30,566,23,25), roi_back=(30,566,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle7_local_7.png")
  145. # 左上角退出
  146. I_EXIT_7 = RuleImage(roi_front=(22,17,27,31), roi_back=(22,17,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle7_exit_7.png")
  147. # 左上角好友
  148. I_FRIENDS_7 = RuleImage(roi_front=(89,18,35,34), roi_back=(89,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle7_friends_7.png")
  149. # 战斗信息标识
  150. I_BATTLE_INFO_7 = RuleImage(roi_front=(232,16,33,33), roi_back=(214,0,141,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle7_battle_info_7.png")
  151. # Image Rule Assets
  152. # 指针
  153. I_LOCAL_8 = RuleImage(roi_front=(30,566,23,25), roi_back=(30,566,23,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_local_8.png")
  154. # 左上角退出
  155. I_EXIT_8 = RuleImage(roi_front=(22,17,27,31), roi_back=(22,17,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_exit_8.png")
  156. # 左上角好友
  157. I_FRIENDS_8 = RuleImage(roi_front=(89,18,35,34), roi_back=(89,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_friends_8.png")
  158. # 战斗胜利
  159. I_WIN_8 = RuleImage(roi_front=(391,100,100,100), roi_back=(296,33,414,224), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_win_8.png")
  160. # 针对封魔的特殊
  161. I_DE_WIN_8 = RuleImage(roi_front=(392,99,100,100), roi_back=(239,36,399,198), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_de_win_8.png")
  162. # 失败
  163. I_FALSE_8 = RuleImage(roi_front=(384,106,100,100), roi_back=(346,96,184,120), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_false_8.png")
  164. # 战斗信息标识
  165. I_BATTLE_INFO_8 = RuleImage(roi_front=(232,17,32,33), roi_back=(212,0,143,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle8/battle8_battle_info_8.png")
  166. # Image Rule Assets
  167. # 左上角退出
  168. I_EXIT_9 = RuleImage(roi_front=(20,17,35,34), roi_back=(20,17,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle9/battle9_exit_9.png")
  169. # 左上角好友
  170. I_FRIENDS_9 = RuleImage(roi_front=(93,15,31,36), roi_back=(93,15,31,36), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle9/battle9_friends_9.png")
  171. # 指针
  172. I_LOCAL_9 = RuleImage(roi_front=(114,489,37,37), roi_back=(114,489,37,37), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle9/battle9_local_9.png")
  173. # 战斗信息标识
  174. I_BATTLE_INFO_9 = RuleImage(roi_front=(232,15,36,34), roi_back=(212,1,145,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle9/battle9_battle_info_9.png")