assets.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 EvoZoneAssets:
  10. # Image Rule Assets
  11. # 火麒麟进入
  12. I_FIRE_KIRIN = RuleImage(roi_front=(104,120,217,325), roi_back=(104,120,217,325), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_fire_kirin.png")
  13. # 组队
  14. I_FORM_TEAM = RuleImage(roi_front=(959,580,100,100), roi_back=(916,572,156,130), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_form_team.png")
  15. # description
  16. I_EVOZONE_LOCK = RuleImage(roi_front=(700,655,31,32), roi_back=(613,614,155,91), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_evozone_lock.png")
  17. # description
  18. I_EVOZONE_UNLOCK = RuleImage(roi_front=(701,657,26,29), roi_back=(609,623,170,89), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_evozone_unlock.png")
  19. # 点击挑战
  20. I_EVOZONE_FIRE = RuleImage(roi_front=(1127,568,131,124), roi_back=(1127,568,131,124), threshold=0.6, method="Template matching", file="./tasks/EvoZone/o/o_evozone_fire.png")
  21. # 式神录
  22. I_SHI_RECORDS = RuleImage(roi_front=(843,570,48,45), roi_back=(843,570,48,45), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_shi_records.png")
  23. # 小小宠物,发现宝藏
  24. I_PET_PRESENT = RuleImage(roi_front=(873,184,62,147), roi_back=(873,184,62,147), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_pet_present.png")
  25. # 风麒麟进入
  26. I_WIND_KIRIN = RuleImage(roi_front=(423,116,201,250), roi_back=(423,116,201,250), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_wind_kirin.png")
  27. # 水麒麟进入
  28. I_WATER_KIRIN = RuleImage(roi_front=(728,115,201,342), roi_back=(728,115,201,342), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_water_kirin.png")
  29. # 雷麒麟进入
  30. I_LIGHTNING_KIRIN = RuleImage(roi_front=(1016,99,218,270), roi_back=(1016,99,218,270), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_lightning_kirin.png")
  31. # List Rule Assets
  32. # 这个是觉醒界面选择不同层数的
  33. L_LAYER_LIST = RuleList(folder="./tasks/EvoZone/res", direction="vertical", mode="ocr", roi_back=(124,84,77,632), size=(75, 83),
  34. array=["壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾"])
  35. # Ocr Rule Assets
  36. # Ocr-description
  37. O_O_TEST_OCR = RuleOcr(roi=(128,114,349,564), area=(128,114,349,564), mode="Full", method="Default", keyword="", name="o_test_ocr")