assets.py 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 SecretAssets:
  10. # Click Rule Assets
  11. # description
  12. C_SE_CLICK_LAYER = RuleClick(roi_front=(434,155,100,100), roi_back=(434,155,100,100), name="se_click_layer")
  13. # Image Rule Assets
  14. # 进入
  15. I_SE_ENTER = RuleImage(roi_front=(1145,593,100,100), roi_back=(1145,593,100,100), threshold=0.8, method="Template matching", file="./tasks/Secret/se/se_se_enter.png")
  16. # 秘闻挑战
  17. I_SE_FIRE = RuleImage(roi_front=(1108,551,100,100), roi_back=(1108,551,100,100), threshold=0.8, method="Template matching", file="./tasks/Secret/se/se_se_fire.png")
  18. # 排行
  19. I_SE_PLACEMENT = RuleImage(roi_front=(1011,568,50,48), roi_back=(1011,568,50,48), threshold=0.8, method="Template matching", file="./tasks/Secret/se/se_se_placement.png")
  20. # 勾玉
  21. I_SE_JADE = RuleImage(roi_front=(305,208,28,33), roi_back=(305,208,28,33), threshold=0.8, method="Template matching", file="./tasks/Secret/se/se_se_jade.png")
  22. # 最后一个的勾玉
  23. I_SE_JADE_LAST = RuleImage(roi_front=(302,565,37,40), roi_back=(302,565,37,40), threshold=0.8, method="Template matching", file="./tasks/Secret/se/se_se_jade_last.png")
  24. # 战斗赢
  25. I_SE_BATTLE_WIN = RuleImage(roi_front=(436,62,100,100), roi_back=(436,62,100,100), threshold=0.8, method="Template matching", file="./tasks/Secret/se/se_se_battle_win.png")
  26. # Ocr Rule Assets
  27. # 未通关
  28. O_SE_NO_PASS = RuleOcr(roi=(428,151,262,248), area=(428,151,262,248), mode="Full", method="Default", keyword="未通关", name="se_no_pass")
  29. # 第一个位置的层数
  30. O_SE_LAYER_1 = RuleOcr(roi=(211,149,37,35), area=(211,149,37,35), mode="Single", method="Default", keyword="", name="se_layer_1")
  31. # Ocr-description
  32. O_SE_LAYER_10 = RuleOcr(roi=(210,507,34,34), area=(210,507,34,34), mode="Single", method="Default", keyword="拾", name="se_layer_10")
  33. # Ocr-description
  34. O_SE_LAYER_9 = RuleOcr(roi=(211,373,35,33), area=(211,373,35,33), mode="Single", method="Default", keyword="玖", name="se_layer_9")
  35. # Ocr-description
  36. O_SE_LAYER_8 = RuleOcr(roi=(212,237,34,34), area=(212,237,34,34), mode="Single", method="Default", keyword="捌", name="se_layer_8")
  37. # 后面的时候识别为通关的
  38. O_SE_NO_PASS_LAST = RuleOcr(roi=(429,381,180,234), area=(429,381,180,234), mode="Full", method="Default", keyword="", name="se_no_pass_last")
  39. # Swipe Rule Assets
  40. # 向下滑动
  41. S_SE_DOWN_SEIPE = RuleSwipe(roi_front=(229,520,124,27), roi_back=(217,390,145,35), mode="default", name="se_down_seipe")