assets.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 GoryouRealmAssets:
  10. # Click Rule Assets
  11. # description
  12. C_GR_C_1 = RuleClick(roi_front=(107,98,213,409), roi_back=(107,98,213,409), name="gr_c_1")
  13. # description
  14. C_GR_C_2 = RuleClick(roi_front=(405,98,228,325), roi_back=(405,98,228,325), name="gr_c_2")
  15. # description
  16. C_GR_C_3 = RuleClick(roi_front=(708,118,232,367), roi_back=(708,118,232,367), name="gr_c_3")
  17. # description
  18. C_GR_C_4 = RuleClick(roi_front=(1017,112,222,316), roi_back=(1017,112,222,316), name="gr_c_4")
  19. # Image Rule Assets
  20. # 点击挑战
  21. I_GR_FIRE = RuleImage(roi_front=(1051,577,100,100), roi_back=(1051,577,100,100), threshold=0.8, method="Template matching", file="./tasks/GoryouRealm/gr/gr_gr_fire.png")
  22. # description
  23. I_GR_LOCK = RuleImage(roi_front=(702,655,27,32), roi_back=(702,655,27,32), threshold=0.8, method="Template matching", file="./tasks/GoryouRealm/gr/gr_gr_lock.png")
  24. # description
  25. I_GR_UNLOCK = RuleImage(roi_front=(703,653,26,33), roi_back=(703,653,26,33), threshold=0.8, method="Template matching", file="./tasks/GoryouRealm/gr/gr_gr_unlock.png")
  26. # Ocr Rule Assets
  27. # 多少张票
  28. O_GR_TICKET = RuleOcr(roi=(938,4,100,41), area=(938,4,100,41), mode="Digit", method="Default", keyword="", name="gr_ticket")