assets.py 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 TrueOrochiAssets:
  10. # Click Rule Assets
  11. # description
  12. C_ST_GREEN_1 = RuleClick(roi_front=(210,395,46,66), roi_back=(210,395,46,66), name="st_green_1")
  13. # description
  14. C_ST_GREEN_2 = RuleClick(roi_front=(291,481,46,63), roi_back=(291,481,46,63), name="st_green_2")
  15. # description
  16. C_ST_GREEN_3 = RuleClick(roi_front=(459,426,53,59), roi_back=(459,426,53,59), name="st_green_3")
  17. # description
  18. C_ST_GREEN_4 = RuleClick(roi_front=(687,391,43,57), roi_back=(687,391,43,57), name="st_green_4")
  19. # description
  20. C_ST_GREEN_5 = RuleClick(roi_front=(814,490,41,60), roi_back=(814,490,41,60), name="st_green_5")
  21. # description
  22. C_ST_GREEN_6 = RuleClick(roi_front=(921,386,48,59), roi_back=(921,386,48,59), name="st_green_6")
  23. # description
  24. C_ST_GREEN_7 = RuleClick(roi_front=(0,0,100,100), roi_back=(0,0,100,100), name="st_green_7")
  25. # description
  26. C_ST_GREEN_MAIN = RuleClick(roi_front=(611,541,40,66), roi_back=(611,541,40,66), name="st_green_main")
  27. # Image Rule Assets
  28. # 出现真蛇
  29. I_FIND_TS = RuleImage(roi_front=(259,635,96,79), roi_back=(183,585,331,135), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_find_ts.png")
  30. # 点击挑战60体力
  31. I_ST_FIRE = RuleImage(roi_front=(960,485,100,100), roi_back=(960,485,100,100), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_fire.png")
  32. # 确认挑战
  33. I_ST_FIRE_CONFIRM = RuleImage(roi_front=(718,424,69,30), roi_back=(671,406,176,53), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_fire_confirm.png")
  34. # 十个式神的准备
  35. I_ST_FIRE_PREPARE = RuleImage(roi_front=(1118,548,100,100), roi_back=(1118,548,100,100), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_fire_prepare.png")
  36. # description
  37. I_ST_AUTO_FALSE = RuleImage(roi_front=(1112,463,33,34), roi_back=(1112,463,33,34), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_auto_false.png")
  38. # description
  39. I_ST_AUTO_TRUE = RuleImage(roi_front=(1112,461,34,37), roi_back=(1112,461,34,37), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_auto_true.png")
  40. # description
  41. I_ST_GREEN_1 = RuleImage(roi_front=(209,216,22,48), roi_back=(188,192,69,87), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_green_1.png")
  42. # description
  43. I_ST_GREEN_2 = RuleImage(roi_front=(294,311,21,46), roi_back=(273,282,70,91), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_green_2.png")
  44. # description
  45. I_ST_GREEN_3 = RuleImage(roi_front=(473,269,21,49), roi_back=(457,245,56,89), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_green_3.png")
  46. # description
  47. I_ST_GREEN_4 = RuleImage(roi_front=(690,258,27,49), roi_back=(662,235,83,83), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_green_4.png")
  48. # description
  49. I_ST_GREEN_5 = RuleImage(roi_front=(841,335,26,44), roi_back=(814,302,100,100), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_green_5.png")
  50. # description
  51. I_ST_GREEN_6 = RuleImage(roi_front=(930,247,24,47), roi_back=(894,224,100,100), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_green_6.png")
  52. # 60体力创建
  53. I_ST_CREATE_ROOM = RuleImage(roi_front=(528,482,223,62), roi_back=(528,482,223,62), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_create_room.png")
  54. # 头像框
  55. I_ST_FRAME = RuleImage(roi_front=(571,442,135,65), roi_back=(571,442,135,65), threshold=0.8, method="Template matching", file="./tasks/TrueOrochi/st/st_st_frame.png")
  56. # 玩法tab八岐大蛇模块,在场说明本周还有次数
  57. I_ST_MODULE = RuleImage(roi_front=(1111,322,84,22), roi_back=(1068,210,191,313), threshold=0.85, method="Template matching", file="./tasks/TrueOrochi/st/st_module.png")